I recently learned that all calls to extension 8311 are routing to extension 8192. There was nothing on either user’s extensions and so far I’ve tried a factory reset on the Sangoma phone, as well as deleting and recreating the 8311 extension.
Here’s a call from 8127 to this extension. Note the 8192 in the second to last line:
[2018-09-17 09:29:12] VERBOSE[30195][C-00000e68] pbx.c: Executing [8311@from-internal:1] GotoIf("SIP/8127-00000fd3", "1?ext-local,8311,1:followme-check,8311,1") in new stack
[2018-09-17 09:29:12] VERBOSE[30195][C-00000e68] pbx_builtins.c: Goto (ext-local,8311,1)
[2018-09-17 09:29:12] VERBOSE[30195][C-00000e68] pbx.c: Executing [8311@ext-local:1] Set("SIP/8127-00000fd3", "__RINGTIMER=15") in new stack
[2018-09-17 09:29:12] VERBOSE[30195][C-00000e68] pbx.c: Executing [8311@ext-local:2] Macro("SIP/8127-00000fd3", "exten-vm,8311,8311,0,0,0") in new stack
[2018-09-17 09:29:12] VERBOSE[30195][C-00000e68] pbx.c: Executing [s@macro-exten-vm:3] Set("SIP/8127-00000fd3", "__EXTTOCALL=8311") in new stack
[2018-09-17 09:29:12] VERBOSE[30195][C-00000e68] pbx.c: Executing [s@macro-exten-vm:4] Set("SIP/8127-00000fd3", "__PICKUPMARK=8311") in new stack
[2018-09-17 09:29:12] VERBOSE[30195][C-00000e68] pbx.c: Executing [s@macro-exten-vm:6] ExecIf("SIP/8127-00000fd3", "0?Macro(vm,8311,DIRECTDIAL,)") in new stack
[2018-09-17 09:29:12] VERBOSE[30195][C-00000e68] pbx.c: Executing [s@macro-exten-vm:8] ExecIf("SIP/8127-00000fd3", "0?Gosub(ext-intercom,*808311,1())") in new stack
[2018-09-17 09:29:12] WARNING[30195][C-00000e68] pbx_functions.c: Can't find trailing parenthesis for function 'DB(DEVICE/8311/dial'?
[2018-09-17 09:29:12] WARNING[30195][C-00000e68] pbx_functions.c: Can't find trailing parenthesis for function 'DB(DEVICE/8311/dial'?
[2018-09-17 09:29:12] VERBOSE[30195][C-00000e68] pbx.c: Executing [s@macro-exten-vm:12] Gosub("SIP/8127-00000fd3", "sub-record-check,s,1(exten,8311,dontcare)") in new stack
[2018-09-17 09:29:12] VERBOSE[30195][C-00000e68] pbx.c: Executing [exten@sub-record-check:1] NoOp("SIP/8127-00000fd3", "Exten Recording Check between 8127 and 8311") in new stack
[2018-09-17 09:29:12] VERBOSE[30195][C-00000e68] pbx.c: Executing [exten@sub-record-check:16] Gosub("SIP/8127-00000fd3", "recordcheck,1(dontcare,internal,8311)") in new stack
[2018-09-17 09:29:12] VERBOSE[30195][C-00000e68] pbx.c: Executing [s@macro-exten-vm:20] Macro("SIP/8127-00000fd3", "dial-one,15,HhTtr,8311") in new stack
[2018-09-17 09:29:12] VERBOSE[30195][C-00000e68] pbx.c: Executing [s@macro-dial-one:1] Set("SIP/8127-00000fd3", "DEXTEN=8311") in new stack
[2018-09-17 09:29:12] VERBOSE[30195][C-00000e68] pbx.c: Executing [s@macro-dial-one:3] ExecIf("SIP/8127-00000fd3", "0?Set(EXTTOCALL=8311)") in new stack
[2018-09-17 09:29:12] VERBOSE[30195][C-00000e68] pbx.c: Executing [dstring@macro-dial-one:2] Set("SIP/8127-00000fd3", "DEVICES=8311") in new stack
[2018-09-17 09:29:12] VERBOSE[30195][C-00000e68] pbx.c: Executing [ctset@macro-dial-one:1] Set("SIP/8127-00000fd3", "DB(CALLTRACE/8311)=8127") in new stack
[2018-09-17 09:29:12] VERBOSE[30195][C-00000e68] pbx.c: Executing [s@macro-dial-one:46] Gosub("SIP/8127-00000fd3", "sub-presencestate-display,s,1(8311)") in new stack
[2018-09-17 09:29:12] VERBOSE[30195][C-00000e68] pbx.c: Executing [s@macro-dial-one:48] Set("SIP/8127-00000fd3", "CONNECTEDLINE(num)=8311") in new stack
[2018-09-17 09:29:12] VERBOSE[30195][C-00000e68] app_stack.c: Spawn extension (from-internal, 8311, 1) exited non-zero on **'SIP/8192**-00000fd4'
[2018-09-17 09:29:26] VERBOSE[30195][C-00000e68] pbx.c: Spawn extension (ext-local, 8311, 2) exited non-zero on 'SIP/8127-00000fd3'
Checking the Asterisk database, note the same reference again (SIP/8192)
freepbx*CLI> database show device 8311
/DEVICE/8311/default_user : 8311
/DEVICE/8311/dial : **SIP/8192**
/DEVICE/8311/emergency_cid : nnnnnnnnnn
/DEVICE/8311/type : fixed
/DEVICE/8311/user : 8311
5 results found.
How do I correct this?