How to Install and setup ViciDialNow(w/SIP Service Provider)
Posted: Tue Mar 24, 2009 6:27 pm
Ok, it took me a few days to get this setup so I thought I would explain what I did to get it to work.
1) Download and install vicidialnow.
The root password is 'vicidialnow'. If you need to change the IP address edit /etc/sysconfig/network_scripts/ifcfg-eth0 and change it then run 'update_server_ip' to update vicidial's config. I also had a problem with the OS using the router so I had to add 'route add -net 0.0.0.0 gw 192.168.1.1' to my /etc/rc.local file before Asterisk starts.
2) Configuring SIP Service provider
To do this you will have to use an SSH client (such as putty or cygwin/openssh) and use the linux 'vi' editor.
Connect as root and edit /etc/asterisk/sip.conf and add the following:
[trunk_1]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=<username>
secret=<password>
host=<your_sip_provider>
dtmfmode=inband
qualify=1000
fromuser=<username>
The 'fromuser' is optional but is required when connecting to a SysMaster UniSwitch with a wholesale account.
Now we have to edit the extensions.conf file to tell asterisk to use our new trunk. The vicidial default config is setup to use a Zap interface.
Use vi and edit /etc/asterisk/extensions.conf
Look for SIPtrunk in the [globals] section and change it to:
SIPtrunk=SIP/trunk_1
Look for the line 'dial a long distance outbound number' and we will modify the 9 lines below it. (ignoring comment lines)
First comment the 3 lines directly below it. These are used to send outbound calls to TRUNKX (Zap/g2).
Skip over the next 3 lines and then uncomment the final 3 lines ('dial a long distance outbound number through a SIP provider').
And change them to this:
exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,2,Dial(${SIPtrunk}/${EXTEN:1},55,o)
exten => _91NXXNXXXXXX,3,Hangup
I figured this out by looking at the config of a clean asterisk system. Would have never figured it our otherwise.
Vicidial's default config is messed up.
That should do it. Run 'asterisk -r' to connect to asterisk and run 'reload' for the config to take effect (or reboot).
It worked for me.
Quick overview of how the system works:
Admin usage:
1) Logon as 'Administrator' and create your campaings, agents, lists and such.
2) Add #s to dial in the list in the format vicidial expects.
Agent usage:
1) Connect your VoIP phone to vicidial (ie: '101', 'test')
2) Logon to 'Agent' with phone details ('101', 'test') then your agent details (I just use admin for test) and select campaign.
When you login vicidial will 'call' your voip phone, pick it up and never hang up until you logoff for the day.
3) Click 'Dial next number' in the queue and your VoIP phone will automatically be connected (I think it uses some sort of conference method to do this). Click on 'hangup' and the webpage will ask you how to flag the number (Busy, etc.). Don't hangup your VoIP phone.
Repeat until your done for the day then logoff and hangup your VoIP phone.
Notes:
Make sure you put your campaign into 24hr mode while testing.
Try reseting your lists and campaigns while testing until you see something in your hopper. It takes a while but slowly works.
Enjoy!
1) Download and install vicidialnow.
The root password is 'vicidialnow'. If you need to change the IP address edit /etc/sysconfig/network_scripts/ifcfg-eth0 and change it then run 'update_server_ip' to update vicidial's config. I also had a problem with the OS using the router so I had to add 'route add -net 0.0.0.0 gw 192.168.1.1' to my /etc/rc.local file before Asterisk starts.
2) Configuring SIP Service provider
To do this you will have to use an SSH client (such as putty or cygwin/openssh) and use the linux 'vi' editor.
Connect as root and edit /etc/asterisk/sip.conf and add the following:
[trunk_1]
disallow=all
allow=ulaw
allow=alaw
type=friend
username=<username>
secret=<password>
host=<your_sip_provider>
dtmfmode=inband
qualify=1000
fromuser=<username>
The 'fromuser' is optional but is required when connecting to a SysMaster UniSwitch with a wholesale account.
Now we have to edit the extensions.conf file to tell asterisk to use our new trunk. The vicidial default config is setup to use a Zap interface.
Use vi and edit /etc/asterisk/extensions.conf
Look for SIPtrunk in the [globals] section and change it to:
SIPtrunk=SIP/trunk_1
Look for the line 'dial a long distance outbound number' and we will modify the 9 lines below it. (ignoring comment lines)
First comment the 3 lines directly below it. These are used to send outbound calls to TRUNKX (Zap/g2).
Skip over the next 3 lines and then uncomment the final 3 lines ('dial a long distance outbound number through a SIP provider').
And change them to this:
exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,2,Dial(${SIPtrunk}/${EXTEN:1},55,o)
exten => _91NXXNXXXXXX,3,Hangup
I figured this out by looking at the config of a clean asterisk system. Would have never figured it our otherwise.
Vicidial's default config is messed up.
That should do it. Run 'asterisk -r' to connect to asterisk and run 'reload' for the config to take effect (or reboot).
It worked for me.
Quick overview of how the system works:
Admin usage:
1) Logon as 'Administrator' and create your campaings, agents, lists and such.
2) Add #s to dial in the list in the format vicidial expects.
Agent usage:
1) Connect your VoIP phone to vicidial (ie: '101', 'test')
2) Logon to 'Agent' with phone details ('101', 'test') then your agent details (I just use admin for test) and select campaign.
When you login vicidial will 'call' your voip phone, pick it up and never hang up until you logoff for the day.
3) Click 'Dial next number' in the queue and your VoIP phone will automatically be connected (I think it uses some sort of conference method to do this). Click on 'hangup' and the webpage will ask you how to flag the number (Busy, etc.). Don't hangup your VoIP phone.
Repeat until your done for the day then logoff and hangup your VoIP phone.
Notes:
Make sure you put your campaign into 24hr mode while testing.
Try reseting your lists and campaigns while testing until you see something in your hopper. It takes a while but slowly works.
Enjoy!