Page 1 of 1

Trunk VicidialNow to Tribox

PostPosted: Tue Apr 28, 2009 2:23 pm
by wizzbangca
I need to know how to do this. To many times I run across posts where someone figured out how, and thats all they say. What about the rest of us who need to know? Does anyone know? Step by step would be nice.

Thanks.

PostPosted: Tue Apr 28, 2009 3:26 pm
by marcin
sip trunk (Authentication based)
setup a sip extension on trixbox server with user and password

in vicidial server (2.0.4) edit sip.conf and add line:
register => user:password@ipoftrixbox:5060

[siptrunk3]
disallow=all
allow=ulaw
allow=alaw
allow=gsm
canreinvite=no
host=ipoftrixbox
insecure=port,invite
secret=password
type=friend
username=user

in extensions.conf add:

; dial a long distance outbound number through a SIP provider
exten => _1NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _1NXXNXXXXXX,2,Dial(SIP/${EXTEN}@siptrunk3,55,o)
exten => _1NXXNXXXXXX,3,Hangup

for inbound add:
exten => 3125551212,1,Ringing
exten => 3125551212,2,Wait(1)
exten => 3125551212,3,Answer
exten => 3125551212,4,AGI(agi-VDAD_ALL_inbound.agi,CIDLOOKUPRC-----LB-----SALESLINE-----3125551212-----Closer-----park----------999-----1-----TESTCAMP)
exten => 3125551212,5,Hangup

where: user is the extension you setup on trixbox
password is a password for this extension
ulaw, alaw and gsm are codecs for audio compression
3125551212 is a did you assign to same extension in trixbox server for incoming calls
exten => _1NXXNXXXXXX ....is only an option to omit 9
installation is showing you :
exten => _91NXXNXXXXXX ....
ipoftrixbox is a IP address of your trixbox, usage of the hostname may slow down the system.

for iax trunk use common sense.

PostPosted: Tue Apr 28, 2009 3:54 pm
by wizzbangca
Thank you for the reply. I made the changes. Now all I have to do is get the extensions on trixbox to work with vicidial.

Haven't I been a pain lately? Thanks all for the help.

PostPosted: Tue Apr 28, 2009 6:47 pm
by wizzbangca
Don't think your suggestion works. On Hudlite, ext 700 doesn't light up like it's supposed to when an extension has a phone connected. When the dialer tries to place a call, nothing happens. The asterisk logs don't show a call attempt.

PostPosted: Tue Apr 28, 2009 7:24 pm
by marcin
try ading a line to extensions.conf:
siptrunk3=sip/user:password@ipoftrixbox:5060
remember to restart asterisk after changes are made

PostPosted: Wed Apr 29, 2009 9:19 pm
by wizzbangca
marcin dialed in and got it all working. His method works, just don't use 2.0.5's web ui to do it. Every install of 2.0.5 in vicidialnow i have done, adding the trunk through carriers doesn't work.

Thanks to marcin for the help.