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.