Extension names not displayed on phones that are calling, P-Asserted-Identity header not working

I have recently moved from FreePBX 16 to 17 from scratch. Everything has been working well, except that IP phones calling another extension on the PBX will not display the extension name, it will only show the number dialed instead. On FreePBX 16, I did not have this issue.

After some digging, I was able to get these PJSIP logs which appears to be missing the extension name in the SIP header. I have Send RPID set to Send P-Asserted-Identity header.

The SIP invite contains To: sip:[email protected]:5060 rather than To: “Guest Room” sip:[email protected]:5060. Is this normal behavior, for it to not include the extension name part when Send P-Asserted-Identity header is set?

How would I go about making my IP phones display the extension number that is called? For some more information, I am using Yealink T2/T3/T5 series IP phones, all of which have worked fine with FreePBX.

P.S. The phone that is receiving the call such as Extension 1204 will display the information of the person calling such as Extension 1202 along with their name normally.

Here are my PJSIP Asterisk logs:

Connected to Asterisk 22.1.0 currently running on freepbx (pid = 1763)
freepbx*CLI> pjsip set logger on
PJSIP Logging enabled
<--- Received SIP request (1871 bytes) from UDP:192.168.1.237:5060 --->
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.237:5060;branch=z9hG4bK681f58b45fbe24afd342d
From: "Khoi Nguyen" <sip:[email protected]:5060>;tag=831424457
To: <sip:[email protected]:5060>
Call-ID: [email protected]
CSeq: 1 INVITE
Contact: <sip:[email protected]:5060>
Content-Type: application/sdp
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
Max-Forwards: 70
User-Agent: Yealink SIP-T58 58.86.0.20
Allow-Events: talk,hold,conference,refer,check-sync
Supported: replaces
Content-Length: 1258

Apologies, here is my entire log then.

PJSIP Logs:

root@freepbx:~# asterisk -r
Asterisk 22.1.0, Copyright (C) 1999 - 2022, Sangoma Technologies Corporation and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 22.1.0 currently running on freepbx (pid = 8913)
<--- Received SIP request (1871 bytes) from UDP:192.168.1.237:5060 --->
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.237:5060;branch=z9hG4bKa561ba2c35758982b7b3c
From: "Khoi Nguyen" <sip:[email protected]:5060>;tag=883466791
To: <sip:[email protected]:5060>
Call-ID: [email protected]
CSeq: 1 INVITE
Contact: <sip:[email protected]:5060>
Content-Type: application/sdp
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
Max-Forwards: 70
User-Agent: Yealink SIP-T58 58.86.0.20
Allow-Events: talk,hold,conference,refer,check-sync
Supported: replaces
Content-Length: 1258

v=0
o=- 20205 20205 IN IP4 192.168.1.237
s=SDP data
c=IN IP4 192.168.1.237
b=AS:1310
t=0 0
m=audio 50132 RTP/AVP 9 0 8 18 101
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=ptime:20
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:8JgcGlljEk60cE36xdMWAR9MzVtuxYmMjxMMleva
a=crypto:2 AES_CM_128_HMAC_SHA1_32 inline:q7G0k6kwPVsonIIQm8AujgB8Nizx8La+LZifsXYR
m=video 50130 RTP/AVP 99 98 97 110 34 117
b=TIAS:1310720
a=rtpmap:99 H264/90000
a=fmtp:99 profile-level-id=42801f; max-mbps=108000; max-fs=3840; packetization-mode=1
a=rtpmap:98 H264/90000
a=fmtp:98 profile-level-id=42801f; max-mbps=108000; max-fs=3840
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=64001f; max-mbps=108000; max-fs=3840; packetization-mode=1
a=rtpmap:110 VP8/90000
a=fmtp:110 max-fr=30;max-fs=3600;
a=rtpmap:34 H263/90000
a=fmtp:34 CIF4=1; CIF=1; QCIF=1
a=rtpmap:117 YL-FPR/90000
a=fmtp:117 yl-capset=15;yl-ver=1;yl-ext=19
a=ptime:20
a=rtcp-fb:* ccm fir=
a=sendrecv
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:PxxDLHpaXThDoQ90Olnqer3BIqJ/NDx23srSV4sY
a=crypto:2 AES_CM_128_HMAC_SHA1_32 inline:VVpyiu38rtJ5sHkxjqJTVoeBi2jqSRajiAiPXViQ

<--- Transmitting SIP response (509 bytes) to UDP:192.168.1.237:5060 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.168.1.237:5060;rport=5060;received=192.168.1.237;branch=z9hG4bKa561ba2c35758982b7b3c
Call-ID: [email protected]
From: "Khoi Nguyen" <sip:[email protected]>;tag=883466791
To: <sip:[email protected]>;tag=z9hG4bKa561ba2c35758982b7b3c
CSeq: 1 INVITE
WWW-Authenticate: Digest realm="asterisk",nonce="1740833821/0179513da4375e8a3a0bd9e8e7a50b47",opaque="04c587104486a60c",algorithm=MD5,qop="auth"
Server: FPBX-17.0.19.23(22.1.0)
Content-Length:  0


<--- Received SIP request (307 bytes) from UDP:192.168.1.237:5060 --->
ACK sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.237:5060;branch=z9hG4bKa561ba2c35758982b7b3c
From: "Khoi Nguyen" <sip:[email protected]>;tag=883466791
To: <sip:[email protected]>;tag=z9hG4bKa561ba2c35758982b7b3c
Call-ID: [email protected]
CSeq: 1 ACK
Content-Length: 0


<--- Received SIP request (2134 bytes) from UDP:192.168.1.237:5060 --->
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.237:5060;branch=z9hG4bK883573935
From: "Khoi Nguyen" <sip:[email protected]:5060>;tag=883466791
To: <sip:[email protected]:5060>
Call-ID: [email protected]
CSeq: 2 INVITE
Contact: <sip:[email protected]:5060>
Authorization: Digest username="1202", realm="asterisk", nonce="1740833821/0179513da4375e8a3a0bd9e8e7a50b47", uri="sip:[email protected]:5060", response="6bd418f5bcecc20b04460d1c5235c909", algorithm=MD5, cnonce="883631370", opaque="04c587104486a60c", qop=auth, nc=00000001
Content-Type: application/sdp
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
Max-Forwards: 70
User-Agent: Yealink SIP-T58 58.86.0.20
Allow-Events: talk,hold,conference,refer,check-sync
Supported: replaces
Content-Length: 1258

