Hi there, I’m a bit of a noob with Asterisk and FreePBX, so although I have a working system, there remain a few little niggles!
The problem is that for certain numbers (local to my telephone exchange) I cannot dial them properly. If I use the full dialling prefix, there is no issue.
For example calling 9292929, works, using the outbound routes to strip the initial 9, and a trunk dialling rule to add (01254) to all 5 and 6 character local numbers
However, calling 9282083 fails, with asterisk telling me the number can’t be completed as dialled.
I can’t see anything different with the numbers from the perspective of the dial rules, nor can I see the call to the failed number making it as far as my SIP/ISDN Trunk (Patton SmartNode). Asterisk is obviously unhappy with it, but why?
I can’t see any clashes with the feature codes, though I guess there might be more than is displayed in the GUI?
Looking at the Asterisk Log Files, this is what I see, though it didn’t give me any clues…
[Jun 20 21:47:19] VERBOSE[3777] logger.c: == Using SIP RTP TOS bits 184
[Jun 20 21:47:19] VERBOSE[3777] logger.c: == Using SIP RTP CoS mark 5
[Jun 20 21:47:19] VERBOSE[3777] logger.c: == Using SIP VRTP TOS bits 136
[Jun 20 21:47:19] VERBOSE[3777] logger.c: == Using SIP VRTP CoS mark 6
[Jun 20 21:47:19] DEBUG[3659] pbx.c: FONALITY: This thread has already held the conlock, skip locking
[Jun 20 21:47:19] VERBOSE[2569] logger.c: – Executing [[email protected]:1] ResetCDR(“SIP/400-0000037c”, “”) in new stack
[Jun 20 21:47:19] VERBOSE[2569] logger.c: – Executing [[email protected]:2] NoCDR(“SIP/400-0000037c”, “”) in new stack
[Jun 20 21:47:19] VERBOSE[2569] logger.c: – Executing [[email protected]:3] Wait(“SIP/400-0000037c”, “1”) in new stack
[Jun 20 21:47:20] VERBOSE[2569] logger.c: – Executing [[email protected]:4] Playback(“SIP/400-0000037c”, “silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer”) in new stack
[Jun 20 21:47:20] VERBOSE[2569] logger.c: – <SIP/400-0000037c> Playing ‘silence/1.gsm’ (language ‘en’)
[Jun 20 21:47:21] VERBOSE[2569] logger.c: – <SIP/400-0000037c> Playing ‘cannot-complete-as-dialed.ulaw’ (language ‘en’)
[Jun 20 21:47:24] VERBOSE[2569] logger.c: – <SIP/400-0000037c> Playing ‘check-number-dial-again.ulaw’ (language ‘en’)
[Jun 20 21:47:24] VERBOSE[2569] logger.c: == Spawn extension (from-internal, 9282083, 4) exited non-zero on ‘SIP/400-0000037c’
[Jun 20 21:47:24] VERBOSE[2569] logger.c: – Executing [[email protected]:1] Macro(“SIP/400-0000037c”, “hangupcall”) in new stack
[Jun 20 21:47:24] VERBOSE[2569] logger.c: – Executing [[email protected]:1] GotoIf(“SIP/400-0000037c”, “1?skiprg”) in new stack
[Jun 20 21:47:24] VERBOSE[2569] logger.c: – Goto (macro-hangupcall,s,4)
[Jun 20 21:47:24] VERBOSE[2569] logger.c: – Executing [[email protected]:4] GotoIf(“SIP/400-0000037c”, “1?skipblkvm”) in new stack
[Jun 20 21:47:24] VERBOSE[2569] logger.c: – Goto (macro-hangupcall,s,7)
[Jun 20 21:47:24] VERBOSE[2569] logger.c: – Executing [[email protected]:7] GotoIf(“SIP/400-0000037c”, “1?theend”) in new stack
[Jun 20 21:47:24] VERBOSE[2569] logger.c: – Goto (macro-hangupcall,s,9)
[Jun 20 21:47:24] VERBOSE[2569] logger.c: – Executing [[email protected]:9] Hangup(“SIP/400-0000037c”, “”) in new stack
[Jun 20 21:47:24] VERBOSE[2569] logger.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on ‘SIP/400-0000037c’ in macro ‘hangupcall’
[Jun 20 21:47:24] VERBOSE[2569] logger.c: == Spawn extension (from-internal, h, 1) exited non-zero on ‘SIP/400-0000037c’
[Jun 20 21:47:24] DEBUG[3659] pbx.c: FONALITY: This thread has already held the conlock, skip locking
[Jun 20 21:48:38] VERBOSE[3777] logger.c: == Using SIP RTP TOS bits 184
[Jun 20 21:48:38] VERBOSE[3777] logger.c: == Using SIP RTP CoS mark 5
[Jun 20 21:48:38] VERBOSE[3777] logger.c: == Using SIP VRTP TOS bits 136
[Jun 20 21:48:38] VERBOSE[3777] logger.c: == Using SIP VRTP CoS mark 6
[Jun 20 21:48:39] DEBUG[3659] pbx.c: FONALITY: This thread has already held the conlock, skip locking
[Jun 20 21:48:39] VERBOSE[2572] logger.c: – Executing [[email protected]:1] Macro(“SIP/400-0000037d”, “usersets-2,”) in new stack
Anyone got any tips/advice that could point me in the right direction?
EDIT
some additional numbers that worked:
957835
9279972
9665548
9919495
…and another that doesn’t
9693400
…again, changing them all to 9-01254-xxxxxx works fine
My main outbound route dial rules:
9|07[4-9]. (UK Mobile Numbers)
9|0[12358]. (UK Landlines, no premium rates)
9|NZZZZ (Local numbers, 5 digit)
9|NZZZZZ (Local numbers, 6 digit)
My trunk dial rules:
01254+NZZZZ (Prepends 01254 to 5 digit local numbers)
01254+NZZZZZ (Prepends 01254 to 6 digit local numbers)
. (everything else)
Thanks