Why Can't I call out?

So, I have been dealing with lots of little ghosts in the machine.

I was finally able to get at D40 phone to connect and talk to the server, but now I have my outbound routes setup, ( I used the Dial Pattern Wizard) but I still cannot get the phones to dial out! I am able to get calls inbound, so I’m not sure what I’m doing wrong. The log does not make much sense to me… What am I doing wrong?

Log

8926 [2023-12-02 17:46:22] VERBOSE[13141] netsock2.c: Using SIP RTP Audio CoS mark 5
8927 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [17197662583@from-internal:1] Macro(PJSIP/2000-0000002d, user-callerid,LIMIT) in new stack
8928 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:1] Set(PJSIP/2000-0000002d, TOUCH_MONITOR=1701564382.55) in new stack
8929 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:2] Set(PJSIP/2000-0000002d, CHANCONTEXT=) in new stack
8930 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:3] Progress(PJSIP/2000-0000002d, ) in new stack
8931 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:4] Set(PJSIP/2000-0000002d, CHANCONTEXT=) in new stack
8932 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:5] Set(PJSIP/2000-0000002d, CHANEXTENCONTEXT=2000-0000002d) in new stack
8933 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:6] Set(PJSIP/2000-0000002d, CHANEXTEN=2000-0000002d) in new stack
8934 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:7] Set(PJSIP/2000-0000002d, CALLERID(number)=2000) in new stack
8935 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:8] Set(PJSIP/2000-0000002d, AMPUSER=2000) in new stack
8936 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:9] Set(PJSIP/2000-0000002d, HOTDESCKCHAN=2000-0000002d) in new stack
8937 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:10] Set(PJSIP/2000-0000002d, HOTDESKEXTEN=2000) in new stack
8938 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:11] Set(PJSIP/2000-0000002d, HOTDESKCALL=0) in new stack
8939 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:12] ExecIf(PJSIP/2000-0000002d, 0?Set(HOTDESKCALL=1)) in new stack
8940 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:13] ExecIf(PJSIP/2000-0000002d, 0?Set(CALLERID(name)=)) in new stack
8941 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:14] GotoIf(PJSIP/2000-0000002d, 0?report) in new stack
8942 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:15] ExecIf(PJSIP/2000-0000002d, 1?Set(REALCALLERIDNUM=2000)) in new stack
8943 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:16] Set(PJSIP/2000-0000002d, AMPUSER=2000) in new stack
8944 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:17] GotoIf(PJSIP/2000-0000002d, 0?limit) in new stack
8945 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:18] Set(PJSIP/2000-0000002d, AMPUSERCIDNAME=Main Desk) in new stack
8946 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:19] ExecIf(PJSIP/2000-0000002d, 0?Set(__CIDMASQUERADING=TRUE)) in new stack
8947 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:20] GotoIf(PJSIP/2000-0000002d, 0?report) in new stack
8948 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:21] Set(PJSIP/2000-0000002d, AMPUSERCID=2000) in new stack
8949 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:22] Set(PJSIP/2000-0000002d, __DIAL_OPTIONS=HhTtr) in new stack
8950 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:23] Set(PJSIP/2000-0000002d, CALLERID(all)=Main Desk <2000>) in new stack
8951 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:24] ExecIf(PJSIP/2000-0000002d, 0?Set(CUSDIAL=)) in new stack
8952 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:25] ExecIf(PJSIP/2000-0000002d, 0?Set(CALLERID(all)=Main Desk <2000>)) in new stack
8953 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:26] GotoIf(PJSIP/2000-0000002d, 0?limit) in new stack
8954 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:27] ExecIf(PJSIP/2000-0000002d, 1?Set(GROUP(concurrency_limit)=2000)) in new stack
8955 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:28] ExecIf(PJSIP/2000-0000002d, 0?Set(CHANNEL(language)=)) in new stack
8956 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:29] NoOp(PJSIP/2000-0000002d, Macro Depth is 1) in new stack
8957 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:30] GotoIf(PJSIP/2000-0000002d, 1?report2:macroerror) in new stack
8958 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx_builtins.c: Goto (macro-user-callerid,s,31)
8959 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:31] GotoIf(PJSIP/2000-0000002d, 1?continue) in new stack
8960 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx_builtins.c: Goto (macro-user-callerid,s,50)
8961 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:50] Set(PJSIP/2000-0000002d, CALLERID(number)=2000) in new stack
8962 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:51] Set(PJSIP/2000-0000002d, CALLERID(name)=Main Desk) in new stack
8963 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:52] GotoIf(PJSIP/2000-0000002d, 0?cnum) in new stack
8964 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:53] Set(PJSIP/2000-0000002d, __MCNUM=2000) in new stack
8965 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:54] Set(PJSIP/2000-0000002d, __MCNAME=Main Desk) in new stack
8966 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:55] Set(PJSIP/2000-0000002d, __MCEXTEN=2000) in new stack
8967 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:56] Set(PJSIP/2000-0000002d, __MCORGCHAN=PJSIP/2000-0000002d) in new stack
8968 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:57] Set(PJSIP/2000-0000002d, CDR(cnam)=Main Desk) in new stack
8969 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:58] Set(PJSIP/2000-0000002d, CDR(cnum)=2000) in new stack
8970 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@macro-user-callerid:59] Set(PJSIP/2000-0000002d, CHANNEL(language)=en) in new stack
8971 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [17197662583@from-internal:2] Set(PJSIP/2000-0000002d, ROUTEUSER=2000) in new stack
8972 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [17197662583@from-internal:3] Set(PJSIP/2000-0000002d, ROUTEUSER=2000) in new stack
8973 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [17197662583@from-internal:4] GotoIf(PJSIP/2000-0000002d, 1?notblind) in new stack
8974 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx_builtins.c: Goto (from-internal,17197662583,7)
8975 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [17197662583@from-internal:7] GotoIf(PJSIP/2000-0000002d, 1?restrictedroute-cfcd208495d565ef66e7dff9f98764da,17197662583,2:outbound-allroutes,17197662583,2) in new stack
8976 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx_builtins.c: Goto (restrictedroute-cfcd208495d565ef66e7dff9f98764da,17197662583,2)
8977 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Channel ‘PJSIP/2000-0000002d’ sent to invalid extension: context,exten,priority=restrictedroute-cfcd208495d565ef66e7dff9f98764da,17197662583,2
8978 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [i@restrictedroute-cfcd208495d565ef66e7dff9f98764da:1] Goto(PJSIP/2000-0000002d, bad-number,s,1) in new stack
8979 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx_builtins.c: Goto (bad-number,s,1)
8980 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [s@bad-number:1] Goto(PJSIP/2000-0000002d, 11,1) in new stack
8981 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx_builtins.c: Goto (bad-number,11,1)
8982 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [11@bad-number:1] ResetCDR(PJSIP/2000-0000002d, ) in new stack
8983 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [11@bad-number:2] NoCDR(PJSIP/2000-0000002d, ) in new stack
8984 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [11@bad-number:3] Progress(PJSIP/2000-0000002d, ) in new stack
8985 [2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Executing [11@bad-number:4] Wait(PJSIP/2000-0000002d, 1) in new stack
8986 [2023-12-02 17:46:23] VERBOSE[14933][C-00000028] pbx.c: Executing [11@bad-number:5] Playback(PJSIP/2000-0000002d, silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer) in new stack
8987 [2023-12-02 17:46:23] VERBOSE[14933][C-00000028] file.c: <PJSIP/2000-0000002d> Playing ‘silence/1.ulaw’ (language ‘en’)
8988 [2023-12-02 17:46:24] VERBOSE[14933][C-00000028] file.c: <PJSIP/2000-0000002d> Playing ‘cannot-complete-as-dialed.ulaw’ (language ‘en’)
8989 [2023-12-02 17:46:27] VERBOSE[14933][C-00000028] file.c: <PJSIP/2000-0000002d> Playing ‘check-number-dial-again.ulaw’ (language ‘en’)
8990 [2023-12-02 17:46:29] VERBOSE[14933][C-00000028] pbx.c: Executing [11@bad-number:6] Wait(PJSIP/2000-0000002d, 1) in new stack
8991 [2023-12-02 17:46:30] VERBOSE[14933][C-00000028] pbx.c: Spawn extension (bad-number, 11, 6) exited non-zero on ‘PJSIP/2000-0000002d’

|[2023-12-02 17:46:22] VERBOSE[14933][C-00000028] pbx.c: Channel ‘PJSIP/2000-0000002d’ sent to invalid extension: context,exten,priority=restrictedroute-cfcd208495d565ef66e7dff9f98764da,17197662583,2||
| — | — |
|8978|

That is why

I don’t understand why it’s doing that.
I have the routes (two of them) both setup to be allowed.
The extenstions are created and calls are being routed to the extenstion / phone.

The wording of the log doesn’t make sense.

Can you help further?

Well Restricted Routes is for restricting outbound calling. You’re dialling the digits 11 which is ending up not matching any internal dial patterns so it ends up in the external dial patterns (outbound routes) which doesn’t have a matching pattern to 11.

So is 11 supposed to go to an internal extension?

If you are using Extension Routing or Class of Service, these modules deny all outbound service as a default; you have to enable each extension to use the route in question.

If your application does not require extensive controls over calling restrictions, IMO you should delete the modules as they will only cause trouble. If you need a trivial restriction such as blocking external calls from a lobby phone or door phone, you can still do that using the CallerID field of the Outbound Routes.

If you still have trouble, post screenshots of the Route Settings and Dial Patterns tabs of your Outbound Routes.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.