Need Some Guidance to Connect Second Trunk
Posted: Sat Nov 02, 2019 11:02 pm
Hi Guys
VICIDIAL V8.1, VERSION: 2.14-717a, BUILD: 190724-1603, Single Server Install on HP Proliant ML Gen 10 Octa Core Xeon Server with 16GB RAM and 1.5TB SSD along with this i have one Dinstar DWG Series gsm gateway and another two DInstar UC Series gsm Gateways. My location is India and we are more of an outbound call center.
I have done the installations and configurations and everything was ok till i wanted to add this second and third gsm gateways. I made a new trunk in sip.conf file and also added an entry in the extensions.conf file but still it will not make calls via the second gateway. I do not know what i am doing wrong. Can someone please guide me
MY sip.conf file looks like this:-
[gsm222]
username=gsm222
secret=dinstar
type=friend
allow=all
qualify=yes
host=dynamic
nat=yes
dtmfmode=rfc2833
context=trunkinbound
[gsm333]
username=gsm333
secret=dinstar
type=friend
allow=all
qualify=yes
host=dynamic
nat=yes
dtmfmode=rfc2833
context=trunkinbound
My extensions.conf looks like this
[general]
static=yes
writeprotect=no
[globals]
CONSOLE=Console/dsp ; Console interface for demo
TRUNK=DAHDI/r1 ; Trunk interface
TRUNKX=DAHDI/r2 ; 2nd trunk interface
TRUNKIAX=IAX2/ASTtest1:test@10.10.10.16:4569 ; IAX trunk interface
TRUNKIAX1=IAX2/ASTtest1:test@10.10.10.16:4569 ; IAX trunk interface
TRUNKBINFONE=IAX2/1112223333:PASSWORD@iax.binfone.com ; IAX trunk interface
SIPtrunk=SIP/1234:PASSWORD@sip.provider.net ; SIP trunk
#include extensions-vicidial.conf
[trunkinbound]
exten => _X.,1,AGI(agi-DID_route.agi)
exten => _X.,n,Hangup()
exten => h,1,AGI(agi://127.0.0.1:4577/call_log--HVcauses ... EBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME}-----${HANGUPCAUSE(${HANGUPCAUSE_KEYS()},tech)}))
[loopback-no-log]
exten => _999XX11112,1,Wait(2)
exten => _999XX11112,n,Answer()
exten => _999XX11112,n,Playback(ss-noservice)
exten => _999XX11112,n,Playback(vm-goodbye)
exten => _999XX11112,n,Hangup()
[default]
include => vicidial-auto
exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9X.,2,Dial(SIP/gsm222/${EXTEN:1},,tToR)
exten => _9X.,3,Hangup()
exten => _8X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _8X.,2,Dial(SIP/gsm333/${EXTEN:1},,tToR)
exten => _8X.,3,Hangup()
And i have set the dial prefix to 8 in two campaigns, I have a total of 4 campaigns.
The issues is that the calls do not go through the second gateway, if i try to make calls it just gives me an error like Call Rejected: CHANUNAVAIL Cause: 20 - Subscriber absent
Can someone please guide me over here it would be really helpful.
Thanks a lot in advance.
VICIDIAL V8.1, VERSION: 2.14-717a, BUILD: 190724-1603, Single Server Install on HP Proliant ML Gen 10 Octa Core Xeon Server with 16GB RAM and 1.5TB SSD along with this i have one Dinstar DWG Series gsm gateway and another two DInstar UC Series gsm Gateways. My location is India and we are more of an outbound call center.
I have done the installations and configurations and everything was ok till i wanted to add this second and third gsm gateways. I made a new trunk in sip.conf file and also added an entry in the extensions.conf file but still it will not make calls via the second gateway. I do not know what i am doing wrong. Can someone please guide me
MY sip.conf file looks like this:-
[gsm222]
username=gsm222
secret=dinstar
type=friend
allow=all
qualify=yes
host=dynamic
nat=yes
dtmfmode=rfc2833
context=trunkinbound
[gsm333]
username=gsm333
secret=dinstar
type=friend
allow=all
qualify=yes
host=dynamic
nat=yes
dtmfmode=rfc2833
context=trunkinbound
My extensions.conf looks like this
[general]
static=yes
writeprotect=no
[globals]
CONSOLE=Console/dsp ; Console interface for demo
TRUNK=DAHDI/r1 ; Trunk interface
TRUNKX=DAHDI/r2 ; 2nd trunk interface
TRUNKIAX=IAX2/ASTtest1:test@10.10.10.16:4569 ; IAX trunk interface
TRUNKIAX1=IAX2/ASTtest1:test@10.10.10.16:4569 ; IAX trunk interface
TRUNKBINFONE=IAX2/1112223333:PASSWORD@iax.binfone.com ; IAX trunk interface
SIPtrunk=SIP/1234:PASSWORD@sip.provider.net ; SIP trunk
#include extensions-vicidial.conf
[trunkinbound]
exten => _X.,1,AGI(agi-DID_route.agi)
exten => _X.,n,Hangup()
exten => h,1,AGI(agi://127.0.0.1:4577/call_log--HVcauses ... EBUG-----${HANGUPCAUSE}-----${DIALSTATUS}-----${DIALEDTIME}-----${ANSWEREDTIME}-----${HANGUPCAUSE(${HANGUPCAUSE_KEYS()},tech)}))
[loopback-no-log]
exten => _999XX11112,1,Wait(2)
exten => _999XX11112,n,Answer()
exten => _999XX11112,n,Playback(ss-noservice)
exten => _999XX11112,n,Playback(vm-goodbye)
exten => _999XX11112,n,Hangup()
[default]
include => vicidial-auto
exten => _9X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9X.,2,Dial(SIP/gsm222/${EXTEN:1},,tToR)
exten => _9X.,3,Hangup()
exten => _8X.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _8X.,2,Dial(SIP/gsm333/${EXTEN:1},,tToR)
exten => _8X.,3,Hangup()
And i have set the dial prefix to 8 in two campaigns, I have a total of 4 campaigns.
The issues is that the calls do not go through the second gateway, if i try to make calls it just gives me an error like Call Rejected: CHANUNAVAIL Cause: 20 - Subscriber absent
Can someone please guide me over here it would be really helpful.
Thanks a lot in advance.