CDR does not contain CNAME when inbound route sends call to another trunk

If an inbound route sends a call to an extension, the CNAME shows up in the CDR.

If the inbound route is changed to send the call to another trunk, the CNAME does not show up in the CDR, only the CID shows up. The CNAME shows up on the next system (at the other end of the trunk where it is sent to).

Why is this happening?

logs?

(They always reduce guessing :wink: )

Ok, I see that the cname is in the logs. AND, if I click on the UniqueID (in the System column of the CDR), it shows the cname in the call details.

It is only missing in the initial CDR reports page that shows all of the calls.

For calls that go to an extension, it shows cname on this page.
For calls that go to a trunk, it does not show cname on the page (but does show in the extra details when clicked on)

That’s more an observation, how about a log ?

[root@pbx-b ~]# grep 1609293832.355 /var/log/asterisk/full*
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:22] Set("SIP/VoipTrunk-000000c7", "__CRM_LINKEDID=1609293832.355") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:56] VERBOSE[30127][C-00000073] pbx.c: Executing [s@crm-hangup:4] NoOp("SIP/VoipTrunk-000000c7", "MASTER CHANNEL: 1609293832.355 = 1609293832.355") in new stack
[root@pbx-b ~]# grep C-00000073 /var/log/asterisk/full*
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[9418][C-00000073] netsock2.c: Using SIP RTP TOS bits 184
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[9418][C-00000073] netsock2.c: Using SIP RTP CoS mark 5
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[9418][C-00000073] res_srtp.c: Unsupported crypto suite: AEAD_AES_256_GCM_8
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[9418][C-00000073] res_srtp.c: Unsupported crypto suite: AEAD_AES_128_GCM_8
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:1] Set("SIP/VoipTrunk-000000c7", "__DIRECTION=INBOUND") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:2] Gosub("SIP/VoipTrunk-000000c7", "sub-record-check,s,1(in,18********0,never)") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [s@sub-record-check:1] GotoIf("SIP/VoipTrunk-000000c7", "0?initialized") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [s@sub-record-check:2] Set("SIP/VoipTrunk-000000c7", "__REC_STATUS=INITIALIZED") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [s@sub-record-check:3] Set("SIP/VoipTrunk-000000c7", "NOW=1609293832") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [s@sub-record-check:4] Set("SIP/VoipTrunk-000000c7", "__DAY=29") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [s@sub-record-check:5] Set("SIP/VoipTrunk-000000c7", "__MONTH=12") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [s@sub-record-check:6] Set("SIP/VoipTrunk-000000c7", "__YEAR=2020") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [s@sub-record-check:7] Set("SIP/VoipTrunk-000000c7", "__TIMESTR=20201229-210352") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [s@sub-record-check:8] Set("SIP/VoipTrunk-000000c7", "__FROMEXTEN=unknown") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [s@sub-record-check:9] Set("SIP/VoipTrunk-000000c7", "__MON_FMT=wav") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [s@sub-record-check:10] NoOp("SIP/VoipTrunk-000000c7", "Recordings initialized") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [s@sub-record-check:11] ExecIf("SIP/VoipTrunk-000000c7", "0?Set(ARG3=dontcare)") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [s@sub-record-check:12] Set("SIP/VoipTrunk-000000c7", "REC_POLICY_MODE_SAVE=") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [s@sub-record-check:13] ExecIf("SIP/VoipTrunk-000000c7", "0?Set(REC_STATUS=NO)") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [s@sub-record-check:14] GotoIf("SIP/VoipTrunk-000000c7", "2?checkaction") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx_builtins.c: Goto (sub-record-check,s,17)
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [s@sub-record-check:17] GotoIf("SIP/VoipTrunk-000000c7", "1?sub-record-check,in,1") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx_builtins.c: Goto (sub-record-check,in,1)
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [in@sub-record-check:1] NoOp("SIP/VoipTrunk-000000c7", "Inbound Recording Check to 18********0") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [in@sub-record-check:2] Set("SIP/VoipTrunk-000000c7", "FROMEXTEN=unknown") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [in@sub-record-check:3] ExecIf("SIP/VoipTrunk-000000c7", "10?Set(FROMEXTEN=8********1)") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [in@sub-record-check:4] Gosub("SIP/VoipTrunk-000000c7", "recordcheck,1(never,in,18********0)") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [recordcheck@sub-record-check:1] NoOp("SIP/VoipTrunk-000000c7", "Starting recording check against never") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [recordcheck@sub-record-check:2] Goto("SIP/VoipTrunk-000000c7", "never") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx_builtins.c: Goto (sub-record-check,recordcheck,14)
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [recordcheck@sub-record-check:14] Set("SIP/VoipTrunk-000000c7", "__REC_POLICY_MODE=NEVER") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [recordcheck@sub-record-check:15] Goto("SIP/VoipTrunk-000000c7", "stoprec") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx_builtins.c: Goto (sub-record-check,recordcheck,24)
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [recordcheck@sub-record-check:24] NoOp("SIP/VoipTrunk-000000c7", "Stopping recording: in, 18********0") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [recordcheck@sub-record-check:25] Set("SIP/VoipTrunk-000000c7", "__REC_STATUS=STOPPED") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [recordcheck@sub-record-check:26] System("SIP/VoipTrunk-000000c7", "/var/lib/asterisk/bin/stoprecording.php "SIP/VoipTrunk-000000c7"") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [recordcheck@sub-record-check:27] Return("SIP/VoipTrunk-000000c7", "") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [in@sub-record-check:5] Return("SIP/VoipTrunk-000000c7", "") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:3] Set("SIP/VoipTrunk-000000c7", "CHANNEL(tonezone)=us") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:4] Set("SIP/VoipTrunk-000000c7", "__FROM_DID=18********0") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:5] Set("SIP/VoipTrunk-000000c7", "returnhere=1") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:6] Gosub("SIP/VoipTrunk-000000c7", "app-blacklist-check,s,1()") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [s@app-blacklist-check:1] GotoIf("SIP/VoipTrunk-000000c7", "0?blacklisted") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [s@app-blacklist-check:2] Set("SIP/VoipTrunk-000000c7", "CALLED_BLACKLIST=1") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [s@app-blacklist-check:3] Return("SIP/VoipTrunk-000000c7", "") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:7] Set("SIP/VoipTrunk-000000c7", "CDR(did)=18********0") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:8] GotoIf("SIP/VoipTrunk-000000c7", "0?") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:9] ExecIf("SIP/VoipTrunk-000000c7", "0 ?Set(CALLERID(name)=8********1)") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:10] Set("SIP/VoipTrunk-000000c7", "__MOHCLASS=") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:11] Set("SIP/VoipTrunk-000000c7", "__REVERSAL_REJECT=FALSE") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:12] GotoIf("SIP/VoipTrunk-000000c7", "1?post-reverse-charge") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx_builtins.c: Goto (from-trunk,18********0,14)
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:14] NoOp("SIP/VoipTrunk-000000c7", "") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:15] Set("SIP/VoipTrunk-000000c7", "__CALLINGNAMEPRES_SV=allowed_not_screened") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:16] Set("SIP/VoipTrunk-000000c7", "__CALLINGNUMPRES_SV=allowed_not_screened") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:17] Set("SIP/VoipTrunk-000000c7", "CALLERID(name-pres)=allowed_not_screened") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:18] Set("SIP/VoipTrunk-000000c7", "CALLERID(num-pres)=allowed_not_screened") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:19] NoOp("SIP/VoipTrunk-000000c7", "CallerID Entry Point") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:20] Set("SIP/VoipTrunk-000000c7", "__CRM_DIRECTION=INBOUND") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:21] Set("SIP/VoipTrunk-000000c7", "__CRM_SOURCE=8********1") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:22] Set("SIP/VoipTrunk-000000c7", "__CRM_LINKEDID=1609293832.355") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:23] AGI("SIP/VoipTrunk-000000c7", "sangomacrm.agi,true") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] res_agi.c: <SIP/VoipTrunk-000000c7>AGI Script sangomacrm.agi completed, returning 0
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:24] ExecIf("SIP/VoipTrunk-000000c7", "1?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:25] Goto("SIP/VoipTrunk-000000c7", "ext-trunk,7,1") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx_builtins.c: Goto (ext-trunk,7,1)
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [7@ext-trunk:1] Set("SIP/VoipTrunk-000000c7", "TDIAL_STRING=SIP/192.168.1.2") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [7@ext-trunk:2] Set("SIP/VoipTrunk-000000c7", "DIAL_TRUNK=7") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [7@ext-trunk:3] Goto("SIP/VoipTrunk-000000c7", "ext-trunk,tdial,1") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx_builtins.c: Goto (ext-trunk,tdial,1)
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [tdial@ext-trunk:1] Set("SIP/VoipTrunk-000000c7", "OUTBOUND_GROUP=OUT_7") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [tdial@ext-trunk:2] GotoIf("SIP/VoipTrunk-000000c7", "1?nomax") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx_builtins.c: Goto (ext-trunk,tdial,4)
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [tdial@ext-trunk:4] ExecIf("SIP/VoipTrunk-000000c7", "1?Set(CALLERPRES(name-pres)=allowed_not_screened)") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [tdial@ext-trunk:5] ExecIf("SIP/VoipTrunk-000000c7", "1?Set(CALLERPRES(num-pres)=allowed_not_screened)") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [tdial@ext-trunk:6] Set("SIP/VoipTrunk-000000c7", "DIAL_NUMBER=18********0") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [tdial@ext-trunk:7] GosubIf("SIP/VoipTrunk-000000c7", "0?sub-flp-7,s,1()") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [tdial@ext-trunk:8] Set("SIP/VoipTrunk-000000c7", "OUTNUM=18********0") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [tdial@ext-trunk:9] Set("SIP/VoipTrunk-000000c7", "DIAL_TRUNK_OPTIONS=") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [tdial@ext-trunk:10] Dial("SIP/VoipTrunk-000000c7", "SIP/192.168.1.2/18********0,300,") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] netsock2.c: Using SIP RTP TOS bits 184
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] netsock2.c: Using SIP RTP CoS mark 5
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] app_dial.c: Called SIP/192.168.1.2/18********0
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] app_dial.c: SIP/192.168.1.2-000000c8 is ringing
/var/log/asterisk/full:[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] app_dial.c: SIP/192.168.1.2-000000c8 is ringing
/var/log/asterisk/full:[2020-12-29 21:03:54] VERBOSE[30127][C-00000073] app_dial.c: SIP/192.168.1.2-000000c8 answered SIP/VoipTrunk-000000c7
/var/log/asterisk/full:[2020-12-29 21:03:54] VERBOSE[30147][C-00000073] bridge_channel.c: Channel SIP/192.168.1.2-000000c8 joined 'simple_bridge' basic-bridge <f9bc5080-8765-48e2-b2cd-f00db61ef3c4>
/var/log/asterisk/full:[2020-12-29 21:03:54] VERBOSE[30127][C-00000073] bridge_channel.c: Channel SIP/VoipTrunk-000000c7 joined 'simple_bridge' basic-bridge <f9bc5080-8765-48e2-b2cd-f00db61ef3c4>
/var/log/asterisk/full:[2020-12-29 21:03:56] VERBOSE[30147][C-00000073] bridge_channel.c: Channel SIP/192.168.1.2-000000c8 left 'simple_bridge' basic-bridge <f9bc5080-8765-48e2-b2cd-f00db61ef3c4>
/var/log/asterisk/full:[2020-12-29 21:03:56] VERBOSE[30127][C-00000073] bridge_channel.c: Channel SIP/VoipTrunk-000000c7 left 'simple_bridge' basic-bridge <f9bc5080-8765-48e2-b2cd-f00db61ef3c4>
/var/log/asterisk/full:[2020-12-29 21:03:56] VERBOSE[30127][C-00000073] pbx.c: Spawn extension (ext-trunk, tdial, 10) exited non-zero on 'SIP/VoipTrunk-000000c7'
/var/log/asterisk/full:[2020-12-29 21:03:56] VERBOSE[30127][C-00000073] app_stack.c: SIP/VoipTrunk-000000c7 Internal Gosub(crm-hangup,s,1) start
/var/log/asterisk/full:[2020-12-29 21:03:56] VERBOSE[30127][C-00000073] pbx.c: Executing [s@crm-hangup:1] NoOp("SIP/VoipTrunk-000000c7", "Sending Hangup to CRM") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:56] VERBOSE[30127][C-00000073] pbx.c: Executing [s@crm-hangup:2] NoOp("SIP/VoipTrunk-000000c7", "HANGUP CAUSE: 16") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:56] VERBOSE[30127][C-00000073] pbx.c: Executing [s@crm-hangup:3] ExecIf("SIP/VoipTrunk-000000c7", "0?Set(__CRM_VOICEMAIL=)") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:56] VERBOSE[30127][C-00000073] pbx.c: Executing [s@crm-hangup:4] NoOp("SIP/VoipTrunk-000000c7", "MASTER CHANNEL: 1609293832.355 = 1609293832.355") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:56] VERBOSE[30127][C-00000073] pbx.c: Executing [s@crm-hangup:5] GotoIf("SIP/VoipTrunk-000000c7", "0?return") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:56] VERBOSE[30127][C-00000073] pbx.c: Executing [s@crm-hangup:6] Set("SIP/VoipTrunk-000000c7", "__CRM_HANGUP=1") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:56] VERBOSE[30127][C-00000073] pbx.c: Executing [s@crm-hangup:7] AGI("SIP/VoipTrunk-000000c7", "sangomacrm.agi") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:56] VERBOSE[30127][C-00000073] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/sangomacrm.agi
/var/log/asterisk/full:[2020-12-29 21:03:56] VERBOSE[30127][C-00000073] res_agi.c: <SIP/VoipTrunk-000000c7>AGI Script sangomacrm.agi completed, returning 0
/var/log/asterisk/full:[2020-12-29 21:03:56] VERBOSE[30127][C-00000073] pbx.c: Executing [s@crm-hangup:8] Return("SIP/VoipTrunk-000000c7", "") in new stack
/var/log/asterisk/full:[2020-12-29 21:03:56] VERBOSE[30127][C-00000073] app_stack.c: Spawn extension (ext-trunk, tdial, 10) exited non-zero on 'SIP/VoipTrunk-000000c7'
/var/log/asterisk/full:[2020-12-29 21:03:56] VERBOSE[30127][C-00000073] app_stack.c: SIP/VoipTrunk-000000c7 Internal Gosub(crm-hangup,s,1) complete GOSUB_RETVAL=
[root@pbx-b ~]#

please bitbucket it.

just to be clear, when you say “bitbucket it”, are you asking me to reformat the log? Or are you saying I should submit it as an issue?

No, I am asking you to ‘do the work’ and provide us with a usable log so we don’t have to all that copy and paste BS. with any possible forum reformatting quaring the deal :slight_smile:

Ok, this is the log for 1 single phone call with the issue.

https://pastebin.freepbx.org/view/7cf6e149

Line 44 shows no CNAME in the incoming call, in it’s absense it uses CALLERID(number)

[2020-12-29 21:03:52] VERBOSE[30127][C-00000073] pbx.c: Executing [18********0@from-trunk:9] ExecIf("SIP/VoipTrunk-000000c7", "0 ?Set(CALLERID(name)=8********1)") in new stack

perhaps sngrep can confirm/refute that

But it IS there in the CDR details (when I click on the UniqueID), and it IS there on the next pbx (at the other end of the trunk).

This is a picture of the CDR details for the call, after clicking on the CDR.

The CNAME column shows the name properly here.

Sorry, nothing more to offer.

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