v=0
o=- 20205 20205 IN IP4 192.168.1.237
s=SDP data
c=IN IP4 192.168.1.237
b=AS:1310
t=0 0
m=audio 50132 RTP/AVP 9 0 8 18 101
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=ptime:20
a=sendrecv
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:8JgcGlljEk60cE36xdMWAR9MzVtuxYmMjxMMleva
a=crypto:2 AES_CM_128_HMAC_SHA1_32 inline:q7G0k6kwPVsonIIQm8AujgB8Nizx8La+LZifsXYR
m=video 50130 RTP/AVP 99 98 97 110 34 117
b=TIAS:1310720
a=rtpmap:99 H264/90000
a=fmtp:99 profile-level-id=42801f; max-mbps=108000; max-fs=3840; packetization-mode=1
a=rtpmap:98 H264/90000
a=fmtp:98 profile-level-id=42801f; max-mbps=108000; max-fs=3840
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=64001f; max-mbps=108000; max-fs=3840; packetization-mode=1
a=rtpmap:110 VP8/90000
a=fmtp:110 max-fr=30;max-fs=3600;
a=rtpmap:34 H263/90000
a=fmtp:34 CIF4=1; CIF=1; QCIF=1
a=rtpmap:117 YL-FPR/90000
a=fmtp:117 yl-capset=15;yl-ver=1;yl-ext=19
a=ptime:20
a=rtcp-fb:* ccm fir=
a=sendrecv
a=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:PxxDLHpaXThDoQ90Olnqer3BIqJ/NDx23srSV4sY
a=crypto:2 AES_CM_128_HMAC_SHA1_32 inline:VVpyiu38rtJ5sHkxjqJTVoeBi2jqSRajiAiPXViQ

<--- Transmitting SIP response (312 bytes) to UDP:192.168.1.237:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.237:5060;rport=5060;received=192.168.1.237;branch=z9hG4bK883573935
Call-ID: [email protected]
From: "Khoi Nguyen" <sip:[email protected]>;tag=883466791
To: <sip:[email protected]>
CSeq: 2 INVITE
Server: FPBX-17.0.19.23(22.1.0)
Content-Length:  0


<--- Transmitting SIP response (972 bytes) to UDP:192.168.1.237:5060 --->
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 192.168.1.237:5060;rport=5060;received=192.168.1.237;branch=z9hG4bK883573935
Call-ID: [email protected]
From: "Khoi Nguyen" <sip:[email protected]>;tag=883466791
To: <sip:[email protected]>;tag=0396a313-c6b7-4844-869c-0df20a6ebd44
CSeq: 2 INVITE
Server: FPBX-17.0.19.23(22.1.0)
Contact: <sip:192.168.1.162:5060>
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, MESSAGE, REFER, INFO
Content-Type: application/sdp
Content-Length:   423

v=0
o=- 20205 20207 IN IP4 192.168.1.162
s=Asterisk
c=IN IP4 192.168.1.162
t=0 0
m=audio 12004 RTP/AVP 9 0 8 101
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:140
a=sendrecv
m=video 19036 RTP/AVP 99
a=rtpmap:99 H264/90000
a=fmtp:99 max-mbps=108000;max-fs=3840;packetization-mode=1;profile-level-id=42801F
a=sendrecv

<--- Transmitting SIP response (972 bytes) to UDP:192.168.1.237:5060 --->
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 192.168.1.237:5060;rport=5060;received=192.168.1.237;branch=z9hG4bK883573935
Call-ID: [email protected]
From: "Khoi Nguyen" <sip:[email protected]>;tag=883466791
To: <sip:[email protected]>;tag=0396a313-c6b7-4844-869c-0df20a6ebd44
CSeq: 2 INVITE
Server: FPBX-17.0.19.23(22.1.0)
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, MESSAGE, REFER, INFO
Contact: <sip:192.168.1.162:5060>
Content-Type: application/sdp
Content-Length:   423

v=0
o=- 20205 20207 IN IP4 192.168.1.162
s=Asterisk
c=IN IP4 192.168.1.162
t=0 0
m=audio 12004 RTP/AVP 9 0 8 101
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:140
a=sendrecv
m=video 19036 RTP/AVP 99
a=rtpmap:99 H264/90000
a=fmtp:99 max-mbps=108000;max-fs=3840;packetization-mode=1;profile-level-id=42801F
a=sendrecv

<--- Transmitting SIP request (1269 bytes) to UDP:192.168.1.229:5060 --->
INVITE sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.162:5060;rport;branch=z9hG4bKPj728689ee-f212-46d7-99c1-29baabf8e5de
From: "Khoi Nguyen" <sip:[email protected]>;tag=ab7f911e-ecdf-4cc9-bdfc-0f23a3a88d3a
To: <sip:[email protected]>
Contact: <sip:[email protected]:5060>
Call-ID: ccc9db06-dfb0-4911-87fb-494e57405c15
CSeq: 27247 INVITE
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, MESSAGE, REFER, INFO
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
P-Asserted-Identity: "Khoi Nguyen" <sip:[email protected]>
Max-Forwards: 70
User-Agent: FPBX-17.0.19.23(22.1.0)
Content-Type: application/sdp
Content-Length:   519

v=0
o=- 1843780176 1843780176 IN IP4 192.168.1.162
s=Asterisk
c=IN IP4 192.168.1.162
t=0 0
m=audio 12916 RTP/AVP 9 0 8 3 111 101
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:111 G726-32/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:140
a=sendrecv
m=video 14374 RTP/AVP 99 104
a=rtpmap:99 H264/90000
a=fmtp:99 max-mbps=108000;max-fs=3840;packetization-mode=1;profile-level-id=42801F
a=rtpmap:104 MP4V-ES/90000
a=sendrecv

<--- Received SIP response (371 bytes) from UDP:192.168.1.229:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.168.1.162:5060;rport=5060;branch=z9hG4bKPj728689ee-f212-46d7-99c1-29baabf8e5de
From: "Khoi Nguyen" <sip:[email protected]>;tag=ab7f911e-ecdf-4cc9-bdfc-0f23a3a88d3a
To: <sip:[email protected]>
Call-ID: ccc9db06-dfb0-4911-87fb-494e57405c15
CSeq: 27247 INVITE
User-Agent: Yealink SIP-T21P_E2 52.84.0.160
Content-Length: 0


