VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
sonny.rajagopalan at g... Guest
|
Posted: Wed Dec 02, 2015 9:23 am Post subject: [asterisk-users] Issues with Twilio number incoming call and |
|
|
Hello,
I am running Asterisk 13.6.0 in an AWS instance, and I set it up with Twilio SIP trunk using pjsip_wizard.conf (nice feature!). I see that the calls actually "reach" the PBX, but for some reason, they are not caught by any of my extensions context.Â
Here's what I observe when I test this from a non-PBX connected E164 number (a landline), say 555-666-1212. My Twilio number is 777-555-1212
Situation 1:
=========
extensions.conf:
[from-external]
exten => _.,1,Log(WARNING, TWILIO)
[from-internal]
...
Calling 555-666-1212 to Twilio number 777-555-1212:
On Asterisk CLI (core set debug on, logger set level WARNING on):
No logs at all. Call just ends. No friendly message saying why it will hangup.
Situation 2:
===========
extensions.conf:
[from-external]
exten => 17775551212,1,Log(WARNING, TWILIO)
same => Â Â Â Â Â Â Â n,Hangup()
On Asterisk CLI:
Call from 'from-twilio' (UDP:mysillyapp.pstn.twilio.com:5060) to extension '+17775551212' rejected because extension not found in context 'from-external'.
However, clearly, the extension is there (in extensions.conf). The call hangs up, but with Twilio's "The number you dialed is not a working number...." message.
What am I missing here? How do I fix this issue with the call not being "caught" with my extensions.conf?
Any help is appreciated. |
|
Back to top |
|
|
annusfictus at gmail.com Guest
|
Posted: Wed Dec 02, 2015 9:24 am Post subject: [asterisk-users] Issues with Twilio number incoming call and |
|
|
Hello,
try to change:
exten => 17775551212,1,Log(WARNING, TWILIO)
same => n,Hangup()
with:
exten => +17775551212,1,Log(WARNING, TWILIO)
same => n,Hangup()
Regards |
|
Back to top |
|
|
sonny.rajagopalan at g... Guest
|
Posted: Wed Dec 02, 2015 10:23 am Post subject: [asterisk-users] Issues with Twilio number incoming call and |
|
|
Yes, I have tried that too (i.e, exten => +17775551212,1,Log(WARNING, TWILIO)). It does not work and NO error message in CLI.
I have also tried http://orourketech.com/elastix-plus-sign-caller-id-messing-things/ since I first emailed this group, but that does not seem to work either.
Here is my log:
[Dec  2 15:09:28] NOTICE[26464]: res_pjsip_session.c:1920 new_invite: Call from 'from-twilio' (UDP:mysillyApp.pstn.twilio.com:5060) to extension '+17775551212' rejected because extension not found in context 'from-twilio-remove-plus'.
[Dec  2 15:09:29] NOTICE[26464]: res_pjsip_session.c:1920 new_invite: Call from 'from-twilio' (UDP:mysillyApp.pstn.twilio.com:5060) to extension '+17775551212' rejected because extension not found in context 'from-twilio-remove-plus'.
ip-xxxx*CLI> dialplan show from-twilio-remove-plus
[ Context 'from-twilio-remove-plus' created by 'pbx_config' ]
 '_[+1]XXXXXXXXXX' => 1. GotoIf($["${CALLERID(num):0:2}" != "+1"]?noplusatstart) [pbx_config]
          2. Log(WARNING,TWILIO)             [pbx_config]
          3. Set(CALLERID(num)=${CALLERID(num):1})    [pbx_config]
   [noplusatstart] 4. Goto(from-external,${EXTEN},1)       [pbx_config]
ip-xxxx*CLI> dialplan show from-external
[ Context 'from-external' created by 'pbx_config' ]
 '17775551212' =>  1. Log(WARNING,TWILIO)             [pbx_config]
          2. Hangup()                  [pbx_config]
On Wed, Dec 2, 2015 at 9:23 AM, Annus Fictus <annusfictus@gmail.com (annusfictus@gmail.com)> wrote:
Quote: | Hello,
try to change:
exten => 17775551212,1,Log(WARNING, TWILIO)
same => Â Â Â Â Â Â Â n,Hangup()
with:
exten => +17775551212,1,Log(WARNING, TWILIO)
same => Â Â Â Â Â Â Â n,Hangup()
Regards
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
        http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
