DID calls are all being routed to my catchall

First of all, I’m very new to Asterisk to please be gentle.

I have setup all of our extensions, time based destinations, inbound routes, etc and we’re able to make inbound calls, outbound calls, and extension to extension calls just fine.

The issue we’re running into is that we have a catchall inbound route that seems to being hit for every call even though we’ve set up specific DID routes to go to employee’s extensions.

Any ideas?

Here is a sample call:

<--- SIP read from UDP:208.73.146.93:5060 --->
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 208.73.146.93:5060;branch=z9hG4bKjrhjbs00503gvmpkl5l1.1
Accept: application/sdp, application/isup, application/dtmf, application/dtmf-relay, multipart/mixed
Call-Id: [email protected]
Contact: <sip:[email protected]:5060;transport=udp>
Content-Disposition: session; handling=required
Content-Length: 306
Content-Type: application/sdp
CSeq: 1 INVITE
From: "Cell Phone MI" <sip:[email protected]:5060;pstn-params=808481808882;cpc=ordinary>;tag=gK05234aff
In-Reply-To: [email protected]
Session-Expires: 7200;refresher=uas
Supported: timer
To: <sip:[email protected]>
Max-Forwards: 70

v=0
o=Sonus_UAC 24481 23538 IN IP4 208.73.146.93
s=SIP Media Capabilities
c=IN IP4 208.73.146.93
t=0 0
m=audio 18094 RTP/AVP 0 18 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=ptime:20
<------------->
--- (15 headers 14 lines) ---
Sending to 208.73.146.93:5060 (NAT)
Sending to 208.73.146.93:5060 (NAT)
Using INVITE request as basis request - [email protected]
Found peer 'nextiva' for '2699868383' from 208.73.146.93:5060
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
Found RTP audio format 0
Found RTP audio format 18
Found RTP audio format 8
Found RTP audio format 101
Found audio description format PCMU for ID 0
Found audio description format G729 for ID 18
Found audio description format PCMA for ID 8
Found audio description format telephone-event for ID 101
Capabilities: us - (ulaw), peer - audio=(ulaw|alaw|g729)/video=(nothing)/text=(nothing), combined - (ulaw)
Non-codec capabilities (dtmf): us - 0x1 (telephone-event|), peer - 0x1 (telephone-event|), combined - 0x1 (telephone-event|)
Peer audio RTP is at port 208.73.146.93:18094
Looking for 2693823715 in from-trunk-sip-nextiva (domain 96.42.143.213)
list_route: hop: <sip:[email protected]:5060;transport=udp>

<--- Transmitting (NAT) to 208.73.146.93:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 208.73.146.93:5060;branch=z9hG4bKjrhjbs00503gvmpkl5l1.1;received=208.73.146.93;rport=5060
From: "Cell Phone MI" <sip:[email protected]:5060;pstn-params=808481808882;cpc=ordinary>;tag=gK05234aff
To: <sip:[email protected]>
Call-ID: [email protected]
CSeq: 1 INVITE
Server: FPBX-12.0.13(11.14.1)
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Session-Expires: 1800;refresher=uas
Contact: <sip:[email protected]:5060>
Content-Length: 0


<------------>
    -- Executing [2693823715@from-trunk-sip-nextiva:1] Set("SIP/nextiva-0000006f", "GROUP()=OUT_1") in new stack
    -- Executing [2693823715@from-trunk-sip-nextiva:2] Goto("SIP/nextiva-0000006f", "from-trunk,2693823715,1") in new stack
    -- Goto (from-trunk,2693823715,1)
    -- Executing [2693823715@from-trunk:1] Set("SIP/nextiva-0000006f", "__FROM_DID=2693823715") in new stack
    -- Executing [2693823715@from-trunk:2] Gosub("SIP/nextiva-0000006f", "sub-record-check,s,1(in,2693823715,dontcare)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("SIP/nextiva-0000006f", "0?initialized") in new stack
    -- Executing [s@sub-record-check:2] Set("SIP/nextiva-0000006f", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:3] Set("SIP/nextiva-0000006f", "NOW=1418483665") in new stack
    -- Executing [s@sub-record-check:4] Set("SIP/nextiva-0000006f", "__DAY=13") in new stack
    -- Executing [s@sub-record-check:5] Set("SIP/nextiva-0000006f", "__MONTH=12") in new stack
    -- Executing [s@sub-record-check:6] Set("SIP/nextiva-0000006f", "__YEAR=2014") in new stack
    -- Executing [s@sub-record-check:7] Set("SIP/nextiva-0000006f", "__TIMESTR=20141213-101425") in new stack
    -- Executing [s@sub-record-check:8] Set("SIP/nextiva-0000006f", "__FROMEXTEN=unknown") in new stack
    -- Executing [s@sub-record-check:9] Set("SIP/nextiva-0000006f", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:10] NoOp("SIP/nextiva-0000006f", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("SIP/nextiva-0000006f", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("SIP/nextiva-0000006f", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] GotoIf("SIP/nextiva-0000006f", "2?checkaction") in new stack
    -- Goto (sub-record-check,s,16)
    -- Executing [s@sub-record-check:16] GotoIf("SIP/nextiva-0000006f", "1?sub-record-check,in,1") in new stack
    -- Goto (sub-record-check,in,1)
    -- Executing [in@sub-record-check:1] NoOp("SIP/nextiva-0000006f", "Inbound Recording Check to 2693823715") in new stack
    -- Executing [in@sub-record-check:2] Set("SIP/nextiva-0000006f", "FROMEXTEN=unknown") in new stack
    -- Executing [in@sub-record-check:3] ExecIf("SIP/nextiva-0000006f", "10?Set(FROMEXTEN=2699868383)") in new stack
    -- Executing [in@sub-record-check:4] Gosub("SIP/nextiva-0000006f", "recordcheck,1(dontcare,in,2693823715)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/nextiva-0000006f", "Starting recording check against dontcare") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("SIP/nextiva-0000006f", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [recordcheck@sub-record-check:3] Return("SIP/nextiva-0000006f", "") in new stack
    -- Executing [in@sub-record-check:5] Return("SIP/nextiva-0000006f", "") in new stack
    -- Executing [2693823715@from-trunk:3] Gosub("SIP/nextiva-0000006f", "app-blacklist-check,s,1()") in new stack
    -- Executing [s@app-blacklist-check:1] GotoIf("SIP/nextiva-0000006f", "0?blacklisted") in new stack
    -- Executing [s@app-blacklist-check:2] Set("SIP/nextiva-0000006f", "CALLED_BLACKLIST=1") in new stack
    -- Executing [s@app-blacklist-check:3] Return("SIP/nextiva-0000006f", "") in new stack
    -- Executing [2693823715@from-trunk:4] Set("SIP/nextiva-0000006f", "CDR(did)=2693823715") in new stack
    -- Executing [2693823715@from-trunk:5] ExecIf("SIP/nextiva-0000006f", "0 ?Set(CALLERID(name)=2699868383)") in new stack
    -- Executing [2693823715@from-trunk:6] Set("SIP/nextiva-0000006f", "CHANNEL(musicclass)=default") in new stack
    -- Executing [2693823715@from-trunk:7] Set("SIP/nextiva-0000006f", "__MOHCLASS=default") in new stack
[2014-12-13 10:14:25] WARNING[31182][C-0000044f]: func_channel.c:538 func_channel_read: Unknown or unavailable item requested: 'reversecharge'
    -- Executing [2693823715@from-trunk:8] GotoIf("SIP/nextiva-0000006f", "0?macro-hangupcall") in new stack
    -- Executing [2693823715@from-trunk:9] Set("SIP/nextiva-0000006f", "__CALLINGPRES_SV=allowed_not_screened") in new stack
    -- Executing [2693823715@from-trunk:10] Set("SIP/nextiva-0000006f", "CALLERPRES()=allowed_not_screened") in new stack
    -- Executing [2693823715@from-trunk:11] Goto("SIP/nextiva-0000006f", "timeconditions,2,1") in new stack
    -- Goto (timeconditions,2,1)
    -- Executing [2@timeconditions:1] Set("SIP/nextiva-0000006f", "DB(TC/2/INUSESTATE)=INUSE") in new stack
    -- Executing [2@timeconditions:2] Set("SIP/nextiva-0000006f", "DB(TC/2/NOT_INUSESTATE)=NOT_INUSE") in new stack
    -- Executing [2@timeconditions:3] GotoIfTime("SIP/nextiva-0000006f", "08:30-18:00,mon-fri,1-31,jan-dec?truestate") in new stack
    -- Executing [2@timeconditions:4] GotoIf("SIP/nextiva-0000006f", "0?truegoto") in new stack
    -- Executing [2@timeconditions:5] ExecIf("SIP/nextiva-0000006f", "0?Set(DB(TC/2)=)") in new stack
    -- Executing [2@timeconditions:6] Set("SIP/nextiva-0000006f", "DEVICE_STATE(Custom:TC2)=INUSE") in new stack
    -- Executing [2@timeconditions:7] ExecIf("SIP/nextiva-0000006f", "0?Set(NOT_INUSE)") in new stack
    -- Executing [2@timeconditions:8] GotoIf("SIP/nextiva-0000006f", "1?timeconditions,1,1") in new stack
    -- Goto (timeconditions,1,1)
    -- Executing [1@timeconditions:1] Set("SIP/nextiva-0000006f", "DB(TC/1/INUSESTATE)=INUSE") in new stack
    -- Executing [1@timeconditions:2] Set("SIP/nextiva-0000006f", "DB(TC/1/NOT_INUSESTATE)=NOT_INUSE") in new stack
    -- Executing [1@timeconditions:3] GotoIfTime("SIP/nextiva-0000006f", "11:00-16:00,sat,1-31,jan-dec?truestate") in new stack
    -- Executing [1@timeconditions:4] GotoIf("SIP/nextiva-0000006f", "0?truegoto") in new stack
    -- Executing [1@timeconditions:5] ExecIf("SIP/nextiva-0000006f", "0?Set(DB(TC/1)=)") in new stack
    -- Executing [1@timeconditions:6] Set("SIP/nextiva-0000006f", "DEVICE_STATE(Custom:TC1)=INUSE") in new stack
    -- Executing [1@timeconditions:7] ExecIf("SIP/nextiva-0000006f", "0?Set(NOT_INUSE)") in new stack
    -- Executing [1@timeconditions:8] GotoIf("SIP/nextiva-0000006f", "1?ext-miscdests,2,1") in new stack
    -- Goto (ext-miscdests,2,1)
    -- Executing [2@ext-miscdests:1] NoOp("SIP/nextiva-0000006f", "MiscDest: Chris - Testing") in new stack
    -- Executing [2@ext-miscdests:2] Goto("SIP/nextiva-0000006f", "from-internal,2699868383,1") in new stack
    -- Goto (from-internal,2699868383,1)
    -- Executing [2699868383@from-internal:1] Macro("SIP/nextiva-0000006f", "user-callerid,LIMIT,EXTERNAL,") in new stack
    -- Executing [s@macro-user-callerid:1] Set("SIP/nextiva-0000006f", "TOUCH_MONITOR=1418483665.2179") in new stack
    -- Executing [s@macro-user-callerid:2] Set("SIP/nextiva-0000006f", "AMPUSER=2699868383") in new stack
    -- Executing [s@macro-user-callerid:3] GotoIf("SIP/nextiva-0000006f", "0?report") in new stack
    -- Executing [s@macro-user-callerid:4] ExecIf("SIP/nextiva-0000006f", "1?Set(REALCALLERIDNUM=2699868383)") in new stack
    -- Executing [s@macro-user-callerid:5] Set("SIP/nextiva-0000006f", "AMPUSER=") in new stack
    -- Executing [s@macro-user-callerid:6] GotoIf("SIP/nextiva-0000006f", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:7] Set("SIP/nextiva-0000006f", "AMPUSERCIDNAME=") in new stack
    -- Executing [s@macro-user-callerid:8] GotoIf("SIP/nextiva-0000006f", "1?report") in new stack
    -- Goto (macro-user-callerid,s,16)
    -- Executing [s@macro-user-callerid:16] GotoIf("SIP/nextiva-0000006f", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,30)
    -- Executing [s@macro-user-callerid:30] Set("SIP/nextiva-0000006f", "CALLERID(number)=2699868383") in new stack
    -- Executing [s@macro-user-callerid:31] Set("SIP/nextiva-0000006f", "CALLERID(name)=Cell Phone MI") in new stack
    -- Executing [s@macro-user-callerid:32] Set("SIP/nextiva-0000006f", "CDR(cnum)=2699868383") in new stack
    -- Executing [s@macro-user-callerid:33] Set("SIP/nextiva-0000006f", "CDR(cnam)=Cell Phone MI") in new stack
    -- Executing [s@macro-user-callerid:34] Set("SIP/nextiva-0000006f", "CHANNEL(language)=en") in new stack
    -- Executing [2699868383@from-internal:2] Gosub("SIP/nextiva-0000006f", "sub-record-check,s,1(out,2699868383,never)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("SIP/nextiva-0000006f", "10?initialized") in new stack
    -- Goto (sub-record-check,s,10)
    -- Executing [s@sub-record-check:10] NoOp("SIP/nextiva-0000006f", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("SIP/nextiva-0000006f", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("SIP/nextiva-0000006f", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] GotoIf("SIP/nextiva-0000006f", "3?checkaction") in new stack
    -- Goto (sub-record-check,s,16)
    -- Executing [s@sub-record-check:16] GotoIf("SIP/nextiva-0000006f", "1?sub-record-check,out,1") in new stack
    -- Goto (sub-record-check,out,1)
    -- Executing [out@sub-record-check:1] NoOp("SIP/nextiva-0000006f", "Outbound Recording Check from 2699868383 to 2699868383") in new stack
    -- Executing [out@sub-record-check:2] Set("SIP/nextiva-0000006f", "RECMODE=") in new stack
    -- Executing [out@sub-record-check:3] ExecIf("SIP/nextiva-0000006f", "1?Goto(routewins)") in new stack
    -- Goto (sub-record-check,out,7)
    -- Executing [out@sub-record-check:7] Gosub("SIP/nextiva-0000006f", "recordcheck,1(never,out,2699868383)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("SIP/nextiva-0000006f", "Starting recording check against never") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("SIP/nextiva-0000006f", "never") in new stack
    -- Goto (sub-record-check,recordcheck,14)
    -- Executing [recordcheck@sub-record-check:14] Set("SIP/nextiva-0000006f", "__REC_POLICY_MODE=NEVER") in new stack
    -- Executing [recordcheck@sub-record-check:15] Goto("SIP/nextiva-0000006f", "stoprec") in new stack
    -- Goto (sub-record-check,recordcheck,25)
    -- Executing [recordcheck@sub-record-check:25] NoOp("SIP/nextiva-0000006f", "Stopping recording: out, 2699868383") in new stack
    -- Executing [recordcheck@sub-record-check:26] Set("SIP/nextiva-0000006f", "__REC_STATUS=STOPPED") in new stack
    -- Executing [recordcheck@sub-record-check:27] System("SIP/nextiva-0000006f", "/var/lib/asterisk/bin/stoprecording.php "SIP/nextiva-0000006f"") in new stack
    -- Executing [recordcheck@sub-record-check:28] Return("SIP/nextiva-0000006f", "") in new stack
    -- Executing [out@sub-record-check:8] Return("SIP/nextiva-0000006f", "") in new stack
    -- Executing [2699868383@from-internal:3] ExecIf("SIP/nextiva-0000006f", "0 ?Set(CDR(accountcode)=)") in new stack
    -- Executing [2699868383@from-internal:4] Set("SIP/nextiva-0000006f", "MOHCLASS=default") in new stack
    -- Executing [2699868383@from-internal:5] ExecIf("SIP/nextiva-0000006f", "1?Set(TRUNKCIDOVERRIDE=2693823715)") in new stack
    -- Executing [2699868383@from-internal:6] Set("SIP/nextiva-0000006f", "_NODEST=") in new stack
    -- Executing [2699868383@from-internal:7] Macro("SIP/nextiva-0000006f", "dialout-trunk,1,2699868383,,off") in new stack
    -- Executing [s@macro-dialout-trunk:1] Set("SIP/nextiva-0000006f", "DIAL_TRUNK=1") in new stack
    -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/nextiva-0000006f", "0?sub-pincheck,s,1()") in new stack
    -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/nextiva-0000006f", "0?disabletrunk,1") in new stack
    -- Executing [s@macro-dialout-trunk:4] Set("SIP/nextiva-0000006f", "DIAL_NUMBER=2699868383") in new stack
    -- Executing [s@macro-dialout-trunk:5] Set("SIP/nextiva-0000006f", "DIAL_TRUNK_OPTIONS=Ttr") in new stack
    -- Executing [s@macro-dialout-trunk:6] Set("SIP/nextiva-0000006f", "OUTBOUND_GROUP=OUT_1") in new stack
    -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/nextiva-0000006f", "0?nomax") in new stack
    -- Executing [s@macro-dialout-trunk:8] GotoIf("SIP/nextiva-0000006f", "0?chanfull") in new stack
    -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/nextiva-0000006f", "0?skipoutcid") in new stack
    -- Executing [s@macro-dialout-trunk:10] Set("SIP/nextiva-0000006f", "DIAL_TRUNK_OPTIONS=Tt") in new stack
    -- Executing [s@macro-dialout-trunk:11] Macro("SIP/nextiva-0000006f", "outbound-callerid,1") in new stack
    -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/nextiva-0000006f", "1?Set(CALLERPRES()=allowed_not_screened)") in new stack
    -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/nextiva-0000006f", "0?Set(REALCALLERIDNUM=2699868383)") in new stack
    -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/nextiva-0000006f", "1?normcid") in new stack
    -- Goto (macro-outbound-callerid,s,6)
    -- Executing [s@macro-outbound-callerid:6] Set("SIP/nextiva-0000006f", "USEROUTCID=") in new stack
    -- Executing [s@macro-outbound-callerid:7] Set("SIP/nextiva-0000006f", "EMERGENCYCID=") in new stack
    -- Executing [s@macro-outbound-callerid:8] Set("SIP/nextiva-0000006f", "TRUNKOUTCID=2693823715") in new stack
    -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/nextiva-0000006f", "1?trunkcid") in new stack
    -- Goto (macro-outbound-callerid,s,14)
    -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/nextiva-0000006f", "1?Set(CALLERID(all)=2693823715)") in new stack
    -- Executing [s@macro-outbound-callerid:15] ExecIf("SIP/nextiva-0000006f", "0?Set(CALLERID(all)=)") in new stack
    -- Executing [s@macro-outbound-callerid:16] ExecIf("SIP/nextiva-0000006f", "1?Set(CALLERID(all)=2693823715)") in new stack
    -- Executing [s@macro-outbound-callerid:17] ExecIf("SIP/nextiva-0000006f", "0?Set(CALLERPRES()=prohib_passed_screen)") in new stack
    -- Executing [s@macro-outbound-callerid:18] Set("SIP/nextiva-0000006f", "CDR(outbound_cnum)=2693823715") in new stack
    -- Executing [s@macro-outbound-callerid:19] Set("SIP/nextiva-0000006f", "CDR(outbound_cnam)=") in new stack
    -- Executing [s@macro-dialout-trunk:12] GosubIf("SIP/nextiva-0000006f", "1?sub-flp-1,s,1()") in new stack
    -- Executing [s@sub-flp-1:1] ExecIf("SIP/nextiva-0000006f", "1?Return()") in new stack
    -- Executing [s@macro-dialout-trunk:13] Set("SIP/nextiva-0000006f", "OUTNUM=2699868383") in new stack
    -- Executing [s@macro-dialout-trunk:14] Set("SIP/nextiva-0000006f", "custom=SIP/nextiva") in new stack
    -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/nextiva-0000006f", "0?Set(DIAL_TRUNK_OPTIONS=M(setmusic^default)Tt)") in new stack
    -- Executing [s@macro-dialout-trunk:16] ExecIf("SIP/nextiva-0000006f", "0?Set(DIAL_TRUNK_OPTIONS=TtM(confirm))") in new stack
    -- Executing [s@macro-dialout-trunk:17] Macro("SIP/nextiva-0000006f", "dialout-trunk-predial-hook,") in new stack
    -- Executing [s@macro-dialout-trunk-predial-hook:1] MacroExit("SIP/nextiva-0000006f", "") in new stack
    -- Executing [s@macro-dialout-trunk:18] GotoIf("SIP/nextiva-0000006f", "0?bypass,1") in new stack
    -- Executing [s@macro-dialout-trunk:19] ExecIf("SIP/nextiva-0000006f", "0?Set(CONNECTEDLINE(num,i)=2699868383)") in new stack
    -- Executing [s@macro-dialout-trunk:20] ExecIf("SIP/nextiva-0000006f", "0?Set(CONNECTEDLINE(name,i)=CID:2693823715)") in new stack
    -- Executing [s@macro-dialout-trunk:21] GotoIf("SIP/nextiva-0000006f", "0?customtrunk") in new stack
    -- Executing [s@macro-dialout-trunk:22] Dial("SIP/nextiva-0000006f", "SIP/nextiva/2699868383,300,Tt") in new stack
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
Audio is at 27522