<--- Received SIP response (597 bytes) from UDP:192.168.1.229:5060 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.1.162:5060;rport=5060;branch=z9hG4bKPj728689ee-f212-46d7-99c1-29baabf8e5de
From: "Khoi Nguyen" <sip:[email protected]>;tag=ab7f911e-ecdf-4cc9-bdfc-0f23a3a88d3a
To: <sip:[email protected]>;tag=4264564286
Call-ID: ccc9db06-dfb0-4911-87fb-494e57405c15
CSeq: 27247 INVITE
Contact: <sip:[email protected]:5060>
Allow: INVITE, INFO, PRACK, ACK, BYE, CANCEL, OPTIONS, NOTIFY, REGISTER, SUBSCRIBE, REFER, PUBLISH, UPDATE, MESSAGE
User-Agent: Yealink SIP-T21P_E2 52.84.0.160
Allow-Events: talk,hold,conference,refer,check-sync
Content-Length: 0


<--- Transmitting SIP response (972 bytes) to UDP:192.168.1.237:5060 --->
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 192.168.1.237:5060;rport=5060;received=192.168.1.237;branch=z9hG4bK883573935
Call-ID: [email protected]
From: "Khoi Nguyen" <sip:[email protected]>;tag=883466791
To: <sip:[email protected]>;tag=0396a313-c6b7-4844-869c-0df20a6ebd44
CSeq: 2 INVITE
Server: FPBX-17.0.19.23(22.1.0)
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, MESSAGE, REFER, INFO
Contact: <sip:192.168.1.162:5060>
Content-Type: application/sdp
Content-Length:   423

v=0
o=- 20205 20207 IN IP4 192.168.1.162
s=Asterisk
c=IN IP4 192.168.1.162
t=0 0
m=audio 12004 RTP/AVP 9 0 8 101
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:140
a=sendrecv
m=video 19036 RTP/AVP 99
a=rtpmap:99 H264/90000
a=fmtp:99 max-mbps=108000;max-fs=3840;packetization-mode=1;profile-level-id=42801F
a=sendrecv

<--- Received SIP request (336 bytes) from UDP:192.168.1.237:5060 --->
CANCEL sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.237:5060;branch=z9hG4bK883573935
From: "Khoi Nguyen" <sip:[email protected]:5060>;tag=883466791
To: <sip:[email protected]:5060>
Call-ID: [email protected]
CSeq: 2 CANCEL
Max-Forwards: 70
User-Agent: Yealink SIP-T58 58.86.0.20
Content-Length: 0


<--- Transmitting SIP response (349 bytes) to UDP:192.168.1.237:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.237:5060;rport=5060;received=192.168.1.237;branch=z9hG4bK883573935
Call-ID: [email protected]
From: "Khoi Nguyen" <sip:[email protected]>;tag=883466791
To: <sip:[email protected]>;tag=0396a313-c6b7-4844-869c-0df20a6ebd44
CSeq: 2 CANCEL
Server: FPBX-17.0.19.23(22.1.0)
Content-Length:  0


<--- Transmitting SIP response (482 bytes) to UDP:192.168.1.237:5060 --->
SIP/2.0 487 Request Terminated
Via: SIP/2.0/UDP 192.168.1.237:5060;rport=5060;received=192.168.1.237;branch=z9hG4bK883573935
Call-ID: [email protected]
From: "Khoi Nguyen" <sip:[email protected]>;tag=883466791
To: <sip:[email protected]>;tag=0396a313-c6b7-4844-869c-0df20a6ebd44
CSeq: 2 INVITE
Server: FPBX-17.0.19.23(22.1.0)
Allow: OPTIONS, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, MESSAGE, REFER, INFO
Content-Length:  0


<--- Received SIP request (303 bytes) from UDP:192.168.1.237:5060 --->
ACK sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.237:5060;branch=z9hG4bK883573935
From: "Khoi Nguyen" <sip:[email protected]>;tag=883466791
To: <sip:[email protected]>;tag=0396a313-c6b7-4844-869c-0df20a6ebd44
Call-ID: [email protected]
CSeq: 2 ACK
Content-Length: 0


<--- Transmitting SIP request (426 bytes) to UDP:192.168.1.229:5060 --->
CANCEL sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.162:5060;rport;branch=z9hG4bKPj728689ee-f212-46d7-99c1-29baabf8e5de
From: "Khoi Nguyen" <sip:[email protected]>;tag=ab7f911e-ecdf-4cc9-bdfc-0f23a3a88d3a
To: <sip:[email protected]>
Call-ID: ccc9db06-dfb0-4911-87fb-494e57405c15
CSeq: 27247 CANCEL
Reason: Q.850;cause=127
Max-Forwards: 70
User-Agent: FPBX-17.0.19.23(22.1.0)
Content-Length:  0


<--- Received SIP response (382 bytes) from UDP:192.168.1.229:5060 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.162:5060;rport=5060;branch=z9hG4bKPj728689ee-f212-46d7-99c1-29baabf8e5de
From: "Khoi Nguyen" <sip:[email protected]>;tag=ab7f911e-ecdf-4cc9-bdfc-0f23a3a88d3a
To: <sip:[email protected]>;tag=4264564286
Call-ID: ccc9db06-dfb0-4911-87fb-494e57405c15
CSeq: 27247 CANCEL
User-Agent: Yealink SIP-T21P_E2 52.84.0.160
Content-Length: 0


<--- Received SIP response (397 bytes) from UDP:192.168.1.229:5060 --->
SIP/2.0 487 Request Cancelled
Via: SIP/2.0/UDP 192.168.1.162:5060;rport=5060;branch=z9hG4bKPj728689ee-f212-46d7-99c1-29baabf8e5de
From: "Khoi Nguyen" <sip:[email protected]>;tag=ab7f911e-ecdf-4cc9-bdfc-0f23a3a88d3a
To: <sip:[email protected]>;tag=4264564286
Call-ID: ccc9db06-dfb0-4911-87fb-494e57405c15
CSeq: 27247 INVITE
User-Agent: Yealink SIP-T21P_E2 52.84.0.160
Content-Length: 0


<--- Transmitting SIP request (410 bytes) to UDP:192.168.1.229:5060 --->
ACK sip:[email protected]:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.162:5060;rport;branch=z9hG4bKPj728689ee-f212-46d7-99c1-29baabf8e5de
From: "Khoi Nguyen" <sip:[email protected]>;tag=ab7f911e-ecdf-4cc9-bdfc-0f23a3a88d3a
To: <sip:[email protected]>;tag=4264564286
Call-ID: ccc9db06-dfb0-4911-87fb-494e57405c15
CSeq: 27247 ACK
Max-Forwards: 70
User-Agent: FPBX-17.0.19.23(22.1.0)
Content-Length:  0


freepbx*CLI> exit
Asterisk cleanly ending (0).
Executing last minute cleanups
root@freepbx:~#

Here is my Asterisk logs:

