Help with Vicidial twilio elastic SIP trunk configuration

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Help with Vicidial twilio elastic SIP trunk configuration

Postby Simmo_uk » Thu Apr 28, 2016 9:06 am

I'm experiencing a problem and have tried everything to get my Vicidial to work with the Twilio elastic SIP. The carrier was setup as below

[voip2]
type=peer
secret=**********
username=**********
host=ourhost.pstn.ie1.twilio.com
dtmfmode=rfc2833
canreinvite=no
disallow=all
allow=ulaw
insecure=port,invite
fromuser=+44203*******
fromdomain=ourhost.pstn.ie1.twilio.com

Globals String: SIPtrunk=SIP/voip2

Dialplan Entry:

exten => _44XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _44XXXXXXXXXX,n,Dial(${SIPtrunk}/+1${EXTEN:1},,tTo)
exten => _44XXXXXXXXXX,n,Hangup

! Still can't seem to get things moving, It's probably a real basic mistake, then again its my first time configuring a Vicidial server so please excuse my lack of competence.

On initiation of a call were getting the following error in the CLI!

handle_response_invite: Received response: "Forbidden" from '"V4271409150000177996" ;
tag=as649499a8' [Apr 27 14:09:16] == Everyone is busy/congested at this time (1:0/0/1)

handle_response_invite: Received response: "Forbidden" from '"V4271409150000177996
Now we have checked all the settings in the carrier and all seem to be fine, when we check " sip show peers" we have a connection to Twilio just no call initiation.

Any help would be greatly appreciated..


VERSION: 2.12-505a |BUILD: 150806-1348 | Single Virtual Server: BladeVPS CentOS 6.7 | No Extra Software After Installation | 4 cores | 8GB RAM | scratch install followed from striker247
Simmo_uk
 
Posts: 1
Joined: Thu Apr 28, 2016 7:55 am

Re: Help with Vicidial twilio elastic SIP trunk configuratio

Postby williamconley » Tue Jun 21, 2016 2:17 pm

Received response: "Forbidden" from

Translation from "asterisk" to "english": Your carrier says "NO".

Now you need to call your carrier and ask "why". Sometimes it's because they do not have your IP as an authorized IP to make calls. Sometimes it's something else entirely. But since all they told you is "no", all you can do is ask "why".
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Help with Vicidial twilio elastic SIP trunk configuratio

Postby iboam » Wed Jun 22, 2016 10:32 am

[Twilio]
type=peer
secret=
username=
host=host.pstn.twilio.com
dtmfmode=rfc2833
canreinvite=no
disallow=all
allow=ulaw
insecure=port,invite
fromuser=+1XXXXXXXXXX
fromdomain=host.pstn.twilio.com
context=trunkinbound

SIPtrunk = SIP/Twilio

exten => _44XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _44XXXXXXXXXX,n,Dial(${DIAL9TRUNK}/${EXTEN:1},,tTo)
exten => _44XXXXXXXXXX,n,Hangup
ViciBox: 11 | VERSION: 2.14-897a BUILD: 230927-0857 | Clusters: 1 DB-WEB-ASTX | SSL | WebRTC | Wallboard | DNC Nightly Scrubber
iboam
 
Posts: 258
Joined: Mon Feb 08, 2016 2:35 pm

Re: Help with Vicidial twilio elastic SIP trunk configuratio

Postby williamconley » Wed Jun 22, 2016 3:32 pm

EXTEN:1 will remove the first digit from the dial string. Your present dial string has the country code as the first digits. So you're deleting the first digit of the country code and then sending the resulting dial string.

You should probably either change that to EXTEN (without the :1) or add a dial prefix to the front of your exten pattern (_744XXXXXXXXXX on all three lines) which would differentiate this carrier dialplan from any others, and then discard the 7 before sending to the carrier. (of course, then you'd need to change the dial plan on the campaign from X to 7)
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 97 guests