Help! My DID's are all going to the same IVR, despite inbound route configs

freepbx
Tags: #<Tag:0x00007f70276557b8>

(Pwdiamond) #1

Hello everyone! After a 10 year hiatus from Asterisk, I’ve recently been thrown back into the mix due to Covid-19 complications, and while most has gone smoothly, I’m having some sticking points. Any help would be appreciated!

We have recently gone through a merger and are now bringing over all of the phone numbers from reps at the new company.

We are using Twilio for our SIP trunking in the U.S. I have one trunk configured, and currently have two phone numbers attached to that trunk. One of them (xxx-5832) is supposed to go directly to our IVR, and the other (xxx-6806) should bypass the IVR and go directly to the user’s extension (324). Here’s a screenshot of the config:

Please see the log file (first 6 digits of numbers redacted with xxx-xxx) at the end of this post.

It’s been a while since I’ve set up DID’s to behave this way (direct to extension), however, I don’t ever recall having this kind of issue before. My recollection is that I have done it in the past simply by programming it as I did in the “inbound routes”, and that I did not have to set up additional trunks.

I’m sure I’m missing something simple here… Can someone help me see what I’m doing wrong? I’d be mighty grateful!

Thanks in advance!

Asterisk Version: 16.10.0
FreePBX Version: 15.0
Linux: Ubuntu

Log file:

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [+1xxx-xxx6806@from-pstn-e164-us:1] Set("PJSIP/Twilio-US1-North-America-Oregon-00000729", "CALLERID(number)=xxx-xxx6225") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [+1xxx-xxx6806@from-pstn-e164-us:2] Goto("PJSIP/Twilio-US1-North-America-Oregon-00000729", "from-pstn,xxx-xxx6806,1") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx_builtins.c: Goto (from-pstn,xxx-xxx6806,1)

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [xxx-xxx6806@from-pstn:1] NoOp("PJSIP/Twilio-US1-North-America-Oregon-00000729", "Catch-All DID Match - Found xxx-xxx6806 - You probably want a DID for this.") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [xxx-xxx6806@from-pstn:2] Set("PJSIP/Twilio-US1-North-America-Oregon-00000729", "__FROM_DID=xxx-xxx6806") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [xxx-xxx6806@from-pstn:3] Goto("PJSIP/Twilio-US1-North-America-Oregon-00000729", "ext-did,s,1") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx_builtins.c: Goto (ext-did,s,1)

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [s@ext-did:1] Set("PJSIP/Twilio-US1-North-America-Oregon-00000729", "__DIRECTION=INBOUND") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [s@ext-did:2] Gosub("PJSIP/Twilio-US1-North-America-Oregon-00000729", "sub-record-check,s,1(in,s,dontcare)") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [s@sub-record-check:1] GotoIf("PJSIP/Twilio-US1-North-America-Oregon-00000729", "0?initialized") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [s@sub-record-check:2] Set("PJSIP/Twilio-US1-North-America-Oregon-00000729", "__REC_STATUS=INITIALIZED") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [s@sub-record-check:3] Set("PJSIP/Twilio-US1-North-America-Oregon-00000729", "NOW=1596592811") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [s@sub-record-check:4] Set("PJSIP/Twilio-US1-North-America-Oregon-00000729", "__DAY=04") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [s@sub-record-check:5] Set("PJSIP/Twilio-US1-North-America-Oregon-00000729", "__MONTH=08") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [s@sub-record-check:6] Set("PJSIP/Twilio-US1-North-America-Oregon-00000729", "__YEAR=2020") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [s@sub-record-check:7] Set("PJSIP/Twilio-US1-North-America-Oregon-00000729", "__TIMESTR=20200804-220011") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [s@sub-record-check:8] Set("PJSIP/Twilio-US1-North-America-Oregon-00000729", "__FROMEXTEN=unknown") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [s@sub-record-check:9] Set("PJSIP/Twilio-US1-North-America-Oregon-00000729", "__MON_FMT=wav") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [s@sub-record-check:10] NoOp("PJSIP/Twilio-US1-North-America-Oregon-00000729", "Recordings initialized") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [s@sub-record-check:11] ExecIf("PJSIP/Twilio-US1-North-America-Oregon-00000729", "0?Set(ARG3=dontcare)") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [s@sub-record-check:12] Set("PJSIP/Twilio-US1-North-America-Oregon-00000729", "REC_POLICY_MODE_SAVE=") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [s@sub-record-check:13] ExecIf("PJSIP/Twilio-US1-North-America-Oregon-00000729", "0?Set(REC_STATUS=NO)") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [s@sub-record-check:14] GotoIf("PJSIP/Twilio-US1-North-America-Oregon-00000729", "2?checkaction") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx_builtins.c: Goto (sub-record-check,s,17)

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [s@sub-record-check:17] GotoIf("PJSIP/Twilio-US1-North-America-Oregon-00000729", "1?sub-record-check,in,1") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx_builtins.c: Goto (sub-record-check,in,1)

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [in@sub-record-check:1] NoOp("PJSIP/Twilio-US1-North-America-Oregon-00000729", "Inbound Recording Check to s") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [in@sub-record-check:2] Set("PJSIP/Twilio-US1-North-America-Oregon-00000729", "FROMEXTEN=unknown") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [in@sub-record-check:3] ExecIf("PJSIP/Twilio-US1-North-America-Oregon-00000729", "10?Set(FROMEXTEN=xxx-xxx6225)") in new stack

[2020-08-04 22:00:11] VERBOSE[1784][C-00003ee1] pbx.c: Executing [in@sub-record-check:4] Gosub("PJSIP/Twilio-US1-North-America-Oregon-00000729", "recordcheck,1(dontcare,in,s)") in new stack


#2

The from-pstn-e164-us context you’re using has changed your DIDs to ten digits. So you need to use ten digit DID for the inbound routes.


(Pwdiamond) #3

Bill, you’re my hero of the day.

As with most things in Asterisk that cause one to beat their heads against the wall and wade through Google searches for hours on end, it was fixed in about 15 seconds.

Just in case someone else has the same problem (and to save your head and your drywall), here’s the quick fix that I made based on Bill’s suggestion:

I simply removed the +1 leading the number.

Thanks again, @billsimon. You made my day!


(system) closed #4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.