Showing posts with label asterisk. Show all posts
Showing posts with label asterisk. Show all posts

Tuesday, August 15, 2017

Install Backup Vicidial on Digital Ocean

As a back up, I've installed an instance of Vicidial in the cloud through Digital Ocean. I haven't used it yet full time, as I still have my on-premise servers working. It just helps me sleep at night knowing that I have a back up for emergencies. I've tested only a few calls on this and it seems to work fine. I haven't used it full-blown yet so I don't know how well it performs with 5 concurrent users.

Droplet Requirements:

  • Minimum Memory: 1 GB or higher
  • Disk Space: 30 GB or higher
  • OS: CentOS 6.8 x64
For the location of the server, I chose somewhere in North America, because my vendor's VOIP servers are located in United States. I figured that would help with lessening data travel time which prevents choppy calls and delayed voices. (Comment below if you think this logic is wrong.)

Afterwards I just followed the installation instructions on Ray Solomon's website. For me, it was easier to follow than the striker24x7 version. At first try, it took me the whole day, but on the second try I was able to finish in half a day. It's not entirely updated, like some of the installers of the components have a newer version, so just make sure to check the links if there are newer versions and change the download addresses accordingly.

If you find it useful and if you are happy with the outcome, check out Ray Solomon's Amazon wishlist at the bottom of his webpage. I hope he's enjoying the Bayou Seasoning Injector I sent.

P.S. When you're done installing, don't forget to set your iptables properly to block off the hackers!

Update June 2022: The Ray Solomon Website is gone but wayback machine has a copy of it, thankfully! I hope this helps you!

Tuesday, June 13, 2017

Change Logo in Vicidial to Own Company Logo

If you'd like to customize or personalize Vicidial for your company, you can change the Vicidial Logo into your Company Logo. If you have multiple Vicidial Servers in your company and would like to help the agents differentiate them, changing the logo is also one way of helping them distinguish if they're in the right place.

For the first step, I looked for the location of the 2 logo image files and saved it. See below for the images. For mine, one image file is for the front page/login/agent screen, while the other one is for the administration pages. Different versions have different locations and image types!

Logos in Front Page, Log In, Agent Screen
Linux Location: /var/www/html/agc/images/vdc_tab_vicidial.gif

Logos in Administration
Linux Location: /var/www/html/vicidial/vicidial_admin_web_logo.gif

For the second step, I made my logo files fit the dimension of 220 pixels to around 60 pixels and saved it both as vdc_tab_vicidial.gif and vicidial_admin_web_logo.gif -- it must be the same name, so you won't have to tweak the PHP Files. For other versions, the original image file is in .PNG, so you have to save yours in .PNG. I just use regular ol' MS Paint.

For the third step, I used WinSCP to find the folders where the logos need to be (see step 1 in determining the address). I replaced the old logo files with the new ones. It was a lot easier for me to upload files using WinSCP rather than SSH. If you can do it through SSH (unlike me), you won't need WinSCP anymore.



Finally, once you've replaced the logos, use CTRL + SHIFT + R to reload the page with the new logo! For this example, I made a little rainbow colored "Hello World".



Wednesday, February 15, 2017

8 Sockets Detached Only in Asterisk, Can't call Softphone

After my hard drive was full again from recordings, I deleted the extra recordings and then rebooted. After this, the users told me that their X-Lite (our softphone) wasn't being called into the conference anymore.

For those unfamiliar, every time the agent logs into the website of Vicidial, the softphone will ring and will join a conference. Vicidial will dial numbers and when it gets an answered call, it will connect this phone call to the conference.

Upon checking using the "screen -ls" command, there are only 8 sockets detached (vs the usual 9). I found that "astsend" was missing. I assume this is the socket that "sends" the calls to the softphones.

I found 2 suggestions on how to fix it:

1. Recompile Asterisk - I don't know how to do this exactly, but might be worth looking into for those who know how to do this.

2. Perform a Mysql Repair - Thankfully, this was the solution that worked for me! Turns out, when deleting unwanted recordings, it also damaged the mysql database.
mysqlcheck --auto-repair asterisk
sudo reboot
After performing the mysql repair and rebooting, Asterisk now calls my X-lite again.

Sunday, January 22, 2017

No More Leads in the Hopper for Campaign

Early this morning, I had to free up some space by deleting unneeded .WAV files. Later in the day, we found out that we couldn't make any outbound calls for all of the campaigns (but we could still receive inbound calls). The error was "No more leads in the hopper for campaign: <campaign name>". This was the same error message regardless of if it was Manual Dialing or Predictive Dialing.



I found the way to identify the issue through Support ALG's blog (see link below).
https://supportalg.blogspot.com/2015/06/how-to-fix-error-this-campaign-has-zero.html

It was the 2nd method that helped me identify the error:
/usr/share/astguiclient/AST_VDhopper.pl --debugX
Sorry, I was only able to get a partial screenshot

Because of this, I was able to identify that the /asterisk/vicidial_list table had crashed. After googling "table vicidial list is marked as crashed", I found this vicidial.org forum thread:
http://www.vicidial.org/VICIDIALforum/viewtopic.php?t=20206

Scrolling down below, I found this command (first when mysql has no password, second has password - you'll only need one of them):
mysqlcheck --auto-repair asterisk vicidial_list
mysqlcheck --auto-repair asterisk vicidial_list -p

Now after running the mysqlcheck, I logged out of and in to the campaign, and I can dial outbound calls again!

Tuesday, November 22, 2016

Long Silence at the Start of Inbound Calls

It's my first time setting up an inbound call and I ran into a problem where after the initial 2 rings, there's a long silence before the greeting plays. The longest was 17 seconds!

If I were the customer and there was no sound for 17 seconds, I'd hang up immediately. Customers hanging up mid-way isn't a good thing, of course.

Here are the steps I did to remedy the situation:
  1. Make sure the DID points to the IP address you need: It will take longer to route the calls to the right place if you have 2 or more servers. I had our DID provider remove the 4 other unnecessary IP addresses which shaved off 10 seconds.
  2. [Update: Don't do this! I ended up having a lot of outbound calls dropped because asterisk couldn't find this file] Remove sip-silence.gsm from the sequence: Observing asterisk logs, when an inbound call arrives, sip-silence.gsm is played twice before the first greeting. I'm too scared to tinker with the asterisk script (it's a really long text of code) and remove the 2 lines of sip-silence. Instead, I just renamed sip-silence.gsm into sip-silence2.gsm so it would skip playing that file. This shaved off another 3 seconds. Aside from removing sip-silence.gsm, I was thinking of replacing it with a ringing sound. However, I can't find the default ringing sound in the asterisk folder, so I chose to just remove sip-silence.gsm instead.
From 17 seconds of long silence, I was able to cut it down to 4 seconds of silence.