*2000 turns into 0

Asterisk 16.26.1
FreePBX 15

When I attempt to direct dial the VM of 2000 the system tries to dial 0 (dialing *2000)
When I direct dial the VM of 2001 the system tries to dial 1 (dialing *2001)

I first disabled the *2 feature code and then customized it to *6 but it seems to have no change.

Possible bug?

Providing Great Debug - Support Services - Documentation (freepbx.org)

The *2000 gets to the system but then it tries to call 0

76399	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [*2000@from-internal:1] Set("PJSIP/2004-00054655", "TEXTEN=0") in new stack	
76400	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [*2000@from-internal:2] Set("PJSIP/2004-00054655", "CALLERID_OVERIDE="XXXXX" <5707314537>") in new stack	
76401	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [*2000@from-internal:3] Goto("PJSIP/2004-00054655", "from-internal,0,1") in new stack	
76402	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx_builtins.c: Goto (from-internal,0,1)	
76403	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [0@from-internal:1] Macro("PJSIP/2004-00054655", "user-callerid,LIMIT") in new stack	
76404	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:1] Set("PJSIP/2004-00054655", "TOUCH_MONITOR=1685729722.353734") in new stack	
76405	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:2] Set("PJSIP/2004-00054655", "CHANCONTEXT=") in new stack	
76406	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:3] Set("PJSIP/2004-00054655", "CHANCONTEXT=") in new stack	
76407	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:4] Set("PJSIP/2004-00054655", "CHANEXTENCONTEXT=2004-00054655") in new stack	
76408	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:5] Set("PJSIP/2004-00054655", "CHANEXTEN=2004-00054655") in new stack	
76409	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:6] Set("PJSIP/2004-00054655", "CALLERID(number)=2004") in new stack	
76410	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:7] Set("PJSIP/2004-00054655", "AMPUSER=2004") in new stack	
76411	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:8] Set("PJSIP/2004-00054655", "HOTDESCKCHAN=2004-00054655") in new stack	
76412	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:9] Set("PJSIP/2004-00054655", "HOTDESKEXTEN=2004") in new stack	
76413	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:10] Set("PJSIP/2004-00054655", "HOTDESKCALL=0") in new stack	
76414	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:11] ExecIf("PJSIP/2004-00054655", "0?Set(HOTDESKCALL=1)") in new stack	
76415	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:12] ExecIf("PJSIP/2004-00054655", "0?Set(CALLERID(name)=)") in new stack	
76416	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:13] GotoIf("PJSIP/2004-00054655", "0?report") in new stack	
76417	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:14] ExecIf("PJSIP/2004-00054655", "1?Set(REALCALLERIDNUM=2004)") in new stack	
76418	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:15] Set("PJSIP/2004-00054655", "AMPUSER=2004") in new stack	
76419	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:16] GotoIf("PJSIP/2004-00054655", "0?limit") in new stack	
76420	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:17] Set("PJSIP/2004-00054655", "AMPUSERCIDNAME=TBD") in new stack	
76421	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:18] ExecIf("PJSIP/2004-00054655", "0?Set(__CIDMASQUERADING=TRUE)") in new stack	
76422	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:19] GotoIf("PJSIP/2004-00054655", "0?report") in new stack	
76423	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:20] Set("PJSIP/2004-00054655", "AMPUSERCID=2004") in new stack	
76424	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:21] Set("PJSIP/2004-00054655", "__DIAL_OPTIONS=HhTtr") in new stack	
76425	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:22] Set("PJSIP/2004-00054655", "CALLERID(all)="TBD" <2004>") in new stack	
76426	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:23] ExecIf("PJSIP/2004-00054655", "0?Set(CUSDIAL=)") in new stack	
76427	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:24] ExecIf("PJSIP/2004-00054655", "0?Set(CALLERID(all)="TBD" <2004>)") in new stack	
76428	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:25] GotoIf("PJSIP/2004-00054655", "0?limit") in new stack	
76429	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:26] ExecIf("PJSIP/2004-00054655", "1?Set(GROUP(concurrency_limit)=2004)") in new stack	
76430	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:27] ExecIf("PJSIP/2004-00054655", "0?Set(CHANNEL(language)=)") in new stack	
76431	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:28] NoOp("PJSIP/2004-00054655", "Macro Depth is 1") in new stack	
76432	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:29] GotoIf("PJSIP/2004-00054655", "1?report2:macroerror") in new stack	
76433	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx_builtins.c: Goto (macro-user-callerid,s,30)	
76434	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:30] GotoIf("PJSIP/2004-00054655", "1?continue") in new stack	
76435	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx_builtins.c: Goto (macro-user-callerid,s,49)	
76436	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:49] Set("PJSIP/2004-00054655", "CALLERID(number)=2004") in new stack	
76437	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:50] Set("PJSIP/2004-00054655", "CALLERID(name)=TBD") in new stack	
76438	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:51] GotoIf("PJSIP/2004-00054655", "0?cnum") in new stack	
76439	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:52] Set("PJSIP/2004-00054655", "CDR(cnam)=TBD") in new stack	
76440	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:53] Set("PJSIP/2004-00054655", "CDR(cnum)=2004") in new stack	
76441	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [s@macro-user-callerid:54] Set("PJSIP/2004-00054655", "CHANNEL(language)=en") in new stack	
76442	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [0@from-internal:2] Set("PJSIP/2004-00054655", "ROUTEUSER=2004") in new stack	
76443	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [0@from-internal:3] Set("PJSIP/2004-00054655", "ROUTEUSER=2004") in new stack	
76444	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [0@from-internal:4] GotoIf("PJSIP/2004-00054655", "1?notblind") in new stack	
76445	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx_builtins.c: Goto (from-internal,0,7)	
76446	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [0@from-internal:7] GotoIf("PJSIP/2004-00054655", "1?restrictedroute-f307a04e89d3a1adcadc914ad7be9ea2,0,2:outbound-allroutes,0,2") in new stack	
76447	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx_builtins.c: Goto (restrictedroute-f307a04e89d3a1adcadc914ad7be9ea2,0,2)	
76448	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Channel 'PJSIP/2004-00054655' sent to invalid extension: context,exten,priority=restrictedroute-f307a04e89d3a1adcadc914ad7be9ea2,0,2	
76449	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx.c: Executing [i@restrictedroute-f307a04e89d3a1adcadc914ad7be9ea2:1] Goto("PJSIP/2004-00054655", "bad-number,s,1") in new stack	
76450	[2023-06-02 14:15:22] VERBOSE[18617][C-000f14a0] pbx_builtins.c: Goto (bad-number,s,1)

Do you have a custom dial plan using *200 as a prefix to modify caller ID?

1 Like

The fact that it is trying to call 0 makes me think you have something assigned to *200. The call is failing because “0” doesn’t lead anywhere. You could make an outbound route that matches the dialed number and has a default route (no trunks) to VM. That would be a janky workaround, it is better to figure out the root cause. Is that all the log for C-000f14a0 or is there another leg of the call?

1 Like

You got it! CallerID Management module. Completely forgot it was once being used. Thanks!

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