The number you have dialed is not in service

When I try to call inbound, I get:
The number you have dialed is not in service, please check the number and try again."

Outbound and ext to ext calling work great.

I am using Flowroute and have an inbound route setup and have it pointing directly to an extension. No matter what I do, I get the “not in service” error message.

What else do I need to check? Thanks!

Here’s my log from a single inbound call attempt:

[2013-12-02 16:50:39] VERBOSE[11100][C-00000022] netsock2.c: == Using SIP RTP TOS bits 184
[2013-12-02 16:50:39] VERBOSE[11100][C-00000022] netsock2.c: == Using SIP RTP CoS mark 5
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:1] Set(“SIP/Flowroute-00000022”, “__FROM_DID=18582252349”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:2] Gosub(“SIP/Flowroute-00000022”, “app-blacklist-check,s,1()”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:1] GotoIf(“SIP/Flowroute-00000022”, “0?blacklisted”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:2] Set(“SIP/Flowroute-00000022”, “CALLED_BLACKLIST=1”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:3] Return(“SIP/Flowroute-00000022”, “”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:3] Set(“SIP/Flowroute-00000022”, “CDR(did)=18582252349”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:4] ExecIf(“SIP/Flowroute-00000022”, “1 ?Set(CALLERID(name)=+16641334000)”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:5] Set(“SIP/Flowroute-00000022”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:6] Set(“SIP/Flowroute-00000022”, “CALLERPRES()=allowed_not_screened”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:7] Goto(“SIP/Flowroute-00000022”, “ext-miscdests,1,1”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Goto (ext-miscdests,1,1)
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:1] NoOp(“SIP/Flowroute-00000022”, “MiscDest: D’s Cell”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:2] Goto(“SIP/Flowroute-00000022”, “from-internal,3109136399,1”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Goto (from-internal,3109136399,1)
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:1] Macro(“SIP/Flowroute-00000022”, “user-callerid,LIMIT,”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:1] Set(“SIP/Flowroute-00000022”, “TOUCH_MONITOR=1386003039.34”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:2] Set(“SIP/Flowroute-00000022”, “AMPUSER=+16641334000”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:3] GotoIf(“SIP/Flowroute-00000022”, “0?report”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:4] ExecIf(“SIP/Flowroute-00000022”, “1?Set(REALCALLERIDNUM=+16641334000)”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:5] Set(“SIP/Flowroute-00000022”, “AMPUSER=”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:6] Set(“SIP/Flowroute-00000022”, “AMPUSERCIDNAME=”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:7] GotoIf(“SIP/Flowroute-00000022”, “1?report”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Goto (macro-user-callerid,s,14)
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:14] GotoIf(“SIP/Flowroute-00000022”, “1?continue”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Goto (macro-user-callerid,s,27)
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:27] Set(“SIP/Flowroute-00000022”, “CALLERID(number)=+16641334000”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:28] Set(“SIP/Flowroute-00000022”, “CALLERID(name)=+16641334000”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:29] Set(“SIP/Flowroute-00000022”, “CDR(cnum)=+16641334000”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:30] Set(“SIP/Flowroute-00000022”, “CDR(cnam)=+16641334000”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:31] Set(“SIP/Flowroute-00000022”, “CHANNEL(language)=en”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:2] Set(“SIP/Flowroute-00000022”, “MOHCLASS=default”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:3] Set(“SIP/Flowroute-00000022”, “_NODEST=”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:4] Gosub(“SIP/Flowroute-00000022”, “sub-record-check,s,1(out,3109136399,)”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:1] Set(“SIP/Flowroute-00000022”, “REC_POLICY_MODE_SAVE=”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:2] GotoIf(“SIP/Flowroute-00000022”, “1?check”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Goto (sub-record-check,s,7)
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:7] Set(“SIP/Flowroute-00000022”, “__MON_FMT=wav”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:8] GotoIf(“SIP/Flowroute-00000022”, “1?next”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Goto (sub-record-check,s,11)
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:11] ExecIf(“SIP/Flowroute-00000022”, “0?Return()”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:12] ExecIf(“SIP/Flowroute-00000022”, “0?Set(__REC_POLICY_MODE=)”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:13] GotoIf(“SIP/Flowroute-00000022”, “0?out,1”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:14] Set(“SIP/Flowroute-00000022”, “__REC_STATUS=INITIALIZED”) in new stack
[2013-12-02 16:50:39] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:15] Set(“SIP/Flowroute-00000022”, “NOW=1386003039”) in new stack
[2013-12-02 16:50:40] VERBOSE[31732][C-00000022] pbx.c: – Executing [[email protected]:16] Set(“SIP/Flowroute-00000022”, “__DAY=02”) in new stack

By the way, in this example I was trying to forward the incoming call to a Miscellaneous Destination (which was directly back to the 310 #).

In case anyone else has an issue like this:

The problem was I had TWO PBX’s registered to that one SIP trunk. The PBX we are currently using is hosted by Aretta, and we don’t like them. So we setup our own PBX and used flowroute. However, one day Aretta’s trunking service went down, so I went in and put in our Flowroute info… so Flowroute was sending the calls to the wrong SIP registration.

That’s why you weren’t seeing the error message wav file playing was because it was playing off the wrong PBX!