The Number You have dialled is not in Service

Hi,

I have spent a few hours reading the forums, and have not yet found a solution. This is my first posting so I hope I have included everything required!

When some one rings in to my PBX from a mobile phone it works and the call goes to my announcement, when they call from some land lines it works, and goes to my announcement.

However, some calls from a landline (and I think it is one where the number is Private or Withheld) get the “The number you have dialed is not in service message”.

I am in the UK.
My SIP trunk comes from VOIPfone.
My FreePBX is installed and all modules are up to date.

The log file shows the call getting rejected.

LOG FILE OF FAILURE:

[2014-03-24 12:41:52] VERBOSE[3235][C-0000012c] netsock2.c: == Using SIP RTP TOS bits 184
[2014-03-24 12:41:52] VERBOSE[3235][C-0000012c] netsock2.c: == Using SIP RTP CoS mark 5
[2014-03-24 12:41:52] VERBOSE[16109][C-0000012c] pbx.c: – Executing [30169078@from-pstn:1] NoOp(“SIP/VoipFone-00000208”, “Catch-All DID Match - Found 30169078 - You probably want a DID for this.”) in new stack
[2014-03-24 12:41:52] VERBOSE[16109][C-0000012c] pbx.c: – Executing [30169078@from-pstn:2] Set(“SIP/VoipFone-00000208”, “__FROM_DID=30169078”) in new stack
[2014-03-24 12:41:52] VERBOSE[16109][C-0000012c] pbx.c: – Executing [30169078@from-pstn:3] Goto(“SIP/VoipFone-00000208”, “ext-did,s,1”) in new stack
[2014-03-24 12:41:52] VERBOSE[16109][C-0000012c] pbx.c: – Goto (ext-did,s,1)
[2014-03-24 12:41:52] VERBOSE[16109][C-0000012c] pbx.c: – Executing [s@ext-did:1] ExecIf(“SIP/VoipFone-00000208”, “0?Set(__FROM_DID=s)”) in new stack
[2014-03-24 12:41:52] VERBOSE[16109][C-0000012c] pbx.c: – Executing [s@ext-did:2] Gosub(“SIP/VoipFone-00000208”, “app-blacklist-check,s,1()”) in new stack
[2014-03-24 12:41:52] VERBOSE[16109][C-0000012c] pbx.c: – Executing [s@app-blacklist-check:1] GotoIf(“SIP/VoipFone-00000208”, “1?check-blocked”) in new stack
[2014-03-24 12:41:52] VERBOSE[16109][C-0000012c] pbx.c: – Goto (app-blacklist-check,s,4)
[2014-03-24 12:41:52] VERBOSE[16109][C-0000012c] pbx.c: – Executing [s@app-blacklist-check:4] GotoIf(“SIP/VoipFone-00000208”, “1?blacklisted”) in new stack
[2014-03-24 12:41:52] VERBOSE[16109][C-0000012c] pbx.c: – Goto (app-blacklist-check,s,17)
[2014-03-24 12:41:52] VERBOSE[16109][C-0000012c] pbx.c: – Executing [s@app-blacklist-check:17] Answer(“SIP/VoipFone-00000208”, “”) in new stack
[2014-03-24 12:41:52] VERBOSE[16109][C-0000012c] pbx.c: – Executing [s@app-blacklist-check:18] Wait(“SIP/VoipFone-00000208”, “1”) in new stack
[2014-03-24 12:41:53] VERBOSE[16109][C-0000012c] pbx.c: – Executing [s@app-blacklist-check:19] Zapateller(“SIP/VoipFone-00000208”, “”) in new stack
[2014-03-24 12:41:55] VERBOSE[16109][C-0000012c] pbx.c: – Executing [s@app-blacklist-check:20] Playback(“SIP/VoipFone-00000208”, “ss-noservice”) in new stack
[2014-03-24 12:41:55] VERBOSE[16109][C-0000012c] file.c: – <SIP/VoipFone-00000208> Playing ‘ss-noservice.alaw’ (language ‘en’)
[2014-03-24 12:41:57] VERBOSE[16109][C-0000012c] pbx.c: == Spawn extension (app-blacklist-check, s, 20) exited non-zero on ‘SIP/VoipFone-00000208’

Log file of working:

