Re: [asterisk-users] How do I retrieve the Call-ID from the SIP INVITE when using Originate on PJSIP?

2018-08-23 Thread Dan Cropp
Please Disregard. I found the solution. In case anyone else runs into this, use (CHANNEL(pjsip,call-id)) and not the PJSIP_HEADER(read, ...) From: asterisk-users On Behalf Of Dan Cropp Sent: Thursday, August 23, 2018 9:32 AM To: asterisk-users@lists.digium.com Subject: [asterisk-users] How

[asterisk-users] How do I retrieve the Call-ID from the SIP INVITE when using Originate on PJSIP?

2018-08-23 Thread Dan Cropp
Using chan_sip, we are able to retrieve the Call-ID using the SIPCALLID channel variable. This works for both inbound and outbound (Originated) calls. For PJSIP this variable doesn't get set. Instead, for inbound calls we retrieve the Call-ID from the INVITE packet using the