Page 1 of 1

Help with Vicidial twilio elastic SIP trunk configuration

PostPosted: Thu Apr 28, 2016 9:06 am
by Simmo_uk
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

Re: Help with Vicidial twilio elastic SIP trunk configuratio

PostPosted: Tue Jun 21, 2016 2:17 pm
by williamconley
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".

Re: Help with Vicidial twilio elastic SIP trunk configuratio

PostPosted: Wed Jun 22, 2016 10:32 am
by iboam
[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

Re: Help with Vicidial twilio elastic SIP trunk configuratio

PostPosted: Wed Jun 22, 2016 3:32 pm
by williamconley
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)

Re: Help with Vicidial twilio elastic SIP trunk config......

PostPosted: Wed Nov 27, 2024 3:18 pm
by Alishkx11
hello,,
can u pls help me with actually.
I am facing with the configuration of the Twilio Elastic SIP trunk in Vicidial. I have followed all the necessary steps for setup, but I am still encountering the same issue.
Despite configuring everything correctly, the problem still the sme, and I have attached a screenshot to help with the issue I'm facing. Could uh please assist me in resolving this
============================
vicibox11*CLI> sip reload
[Nov 28 01:46:13] Reloading SIP
vicibox11*CLI> sip show peers
Name/username Host Dyn Forcerport Comedia ACL Port Status Description
gs102/gs102 (Unspecified) D Yes Yes 0 UNKNOWN
1 sip peers [Monitored: 0 online, 1 offline Unmonitored: 0 online, 0 offline]
vicibox11*CLI> sip reload
[Nov 28 01:46:39] Reloading SIP
[Nov 28 01:47:02] NOTICE[9157]: manager.c:3557 authenticate: 127.0.0.1 failed to authenticate as 'sendcron'
[Nov 28 01:47:02] NOTICE[9158]: manager.c:3557 authenticate: 127.0.0.1 failed to authenticate as 'sendcron'
[Nov 28 01:47:03] == Connect attempt from '127.0.0.1' unable to authenticate
[Nov 28 01:47:03] == Connect attempt from '127.0.0.1' unable to authenticate