[2014-03-24 12:43:39] VERBOSE[3235][C-0000012d] netsock2.c: == Using SIP RTP TOS bits 184
[2014-03-24 12:43:39] VERBOSE[3235][C-0000012d] netsock2.c: == Using SIP RTP CoS mark 5
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [30169078@from-pstn:1] NoOp(“SIP/VoipFone-00000209”, “Catch-All DID Match - Found 30169078 - You probably want a DID for this.”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [30169078@from-pstn:2] Set(“SIP/VoipFone-00000209”, “__FROM_DID=30169078”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [30169078@from-pstn:3] Goto(“SIP/VoipFone-00000209”, “ext-did,s,1”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Goto (ext-did,s,1)
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@ext-did:1] ExecIf(“SIP/VoipFone-00000209”, “0?Set(__FROM_DID=s)”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@ext-did:2] Gosub(“SIP/VoipFone-00000209”, “app-blacklist-check,s,1()”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@app-blacklist-check:1] GotoIf(“SIP/VoipFone-00000209”, “0?check-blocked”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@app-blacklist-check:2] GotoIf(“SIP/VoipFone-00000209”, “0?check-blocked”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@app-blacklist-check:3] GotoIf(“SIP/VoipFone-00000209”, “0?check-blocked:morechecks”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Goto (app-blacklist-check,s,5)
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@app-blacklist-check:5] NoOp(“SIP/VoipFone-00000209”, “07786XXXXXX”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@app-blacklist-check:6] GotoIf(“SIP/VoipFone-00000209”, “0?strip2”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@app-blacklist-check:7] GotoIf(“SIP/VoipFone-00000209”, “0?strip1”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@app-blacklist-check:8] Goto(“SIP/VoipFone-00000209”, “check”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Goto (app-blacklist-check,s,14)
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@app-blacklist-check:14] GotoIf(“SIP/VoipFone-00000209”, “0?blacklisted”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@app-blacklist-check:15] Set(“SIP/VoipFone-00000209”, “CALLED_BLACKLIST=1”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@app-blacklist-check:16] Return(“SIP/VoipFone-00000209”, “”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@ext-did:3] Set(“SIP/VoipFone-00000209”, “CDR(did)=30169078”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@ext-did:4] ExecIf(“SIP/VoipFone-00000209”, “0 ?Set(CALLERID(name)=07786xxxxxx)”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@ext-did:5] Set(“SIP/VoipFone-00000209”, “CHANNEL(musicclass)=default”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@ext-did:6] Set(“SIP/VoipFone-00000209”, “__MOHCLASS=default”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@ext-did:7] Set(“SIP/VoipFone-00000209”, “__CALLINGPRES_SV=allowed_not_screened”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@ext-did:8] Set(“SIP/VoipFone-00000209”, “CALLERPRES()=allowed_not_screened”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@ext-did:9] Goto(“SIP/VoipFone-00000209”, “app-announcement-1,s,1”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Goto (app-announcement-1,s,1)
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@app-announcement-1:1] GotoIf(“SIP/VoipFone-00000209”, “0?begin”) in new stack
[2014-03-24 12:43:39] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@app-announcement-1:2] Answer(“SIP/VoipFone-00000209”, “”) in new stack
[2014-03-24 12:43:40] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@app-announcement-1:3] Wait(“SIP/VoipFone-00000209”, “1”) in new stack
[2014-03-24 12:43:41] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@app-announcement-1:4] NoOp(“SIP/VoipFone-00000209”, “Playing announcement Welcome”) in new stack
[2014-03-24 12:43:41] VERBOSE[16114][C-0000012d] pbx.c: – Executing [s@app-announcement-1:5] Playback(“SIP/VoipFone-00000209”, “custom/Welcome,noanswer”) in new stack
[2014-03-24 12:43:41] VERBOSE[16114][C-0000012d] file.c: – <SIP/VoipFone-00000209> Playing ‘custom/Welcome.slin’ (language ‘en’)
[2014-03-24 12:43:44] VERBOSE[16114][C-0000012d] pbx.c: == Spawn extension (app-announcement-1, s, 5) exited non-zero on ‘SIP/VoipFone-00000209’

I am wondering if it is the “Allow Anonymous” setting in the Asterisk settings, but I have read I should not allow this, and I understand it is not to do with anonymous calls. I am happy to be corrected though.

TRUNK:

Has no details in the Inbound Calls, I found this strange but apparently correct, and as I say I get calls in.

Outbound (I guess is not relevant here as outbound works)
No Dial Plans set
CID options - Allow any

INBOUND ROUTE:

has destination set to my announcement
other than the description everything else is blank

I am sure this is me doing something stupid, but I am new to this, and have tried everything I can think of first!