|
|
|
Back to top |
|
|
annusfictus at gmail.com Guest
|
Posted: Wed Dec 02, 2015 10:36 am Post subject: [asterisk-users] Issues with Twilio number incoming call and |
|
|
Maybe is because now it's a different context:
from-twilio-remove-plus
before
from-internal
is right?
regards
El 02/12/2015 a las 10:22, Sonny Rajagopalan escribió:
Quote: | Yes, I have tried that too (i.e, exten => +17775551212,1,Log(WARNING, TWILIO)). It does not work and NO error message in CLI.
I have also tried http://orourketech.com/elastix-plus-sign-caller-id-messing-things/ since I first emailed this group, but that does not seem to work either.
Here is my log:
[Dec 2 15:09:28] NOTICE[26464]: res_pjsip_session.c:1920 new_invite: Call from 'from-twilio' (UDP:mysillyApp.pstn.twilio.com:5060) to extension '+17775551212' rejected because extension not found in context 'from-twilio-remove-plus'.
[Dec 2 15:09:29] NOTICE[26464]: res_pjsip_session.c:1920 new_invite: Call from 'from-twilio' (UDP:mysillyApp.pstn.twilio.com:5060) to extension '+17775551212' rejected because extension not found in context 'from-twilio-remove-plus'.
ip-xxxx*CLI> dialplan show from-twilio-remove-plus
[ Context 'from-twilio-remove-plus' created by 'pbx_config' ]
'_[+1]XXXXXXXXXX' => 1. GotoIf($["${CALLERID(num):0:2}" != "+1"]?noplusatstart) [pbx_config]
2. Log(WARNING,TWILIO) [pbx_config]
3. Set(CALLERID(num)=${CALLERID(num):1}) [pbx_config]
[noplusatstart] 4. Goto(from-external,${EXTEN},1) [pbx_config]
ip-xxxx*CLI> dialplan show from-external
[ Context 'from-external' created by 'pbx_config' ]
'17775551212' => 1. Log(WARNING,TWILIO) [pbx_config]
2. Hangup() [pbx_config]
On Wed, Dec 2, 2015 at 9:23 AM, Annus Fictus <annusfictus@gmail.com (annusfictus@gmail.com)> wrote:
|
|
|
Back to top |
|
|
sonny.rajagopalan at g... Guest
|
Posted: Wed Dec 02, 2015 10:41 am Post subject: [asterisk-users] Issues with Twilio number incoming call and |
|
|
Thanks for your quick responses, Annus.
As you can see, in my original post, I forward to context "from-external". I forward to "from-twilio-remove-plus" only to check if http://orourketech.com/elastix-plus-sign-caller-id-messing-things/ will solve my problem. It did not. At no point do I point it to the from-internal context.
On Wed, Dec 2, 2015 at 10:35 AM, Annus Fictus <annusfictus@gmail.com (annusfictus@gmail.com)> wrote:
Quote: | Maybe is because now it's a different context:
from-twilio-remove-plus
before
from-internal
is right?
regards
El 02/12/2015 a las 10:22, Sonny Rajagopalan escribió:
Quote: | Yes, I have tried that too (i.e, exten => +17775551212,1,Log(WARNING, TWILIO)). It does not work and NO error message in CLI.
I have also tried http://orourketech.com/elastix-plus-sign-caller-id-messing-things/ since I first emailed this group, but that does not seem to work either.
Here is my log:
[Dec  2 15:09:28] NOTICE[26464]: res_pjsip_session.c:1920 new_invite: Call from 'from-twilio' (UDP:mysillyApp.pstn.twilio.com:5060) to extension '+17775551212' rejected because extension not found in context 'from-twilio-remove-plus'.
[Dec  2 15:09:29] NOTICE[26464]: res_pjsip_session.c:1920 new_invite: Call from 'from-twilio' (UDP:mysillyApp.pstn.twilio.com:5060) to extension '+17775551212' rejected because extension not found in context 'from-twilio-remove-plus'.
ip-xxxx*CLI> dialplan show from-twilio-remove-plus
[ Context 'from-twilio-remove-plus' created by 'pbx_config' ]
 '_[+1]XXXXXXXXXX' => 1. GotoIf($["${CALLERID(num):0:2}" != "+1"]?noplusatstart) [pbx_config]
          2. Log(WARNING,TWILIO)             [pbx_config]
          3. Set(CALLERID(num)=${CALLERID(num):1})    [pbx_config]
   [noplusatstart] 4. Goto(from-external,${EXTEN},1)       [pbx_config]
ip-xxxx*CLI> dialplan show from-external
[ Context 'from-external' created by 'pbx_config' ]
 '17775551212' =>  1. Log(WARNING,TWILIO)             [pbx_config]
          2. Hangup()                  [pbx_config]
On Wed, Dec 2, 2015 at 9:23 AM, Annus Fictus <annusfictus@gmail.com (annusfictus@gmail.com)> wrote:
|
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
        http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
|
|
|
Back to top |
|
|
amit at avhan.com Guest
|
Posted: Thu Dec 03, 2015 12:24 am Post subject: [asterisk-users] Issues with Twilio number incoming call and |
|
|
Hi
Your extensions.conf should have +17775551212 extension and not 17775551212
Add + sign before your number. This should solve your issue.
[from-external]
exten => +17775551212,1,Log(WARNING, TWILIO)
same => n,Hangup()
212 Clean Clean false false false false EN-IN X-NONE X-NONE MicrosoftInternetExplorer4 <![endif]--> <![endif]--> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";} <![endif]--> <![endif]--> <![endif]-->
Thanks & Regards,
Amit Patkar |
|
Back to top |
|
|
sonny.rajagopalan at g... Guest
|
Posted: Thu Dec 03, 2015 10:20 am Post subject: [asterisk-users] Issues with Twilio number incoming call and |
|
|
Thanks Annus, Amit.
Yes, Amit, the plus sign in front is necessary. I was able to get this to work by changing the codecs that the SIP trunk will use. I had to set up wireshark on my Asterisk instance, gather that it didn't work for a 488 SIP "No acceptable here" message, which led me to discovering the codec problem.
On Thu, Dec 3, 2015 at 12:23 AM, Amit Patkar <amit@avhan.com (amit@avhan.com)> wrote:
Quote: | Hi
Your extensions.conf should have +17775551212 extension and not 17775551212
Add + sign before your number. This should solve your issue.
[from-external]
exten => +17775551212,1,Log(WARNING, TWILIO)
   same => n,Hangup()
Thanks & Regards,
Amit Patkar
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
        http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users
|
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|