root@freepbx:~# asterisk -rvvv
Asterisk 22.1.0, Copyright (C) 1999 - 2022, Sangoma Technologies Corporation and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 22.1.0 currently running on freepbx (pid = 8913)
  == Using SIP RTP Audio TOS bits 184
  == Using SIP RTP Audio TOS bits 184 in TCLASS field.
  == Using SIP RTP Audio CoS mark 5
  == Using SIP RTP Video TOS bits 136
  == Using SIP RTP Video TOS bits 136 in TCLASS field.
  == Using SIP RTP Video CoS mark 4
    -- Executing [1204@from-internal:1] Set("PJSIP/1202-0000000b", "__RINGTIMER=15") in new stack
    -- Executing [1204@from-internal:2] ExecIf("PJSIP/1202-0000000b", "0?Set(__CWIGNORE=)") in new stack
    -- Executing [1204@from-internal:3] Gosub("PJSIP/1202-0000000b", "macro-exten-vm,s,1(1204,1204,0,0,0)") in new stack
    -- Executing [s@macro-exten-vm:1] Gosub("PJSIP/1202-0000000b", "macro-user-callerid,s,1(1204,1204,,,,macro-exten-vm)") in new stack
    -- Executing [s@macro-user-callerid:1] Set("PJSIP/1202-0000000b", "TOUCH_MONITOR=1740833892.17") in new stack
    -- Executing [s@macro-user-callerid:2] Set("PJSIP/1202-0000000b", "CHANCONTEXT=") in new stack
    -- Executing [s@macro-user-callerid:3] Progress("PJSIP/1202-0000000b", "") in new stack
    -- Executing [s@macro-user-callerid:4] Set("PJSIP/1202-0000000b", "CHANCONTEXT=") in new stack
    -- Executing [s@macro-user-callerid:5] Set("PJSIP/1202-0000000b", "CHANEXTENCONTEXT=1202-0000000b") in new stack
    -- Executing [s@macro-user-callerid:6] Set("PJSIP/1202-0000000b", "CHANEXTEN=1202-0000000b") in new stack
    -- Executing [s@macro-user-callerid:7] Set("PJSIP/1202-0000000b", "CALLERID(number)=1202") in new stack
    -- Executing [s@macro-user-callerid:8] Set("PJSIP/1202-0000000b", "AMPUSER=1202") in new stack
    -- Executing [s@macro-user-callerid:9] Set("PJSIP/1202-0000000b", "HOTDESCKCHAN=1202-0000000b") in new stack
    -- Executing [s@macro-user-callerid:10] Set("PJSIP/1202-0000000b", "HOTDESKEXTEN=1202") in new stack
    -- Executing [s@macro-user-callerid:11] Set("PJSIP/1202-0000000b", "HOTDESKCALL=0") in new stack
    -- Executing [s@macro-user-callerid:12] ExecIf("PJSIP/1202-0000000b", "0?Set(HOTDESKCALL=1)") in new stack
    -- Executing [s@macro-user-callerid:13] ExecIf("PJSIP/1202-0000000b", "0?Set(CALLERID(name)=)") in new stack
    -- Executing [s@macro-user-callerid:14] GotoIf("PJSIP/1202-0000000b", "0?report") in new stack
    -- Executing [s@macro-user-callerid:15] ExecIf("PJSIP/1202-0000000b", "1?Set(REALCALLERIDNUM=1202)") in new stack
    -- Executing [s@macro-user-callerid:16] Set("PJSIP/1202-0000000b", "AMPUSER=1202") in new stack
    -- Executing [s@macro-user-callerid:17] GotoIf("PJSIP/1202-0000000b", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:18] Set("PJSIP/1202-0000000b", "AMPUSERCIDNAME=Khoi Nguyen") in new stack
    -- Executing [s@macro-user-callerid:19] ExecIf("PJSIP/1202-0000000b", "0?Set(__CIDMASQUERADING=TRUE)") in new stack
    -- Executing [s@macro-user-callerid:20] GotoIf("PJSIP/1202-0000000b", "0?report") in new stack
    -- Executing [s@macro-user-callerid:21] Set("PJSIP/1202-0000000b", "AMPUSERCID=1202") in new stack
    -- Executing [s@macro-user-callerid:22] Set("PJSIP/1202-0000000b", "__DIAL_OPTIONS=HhTtr") in new stack
    -- Executing [s@macro-user-callerid:23] Set("PJSIP/1202-0000000b", "CALLERID(all)="Khoi Nguyen" <1202>") in new stack
    -- Executing [s@macro-user-callerid:24] ExecIf("PJSIP/1202-0000000b", "0?Set(CUSDIAL=1204)") in new stack
    -- Executing [s@macro-user-callerid:25] ExecIf("PJSIP/1202-0000000b", "0?Set(CALLERID(all)="Khoi Nguyen" <1202>)") in new stack
    -- Executing [s@macro-user-callerid:26] GotoIf("PJSIP/1202-0000000b", "0?limit") in new stack
    -- Executing [s@macro-user-callerid:27] ExecIf("PJSIP/1202-0000000b", "0?Set(GROUP(concurrency_limit)=1202)") in new stack
    -- Executing [s@macro-user-callerid:28] ExecIf("PJSIP/1202-0000000b", "0?Set(CHANNEL(language)=)") in new stack
    -- Executing [s@macro-user-callerid:29] NoOp("PJSIP/1202-0000000b", "Macro depricated!! To keep the same line numbers") in new stack
    -- Executing [s@macro-user-callerid:30] NoOp("PJSIP/1202-0000000b", "Macro depricated !!  To keep the same line numbers") in new stack
    -- Executing [s@macro-user-callerid:31] GotoIf("PJSIP/1202-0000000b", "0?continue") in new stack
    -- Executing [s@macro-user-callerid:32] ExecIf("PJSIP/1202-0000000b", "1?Set(__CALLEE_ACCOUNCODE=)") in new stack
    -- Executing [s@macro-user-callerid:33] Set("PJSIP/1202-0000000b", "__TTL=64") in new stack
    -- Executing [s@macro-user-callerid:34] GotoIf("PJSIP/1202-0000000b", "1?continue") in new stack
    -- Goto (macro-user-callerid,s,50)
    -- Executing [s@macro-user-callerid:50] Set("PJSIP/1202-0000000b", "CALLERID(number)=1202") in new stack
    -- Executing [s@macro-user-callerid:51] Set("PJSIP/1202-0000000b", "CALLERID(name)=Khoi Nguyen") in new stack
    -- Executing [s@macro-user-callerid:52] GotoIf("PJSIP/1202-0000000b", "0?cnum") in new stack
    -- Executing [s@macro-user-callerid:53] Set("PJSIP/1202-0000000b", "__MCNUM=1202") in new stack
    -- Executing [s@macro-user-callerid:54] Set("PJSIP/1202-0000000b", "__MCNAME=Khoi Nguyen") in new stack
    -- Executing [s@macro-user-callerid:55] Set("PJSIP/1202-0000000b", "__MCEXTEN=1202") in new stack
    -- Executing [s@macro-user-callerid:56] Set("PJSIP/1202-0000000b", "__MCORGCHAN=PJSIP/1202-0000000b") in new stack
    -- Executing [s@macro-user-callerid:57] Set("PJSIP/1202-0000000b", "CDR(cnam)=Khoi Nguyen") in new stack
    -- Executing [s@macro-user-callerid:58] Set("PJSIP/1202-0000000b", "CDR(cnum)=1202") in new stack
    -- Executing [s@macro-user-callerid:59] Return("PJSIP/1202-0000000b", "") in new stack
    -- Executing [s@macro-exten-vm:2] Set("PJSIP/1202-0000000b", "RingGroupMethod=none") in new stack
    -- Executing [s@macro-exten-vm:3] Set("PJSIP/1202-0000000b", "__EXTTOCALL=1204") in new stack
    -- Executing [s@macro-exten-vm:4] Set("PJSIP/1202-0000000b", "__PICKUPMARK=1204") in new stack
    -- Executing [s@macro-exten-vm:5] Set("PJSIP/1202-0000000b", "RT=15") in new stack
    -- Executing [s@macro-exten-vm:6] GotoIf("PJSIP/1202-0000000b", "1?startcheck:exitcheck") in new stack
    -- Goto (macro-exten-vm,s,7)
    -- Executing [s@macro-exten-vm:7] GotoIf("PJSIP/1202-0000000b", "0?featureSIP:featurePJSIP") in new stack
    -- Goto (macro-exten-vm,s,11)
    -- Executing [s@macro-exten-vm:11] ExecIf("PJSIP/1202-0000000b", "0?Gosub(macro-vm,1204,DIRECTDIAL,)") in new stack
    -- Executing [s@macro-exten-vm:12] ExecIf("PJSIP/1202-0000000b", "0?Return()") in new stack
    -- Executing [s@macro-exten-vm:13] GotoIf("PJSIP/1202-0000000b", "1?featuremoniPJSIP:featuremoniSIP") in new stack
    -- Goto (macro-exten-vm,s,14)
    -- Executing [s@macro-exten-vm:14] ExecIf("PJSIP/1202-0000000b", "0?ChanSpy(PJSIP/1204,q)") in new stack
    -- Executing [s@macro-exten-vm:15] ExecIf("PJSIP/1202-0000000b", "0?Return()") in new stack
    -- Executing [s@macro-exten-vm:16] GotoIf("PJSIP/1202-0000000b", "1?check-ext-intercom:featuremoniSIP") in new stack
    -- Goto (macro-exten-vm,s,19)
    -- Executing [s@macro-exten-vm:19] GotoIf("PJSIP/1202-0000000b", "0?ext-intercomSIP:ext-intercomPJSIP") in new stack
    -- Goto (macro-exten-vm,s,20)
    -- Executing [s@macro-exten-vm:20] ExecIf("PJSIP/1202-0000000b", "0?Gosub(ext-intercom,*801204,1())") in new stack
    -- Executing [s@macro-exten-vm:21] ExecIf("PJSIP/1202-0000000b", "0?Return()") in new stack
    -- Executing [s@macro-exten-vm:22] GotoIf("PJSIP/1202-0000000b", "1?exitcheck:ext-intercomSIP") in new stack
    -- Goto (macro-exten-vm,s,25)
    -- Executing [s@macro-exten-vm:25] NoOp("PJSIP/1202-0000000b", "Exiting Checks") in new stack
    -- Executing [s@macro-exten-vm:26] Gosub("PJSIP/1202-0000000b", "sub-record-check,s,1(exten,1204,dontcare)") in new stack
    -- Executing [s@sub-record-check:1] GotoIf("PJSIP/1202-0000000b", "0?initialized") in new stack
    -- Executing [s@sub-record-check:2] Set("PJSIP/1202-0000000b", "__REC_STATUS=INITIALIZED") in new stack
    -- Executing [s@sub-record-check:3] Set("PJSIP/1202-0000000b", "NOW=1740833892") in new stack
    -- Executing [s@sub-record-check:4] Set("PJSIP/1202-0000000b", "__DAY=01") in new stack
    -- Executing [s@sub-record-check:5] Set("PJSIP/1202-0000000b", "__MONTH=03") in new stack
    -- Executing [s@sub-record-check:6] Set("PJSIP/1202-0000000b", "__YEAR=2025") in new stack
    -- Executing [s@sub-record-check:7] Set("PJSIP/1202-0000000b", "__TIMESTR=20250301-075812") in new stack
    -- Executing [s@sub-record-check:8] Set("PJSIP/1202-0000000b", "__FROMEXTEN=1202") in new stack
    -- Executing [s@sub-record-check:9] Set("PJSIP/1202-0000000b", "__MON_FMT=wav") in new stack
    -- Executing [s@sub-record-check:10] NoOp("PJSIP/1202-0000000b", "Recordings initialized") in new stack
    -- Executing [s@sub-record-check:11] ExecIf("PJSIP/1202-0000000b", "0?Set(ARG3=dontcare)") in new stack
    -- Executing [s@sub-record-check:12] Set("PJSIP/1202-0000000b", "REC_POLICY_MODE_SAVE=") in new stack
    -- Executing [s@sub-record-check:13] ExecIf("PJSIP/1202-0000000b", "0?Set(REC_STATUS=NO)") in new stack
    -- Executing [s@sub-record-check:14] GotoIf("PJSIP/1202-0000000b", "5?checkaction") in new stack
    -- Goto (sub-record-check,s,17)
    -- Executing [s@sub-record-check:17] GotoIf("PJSIP/1202-0000000b", "1?sub-record-check,exten,1") in new stack
    -- Goto (sub-record-check,exten,1)
    -- Executing [exten@sub-record-check:1] NoOp("PJSIP/1202-0000000b", "Exten Recording Check between 1202 and 1204") in new stack
    -- Executing [exten@sub-record-check:2] Set("PJSIP/1202-0000000b", "CALLTYPE=internal") in new stack
    -- Executing [exten@sub-record-check:3] ExecIf("PJSIP/1202-0000000b", "0?Set(CALLTYPE=)") in new stack
    -- Executing [exten@sub-record-check:4] Set("PJSIP/1202-0000000b", "CALLEE=dontcare") in new stack
    -- Executing [exten@sub-record-check:5] ExecIf("PJSIP/1202-0000000b", "0?Set(CALLEE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:6] GotoIf("PJSIP/1202-0000000b", "0?callee") in new stack
    -- Executing [exten@sub-record-check:7] GotoIf("PJSIP/1202-0000000b", "1?caller") in new stack
    -- Goto (sub-record-check,exten,13)
    -- Executing [exten@sub-record-check:13] Set("PJSIP/1202-0000000b", "RECMODE=dontcare") in new stack
    -- Executing [exten@sub-record-check:14] Set("PJSIP/1202-0000000b", "CALLERRECMODE=dontcare") in new stack
    -- Executing [exten@sub-record-check:15] Set("PJSIP/1202-0000000b", "CALEERECMODE=dontcare") in new stack
    -- Executing [exten@sub-record-check:16] GotoIf("PJSIP/1202-0000000b", "0?processnormal") in new stack
    -- Executing [exten@sub-record-check:17] ExecIf("PJSIP/1202-0000000b", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:18] ExecIf("PJSIP/1202-0000000b", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:19] ExecIf("PJSIP/1202-0000000b", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:20] ExecIf("PJSIP/1202-0000000b", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:21] ExecIf("PJSIP/1202-0000000b", "0?Set(RECMODE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:22] ExecIf("PJSIP/1202-0000000b", "1?Set(RECMODE=dontcare)") in new stack
    -- Executing [exten@sub-record-check:23] Gosub("PJSIP/1202-0000000b", "recordcheck,1(dontcare,internal,1204)") in new stack
    -- Executing [recordcheck@sub-record-check:1] NoOp("PJSIP/1202-0000000b", "Starting recording check against dontcare") in new stack
    -- Executing [recordcheck@sub-record-check:2] Goto("PJSIP/1202-0000000b", "dontcare") in new stack
    -- Goto (sub-record-check,recordcheck,3)
    -- Executing [recordcheck@sub-record-check:3] Return("PJSIP/1202-0000000b", "") in new stack
    -- Executing [exten@sub-record-check:24] Return("PJSIP/1202-0000000b", "") in new stack
    -- Executing [s@macro-exten-vm:27] GotoIf("PJSIP/1202-0000000b", "1?macrodial") in new stack
    -- Goto (macro-exten-vm,s,33)
    -- Executing [s@macro-exten-vm:33] GosubIf("PJSIP/1202-0000000b", "0?clrheader,1()") in new stack
    -- Executing [s@macro-exten-vm:34] Gosub("PJSIP/1202-0000000b", "macro-dial-one,s,1(15,HhTtr,1204)") in new stack
    -- Executing [s@macro-dial-one:1] Set("PJSIP/1202-0000000b", "DEXTEN=1204") in new stack
    -- Executing [s@macro-dial-one:2] Set("PJSIP/1202-0000000b", "__CRM_SOURCE=1202") in new stack
    -- Executing [s@macro-dial-one:3] Set("PJSIP/1202-0000000b", "__MCEXTTOCALL=1204") in new stack
    -- Executing [s@macro-dial-one:4] Set("PJSIP/1202-0000000b", "__MCMULTI=de197393148f24b9bf8b79ed34b3d591") in new stack
    -- Executing [s@macro-dial-one:5] ExecIf("PJSIP/1202-0000000b", "0?Set(__EXTTOCALL=1204)") in new stack
    -- Executing [s@macro-dial-one:6] Set("PJSIP/1202-0000000b", "DIALSTATUS_CW=") in new stack
    -- Executing [s@macro-dial-one:7] GosubIf("PJSIP/1202-0000000b", "0?screen,1()") in new stack
    -- Executing [s@macro-dial-one:8] GosubIf("PJSIP/1202-0000000b", "0?cf,1()") in new stack
    -- Executing [s@macro-dial-one:9] GotoIf("PJSIP/1202-0000000b", "1?skip1") in new stack
    -- Goto (macro-dial-one,s,12)
    -- Executing [s@macro-dial-one:12] GotoIf("PJSIP/1202-0000000b", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:13] GotoIf("PJSIP/1202-0000000b", "0?continue") in new stack
    -- Executing [s@macro-dial-one:14] Set("PJSIP/1202-0000000b", "EXTHASCW=ENABLED") in new stack
    -- Executing [s@macro-dial-one:15] GotoIf("PJSIP/1202-0000000b", "0?next1:cwinusebusy") in new stack
    -- Goto (macro-dial-one,s,27)
    -- Executing [s@macro-dial-one:27] GotoIf("PJSIP/1202-0000000b", "0?next3:continue") in new stack
    -- Goto (macro-dial-one,s,29)
    -- Executing [s@macro-dial-one:29] GotoIf("PJSIP/1202-0000000b", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:30] GosubIf("PJSIP/1202-0000000b", "1?dstring,1():dlocal,1()") in new stack
    -- Executing [dstring@macro-dial-one:1] Set("PJSIP/1202-0000000b", "DSTRING=") in new stack
    -- Executing [dstring@macro-dial-one:2] Set("PJSIP/1202-0000000b", "DEVICES=1204") in new stack
    -- Executing [dstring@macro-dial-one:3] ExecIf("PJSIP/1202-0000000b", "0?Return()") in new stack
    -- Executing [dstring@macro-dial-one:4] ExecIf("PJSIP/1202-0000000b", "0?Set(DEVICES=204)") in new stack
    -- Executing [dstring@macro-dial-one:5] Set("PJSIP/1202-0000000b", "LOOPCNT=1") in new stack
    -- Executing [dstring@macro-dial-one:6] Set("PJSIP/1202-0000000b", "ITER=1") in new stack
    -- Executing [dstring@macro-dial-one:7] Set("PJSIP/1202-0000000b", "THISDIAL=PJSIP/1204") in new stack
    -- Executing [dstring@macro-dial-one:8] GotoIf("PJSIP/1202-0000000b", "0?docheck") in new stack
    -- Executing [dstring@macro-dial-one:9] NoOp("PJSIP/1202-0000000b", "Debug: Found PJSIP Destination PJSIP/1204") in new stack
    -- Executing [dstring@macro-dial-one:10] GotoIf("PJSIP/1202-0000000b", "0?doset") in new stack
    -- Executing [dstring@macro-dial-one:11] NoOp("PJSIP/1202-0000000b", "Debug: Updating PJSIP Destination with PJSIP_DIAL_CONTACTS") in new stack
    -- Executing [dstring@macro-dial-one:12] Set("PJSIP/1202-0000000b", "THISDIAL=PJSIP/1204/sip:[email protected]:5060") in new stack
    -- Executing [dstring@macro-dial-one:13] ExecIf("PJSIP/1202-0000000b", "0?Set(DIALSTATUS=CHANUNAVAIL)") in new stack
    -- Executing [dstring@macro-dial-one:14] GotoIf("PJSIP/1202-0000000b", "0?skipset") in new stack
    -- Executing [dstring@macro-dial-one:15] Set("PJSIP/1202-0000000b", "DSTRING=PJSIP/1204/sip:[email protected]:5060&") in new stack
    -- Executing [dstring@macro-dial-one:16] Set("PJSIP/1202-0000000b", "ITER=2") in new stack
    -- Executing [dstring@macro-dial-one:17] GotoIf("PJSIP/1202-0000000b", "0?begin") in new stack
    -- Executing [dstring@macro-dial-one:18] ExecIf("PJSIP/1202-0000000b", "0?Return()") in new stack
    -- Executing [dstring@macro-dial-one:19] Set("PJSIP/1202-0000000b", "DSTRING=PJSIP/1204/sip:[email protected]:5060") in new stack
    -- Executing [dstring@macro-dial-one:20] Return("PJSIP/1202-0000000b", "") in new stack
    -- Executing [s@macro-dial-one:31] GotoIf("PJSIP/1202-0000000b", "0?nodial") in new stack
    -- Executing [s@macro-dial-one:32] GotoIf("PJSIP/1202-0000000b", "0?skiptrace") in new stack
    -- Executing [s@macro-dial-one:33] GosubIf("PJSIP/1202-0000000b", "1?ctset,1():ctclear,1()") in new stack
    -- Executing [ctset@macro-dial-one:1] Set("PJSIP/1202-0000000b", "DB(CALLTRACE/1204)=1202") in new stack
    -- Executing [ctset@macro-dial-one:2] Return("PJSIP/1202-0000000b", "") in new stack
    -- Executing [s@macro-dial-one:34] Set("PJSIP/1202-0000000b", "D_OPTIONS=HhTtr") in new stack
    -- Executing [s@macro-dial-one:35] GosubIf("PJSIP/1202-0000000b", "0?func-set-sipheader,s,1(Alert-Info,)") in new stack
    -- Executing [s@macro-dial-one:36] NoOp("PJSIP/1202-0000000b", "Blind Transfer: , Attended Transfer: , User: 1202, Alert Info: ") in new stack
    -- Executing [s@macro-dial-one:37] ExecIf("PJSIP/1202-0000000b", "1?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial-one:38] ExecIf("PJSIP/1202-0000000b", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial-one:39] ExecIf("PJSIP/1202-0000000b", "0?Set(ALERT_INFO=)") in new stack
    -- Executing [s@macro-dial-one:40] ExecIf("PJSIP/1202-0000000b", "0?Set(ALERT_INFO=Normal;volume=)") in new stack
    -- Executing [s@macro-dial-one:41] ExecIf("PJSIP/1202-0000000b", "0?Set(ALERT_INFO=Normal;volume=)") in new stack
    -- Executing [s@macro-dial-one:42] GosubIf("PJSIP/1202-0000000b", "0?func-set-sipheader,s,1(Alert-Info,)") in new stack
    -- Executing [s@macro-dial-one:43] ExecIf("PJSIP/1202-0000000b", "0?Set(CHANNEL(musicclass)=)") in new stack
    -- Executing [s@macro-dial-one:44] GosubIf("PJSIP/1202-0000000b", "0?qwait,1()") in new stack
    -- Executing [s@macro-dial-one:45] Set("PJSIP/1202-0000000b", "__CWIGNORE=") in new stack
    -- Executing [s@macro-dial-one:46] Set("PJSIP/1202-0000000b", "__KEEPCID=TRUE") in new stack
    -- Executing [s@macro-dial-one:47] GotoIf("PJSIP/1202-0000000b", "0?usegoto,1") in new stack
    -- Executing [s@macro-dial-one:48] GotoIf("PJSIP/1202-0000000b", "0?godial") in new stack
    -- Executing [s@macro-dial-one:49] Gosub("PJSIP/1202-0000000b", "sub-presencestate-display,s,1(1204)") in new stack
    -- Executing [s@sub-presencestate-display:1] Goto("PJSIP/1202-0000000b", "state-available,1") in new stack
    -- Goto (sub-presencestate-display,state-available,1)
    -- Executing [state-available@sub-presencestate-display:1] Set("PJSIP/1202-0000000b", "PRESENCESTATE_DISPLAY=(Available)") in new stack
    -- Executing [state-available@sub-presencestate-display:2] Return("PJSIP/1202-0000000b", "") in new stack
    -- Executing [s@macro-dial-one:50] Set("PJSIP/1202-0000000b", "CONNECTEDLINE(name,i)=Guest Room (Available)") in new stack
    -- Executing [s@macro-dial-one:51] Set("PJSIP/1202-0000000b", "CONNECTEDLINE(num)=1204") in new stack
    -- Executing [s@macro-dial-one:52] Set("PJSIP/1202-0000000b", "D_OPTIONS=HhTtr") in new stack
    -- Executing [s@macro-dial-one:53] Gosub("PJSIP/1202-0000000b", "macro-dialout-one-predial-hook,s,1()") in new stack
    -- Executing [s@macro-dialout-one-predial-hook:1] Return("PJSIP/1202-0000000b", "") in new stack
    -- Executing [s@macro-dial-one:54] ExecIf("PJSIP/1202-0000000b", "0?Set(D_OPTIONS=HhtrI)") in new stack
    -- Executing [s@macro-dial-one:55] ExecIf("PJSIP/1202-0000000b", "0?Set(CWRING=r(callwaiting)):Set(CWRING=)") in new stack
    -- Executing [s@macro-dial-one:56] NoOp("PJSIP/1202-0000000b", "") in new stack
    -- Executing [s@macro-dial-one:57] ExecIf("PJSIP/1202-0000000b", "0?Set(D_OPTIONS=Hhtr)") in new stack
    -- Executing [s@macro-dial-one:58] ExecIf("PJSIP/1202-0000000b", "0?Set(D_OPTIONS=HhTtrg)") in new stack
    -- Executing [s@macro-dial-one:59] Gosub("PJSIP/1202-0000000b", "dialOne-with-exten,1204,1(15)") in new stack
    -- Executing [1204@dialOne-with-exten:1] Set("PJSIP/1202-0000000b", "CHANNEL(hangup_handler_push)=app-missedcall-hangup,,1") in new stack
    -- Executing [1204@dialOne-with-exten:2] Dial("PJSIP/1202-0000000b", "PJSIP/1204/sip:[email protected]:5060,15,HhTtrb(func-apply-sipheaders^s^1)") in new stack
    -- PJSIP/1204-0000000c Internal Gosub(func-apply-sipheaders,s,1) start
    -- Executing [s@func-apply-sipheaders:1] ExecIf("PJSIP/1204-0000000c", "0?Set(CHANNEL(hangup_handler_push)=crm-hangup,s,1)") in new stack
    -- Executing [s@func-apply-sipheaders:2] NoOp("PJSIP/1204-0000000c", "Applying SIP Headers to channel PJSIP/1204-0000000c") in new stack
    -- Executing [s@func-apply-sipheaders:3] Set("PJSIP/1204-0000000c", "localchan=1204-0000000c") in new stack
    -- Executing [s@func-apply-sipheaders:4] Set("PJSIP/1204-0000000c", "DialMCEXT=1204") in new stack
    -- Executing [s@func-apply-sipheaders:5] Set("PJSIP/1204-0000000c", "CHANNEL(hangup_handler_push)=app-missedcall-hangup,1204,1") in new stack
    -- Executing [s@func-apply-sipheaders:6] Set("PJSIP/1204-0000000c", "Dchan=1204-0000000c") in new stack
    -- Executing [s@func-apply-sipheaders:7] Set("PJSIP/1204-0000000c", "TECH=PJSIP") in new stack
    -- Executing [s@func-apply-sipheaders:8] Set("PJSIP/1204-0000000c", "SIPHEADERKEYS=") in new stack
    -- Executing [s@func-apply-sipheaders:9] While("PJSIP/1204-0000000c", "0") in new stack
    -- Jumping to priority 15
    -- Executing [s@func-apply-sipheaders:16] Return("PJSIP/1204-0000000c", "") in new stack
  == Spawn extension (from-internal, 1204, 1) exited non-zero on 'PJSIP/1204-0000000c'
    -- PJSIP/1204-0000000c Internal Gosub(func-apply-sipheaders,s,1) complete GOSUB_RETVAL=
  == Using SIP RTP Audio TOS bits 184
  == Using SIP RTP Audio TOS bits 184 in TCLASS field.
  == Using SIP RTP Audio CoS mark 5
    -- Called PJSIP/1204/sip:[email protected]:5060
  == Using SIP RTP Video TOS bits 136
  == Using SIP RTP Video TOS bits 136 in TCLASS field.
  == Using SIP RTP Video CoS mark 4
    -- PJSIP/1204-0000000c is ringing
    -- PJSIP/1204-0000000c Internal Gosub(app-missedcall-hangup,1204,1) start
    -- Executing [1204@app-missedcall-hangup:1] NoOp("PJSIP/1204-0000000c", "Dialed: 1204") in new stack
    -- Executing [1204@app-missedcall-hangup:2] NoOp("PJSIP/1204-0000000c", "Caller: 1202") in new stack
    -- Executing [1204@app-missedcall-hangup:3] GotoIf("PJSIP/1204-0000000c", "0?exit") in new stack
    -- Executing [1204@app-missedcall-hangup:4] Set("PJSIP/1204-0000000c", "EXTENNUM=1204") in new stack
    -- Executing [1204@app-missedcall-hangup:5] Set("PJSIP/1204-0000000c", "FEXTENNUM=1204") in new stack
    -- Executing [1204@app-missedcall-hangup:6] GotoIf("PJSIP/1204-0000000c", "0?exit") in new stack
    -- Executing [1204@app-missedcall-hangup:7] AGI("PJSIP/1204-0000000c", "agi://127.0.0.1/missedcallnotify.php,1204,,1204,0,,PJSIP/1204-0000000c,,,,") in new stack
    -- <PJSIP/1204-0000000c>AGI Script agi://127.0.0.1/missedcallnotify.php completed, returning 0
    -- Executing [1204@app-missedcall-hangup:8] Return("PJSIP/1204-0000000c", "") in new stack
  == Spawn extension (from-internal, 1204, 1) exited non-zero on 'PJSIP/1204-0000000c'
    -- PJSIP/1204-0000000c Internal Gosub(app-missedcall-hangup,1204,1) complete GOSUB_RETVAL=
  == Spawn extension (dialOne-with-exten, 1204, 2) exited non-zero on 'PJSIP/1202-0000000b'
    -- PJSIP/1202-0000000b Internal Gosub(app-missedcall-hangup,1204,1) start
    -- Executing [1204@app-missedcall-hangup:1] NoOp("PJSIP/1202-0000000b", "Dialed: 1204") in new stack
    -- Executing [1204@app-missedcall-hangup:2] NoOp("PJSIP/1202-0000000b", "Caller: 1202") in new stack
    -- Executing [1204@app-missedcall-hangup:3] GotoIf("PJSIP/1202-0000000b", "0?exit") in new stack
    -- Executing [1204@app-missedcall-hangup:4] Set("PJSIP/1202-0000000b", "EXTENNUM=1204") in new stack
    -- Executing [1204@app-missedcall-hangup:5] Set("PJSIP/1202-0000000b", "FEXTENNUM=1204") in new stack
    -- Executing [1204@app-missedcall-hangup:6] GotoIf("PJSIP/1202-0000000b", "0?exit") in new stack
    -- Executing [1204@app-missedcall-hangup:7] AGI("PJSIP/1202-0000000b", "agi://127.0.0.1/missedcallnotify.php,1204,,1204,0,,PJSIP/1202-0000000b,CANCEL,,,") in new stack
    -- <PJSIP/1202-0000000b>AGI Script agi://127.0.0.1/missedcallnotify.php completed, returning 0
    -- Executing [1204@app-missedcall-hangup:8] Return("PJSIP/1202-0000000b", "") in new stack
  == Spawn extension (dialOne-with-exten, 1204, 2) exited non-zero on 'PJSIP/1202-0000000b'
    -- PJSIP/1202-0000000b Internal Gosub(app-missedcall-hangup,1204,1) complete GOSUB_RETVAL=
freepbx*CLI> exit
Asterisk cleanly ending (0).
Executing last minute cleanups
root@freepbx:~#

Sorry, I am not following entirely as I am not too familiar this deep into SIP. If I understand correctly, it may be due to improper configuration right? How would I go about resolving this? Thanks.

Here is my configuration, it is the same with all of my extensions:

Try setting Send Connected Line to Yes on the calling extension. If it doesn’t help, paste a new log with it on, up through where the called extension is answered.

2 Likes

Thanks @Stewart1 and @david55, enabling Send Connected Line to Yes has fixed the issue. Calling extensions will now display their names normally, I’ll have to enable this on all of my extensions.

1 Like

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