Hi, as title says, I can’t dial out and am unsure how to interpret the logs as I’m unsure what a successful connection should look like and where mine is going wrong. I can receive incoming calls that pass my IVR and eventually reach my reception endpoint. When I try dial the call fails, but not sure if it’s a trunk or dial plan issue.
Numbers have been altered for privacy for this post.
My trunk number is 0211234522 (as colloquially dialed). My reception number is the same with an extra 0 at the end 02112345220 (I maybe should not have gone this confusion prone route, but oh well)
Trying to dial out to 0601234503
My logs when a call is attempted:
2[2020-10-23 07:40:34] VERBOSE[2202] pbx_variables.c: Setting global variable 'SIPDOMAIN' to '192.168.0.79'
3[2020-10-23 07:40:34] VERBOSE[2202] netsock2.c: Using SIP RTP Audio TOS bits 184
4[2020-10-23 07:40:34] VERBOSE[2202] netsock2.c: Using SIP RTP Audio TOS bits 184 in TCLASS field.
5[2020-10-23 07:40:34] VERBOSE[2202] netsock2.c: Using SIP RTP Audio CoS mark 5
6[2020-10-23 07:40:34] VERBOSE[21939][C-0000000a] pbx.c: Executing [[email protected]:1] ResetCDR("PJSIP/02112345220-0000000b", "") in new stack
7[2020-10-23 07:40:34] VERBOSE[21939][C-0000000a] pbx.c: Executing [[email protected]:2] NoCDR("PJSIP/02112345220-0000000b", "") in new stack
8[2020-10-23 07:40:34] VERBOSE[21939][C-0000000a] pbx.c: Executing [[email protected]:3] Progress("PJSIP/02112345220-0000000b", "") in new stack
9[2020-10-23 07:40:34] VERBOSE[21939][C-0000000a] pbx.c: Executing [[email protected]:4] Wait("PJSIP/02112345220-0000000b", "1") in new stack
10[2020-10-23 07:40:35] VERBOSE[21939][C-0000000a] pbx.c: Executing [[email protected]:5] Playback("PJSIP/02112345220-0000000b", "silence/1&cannot-complete-as-dialed&check-number-dial-again,noanswer") in new stack
11[2020-10-23 07:40:35] VERBOSE[21939][C-0000000a] file.c: <PJSIP/02112345220-0000000b> Playing 'silence/1.ulaw' (language 'en')
12[2020-10-23 07:40:36] VERBOSE[21939][C-0000000a] file.c: <PJSIP/02112345220-0000000b> Playing 'cannot-complete-as-dialed.ulaw' (language 'en')
13[2020-10-23 07:40:39] VERBOSE[21939][C-0000000a] file.c: <PJSIP/02112345220-0000000b> Playing 'check-number-dial-again.ulaw' (language 'en')
14[2020-10-23 07:40:41] VERBOSE[21939][C-0000000a] pbx.c: Executing [[email protected]:6] Wait("PJSIP/02112345220-0000000b", "1") in new stack
15[2020-10-23 07:40:42] VERBOSE[21939][C-0000000a] pbx.c: Executing [[email protected]:7] Congestion("PJSIP/02112345220-0000000b", "20") in new stack
16[2020-10-23 07:40:42] VERBOSE[21939][C-0000000a] pbx.c: Spawn extension (from-internal, 0601234503, 7) exited non-zero on 'PJSIP/02112345220-0000000b'
17[2020-10-23 07:40:42] VERBOSE[21939][C-0000000a] pbx.c: Executing [[email protected]:1] Macro("PJSIP/02112345220-0000000b", "hangupcall") in new stack
18[2020-10-23 07:40:42] VERBOSE[21939][C-0000000a] pbx.c: Executing [[email protected]:1] GotoIf("PJSIP/02112345220-0000000b", "1?theend") in new stack
19[2020-10-23 07:40:42] VERBOSE[21939][C-0000000a] pbx_builtins.c: Goto (macro-hangupcall,s,3)
20[2020-10-23 07:40:42] VERBOSE[21939][C-0000000a] pbx.c: Executing [[email protected]:3] ExecIf("PJSIP/02112345220-0000000b", "0?Set(CDR(recordingfile)=)") in new stack
21[2020-10-23 07:40:42] VERBOSE[21939][C-0000000a] pbx.c: Executing [[email protected]:4] NoOp("PJSIP/02112345220-0000000b", " montior file= ") in new stack
22[2020-10-23 07:40:42] VERBOSE[21939][C-0000000a] pbx.c: Executing [[email protected]:5] GotoIf("PJSIP/02112345220-0000000b", "1?skipagi") in new stack
23[2020-10-23 07:40:42] VERBOSE[21939][C-0000000a] pbx_builtins.c: Goto (macro-hangupcall,s,7)
24[2020-10-23 07:40:42] VERBOSE[21939][C-0000000a] pbx.c: Executing [[email protected]:7] Hangup("PJSIP/02112345220-0000000b", "") in new stack
25[2020-10-23 07:40:42] VERBOSE[21939][C-0000000a] app_macro.c: Spawn extension (macro-hangupcall, s, 7) exited non-zero on 'PJSIP/02112345220-0000000b' in macro 'hangupcall'
26[2020-10-23 07:40:42] VERBOSE[21939][C-0000000a] pbx.c: Spawn extension (from-internal, h, 1) exited non-zero on 'PJSIP/02112345220-0000000b'
I’m still a little unsure how to make sense of the log, but my understanding is:
I notice between lines 00000 and 00003 my endpoint/phone fails a registration attempt once then seems to succeed the second time.
Then line 00004 the call is requested, but around line 00009 it fails with reason Unauthorized.
I’m assuming the number in second column (1603442454) refers to the stack instance of the call? I’m unsure if the Authorization missive applies to the endpoint or to the trunk upstream?
Thank you. Uhm, wouldn’t XXXXXXXXXX have matched? If not I clearly am missing something about how dialing plan works.
I deleted my outbound dial plan, created a new one with just one entry; 0ZXXXXXXXX. I get the same voice notice “the number you have dialed does not exist or is not in service”. My log seems different though: