I had this problem when I was first setting up FreePBX where all calls made to my system were getting a not in service message. Once I removed the DID Number under the Incoming Route it started working.
I am now trying to setup another DID number to route to the same IVR but I’m getting the same not in service message again. I am really at loss as to what the problem could be. The following is what I see (DID number 61865557905):
-- Executing [61865557905@from-trunk:1] Set("SIP/46.19.209.14-0000000e", "__FROM_DID=61865557905") in new stack
-- Executing [61865557905@from-trunk:2] NoOp("SIP/46.19.209.14-0000000e", "Received an unknown call with DID set to 61865557905") in new stack
-- Executing [61865557905@from-trunk:3] Goto("SIP/46.19.209.14-0000000e", "s,a2") in new stack
-- Goto (from-trunk,s,2)
-- Executing [s@from-trunk:2] Answer("SIP/46.19.209.14-0000000e", "") in new stack
-- Executing [s@from-trunk:3] Wait("SIP/46.19.209.14-0000000e", "2") in new stack
-- Executing [s@from-trunk:4] Playback("SIP/46.19.209.14-0000000e", "ss-noservice") in new stack
-- <SIP/46.19.209.14-0000000e> Playing 'ss-noservice.gsm' (language 'en')
A working call to the catch-all route:
-- Executing [16042484822@from-trunk:1] Set("SIP/46.19.209.14-00000001", "__FROM_DID=16042484822") in new stack
-- Executing [16042484822@from-trunk:2] Gosub("SIP/46.19.209.14-00000001", "app-blacklist-check,s,1()") in new stack
-- Executing [s@app-blacklist-check:1] GotoIf("SIP/46.19.209.14-00000001", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:2] Set("SIP/46.19.209.14-00000001", "CALLED_BLACKLIST=1") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/46.19.209.14-00000001", "") in new stack
-- Executing [16042484822@from-trunk:3] Set("SIP/46.19.209.14-00000001", "CDR(did)=16042484822") in new stack
-- Executing [16042484822@from-trunk:4] ExecIf("SIP/46.19.209.14-00000001", "1 ?Set(CALLERID(name)=778861xxxx)") in new stack
-- Executing [16042484822@from-trunk:5] Ringing("SIP/46.19.209.14-00000001", "") in new stack
...
The DID Number is not set to anything for the catch-all route.
I have added these (http://www.flynumber.com/asterisk-pbx-configuration) to my sip_custom.conf (minus the context=from-fly).
pbx*CLI> sip show peers
Name/username Host Dyn Forcerport ACL Port Status
46.19.209.10 46.19.209.10 N 5060 Unmonitored
46.19.209.11 46.19.209.11 N 5060 Unmonitored
46.19.209.12 46.19.209.12 N 5060 Unmonitored
46.19.209.13 46.19.209.13 N 5060 Unmonitored
46.19.209.14 46.19.209.14 N 5060 Unmonitored
46.19.209.15 46.19.209.15 N 5060 Unmonitored
46.19.209.75 46.19.209.75 N 5060 Unmonitored
46.19.209.76 46.19.209.76 N 5060 Unmonitored
46.19.209.77 46.19.209.77 N 5060 Unmonitored
46.19.209.78 46.19.209.78 N 5060 Unmonitored
46.19.209.79 46.19.209.79 N 5060 Unmonitored
46.19.209.80 46.19.209.80 N 5060 Unmonitored
46.19.210.10 46.19.210.10 N 5060 Unmonitored
46.19.210.11 46.19.210.11 N 5060 Unmonitored
46.19.210.12 46.19.210.12 N 5060 Unmonitored
46.19.210.13 46.19.210.13 N 5060 Unmonitored
46.19.210.14 46.19.210.14 N 5060 Unmonitored
46.19.210.15 46.19.210.15 N 5060 Unmonitored
46.19.210.75 46.19.210.75 N 5060 Unmonitored
46.19.210.76 46.19.210.76 N 5060 Unmonitored
46.19.210.77 46.19.210.77 N 5060 Unmonitored
46.19.210.78 46.19.210.78 N 5060 Unmonitored
46.19.210.79 46.19.210.79 N 5060 Unmonitored
46.19.210.80 46.19.210.80 N 5060 Unmonitored
voipms/144481 74.54.54.178 N 5060 Unmonitored
25 sip peers [Monitored: 0 online, 0 offline Unmonitored: 25 online, 0 offline]
Any help will greatly be appreciated.
Asterisk 1.8.14.1
Freepbx 2.10
CentOS 5.6