<div dir="ltr"><div dir="ltr">On Wed, Jan 22, 2020 at 5:32 PM Phil Mickelson <<a href="mailto:phil@cbasoftware.com">phil@cbasoftware.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I'm trying to get the Call-ID from the SIP HEADER using getChannelVar.  When I pass SIP_HEADER() and anything as the variable I get Unable to read provided function.  If use Call-ID I get Provided variable was not found.<div><br></div><div>This is a connected call.  Is it not possible to get SIP HEADER information once it's connected?  Or, am I missing something?</div></div></blockquote><div><br></div><div>Are you using chan_sip or chan_pjsip? If chan_pjsip then you need to use the PJSIP_HEADER function [1] instead. For instance the following returned the call-id for me:</div><div><br></div><div>PJSIP_HEADER(read,Call-ID)<br></div><div><br></div><div>How are you attempting to use the channel function [2]? For instance the following returned the call-id for me as well:</div><div><br></div><div>CHANNEL(pjsip,call-id)<br></div><div><br></div><div>[1] <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Function_PJSIP_HEADER">https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Function_PJSIP_HEADER</a></div><div>[2] <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Function_CHANNEL">https://wiki.asterisk.org/wiki/display/AST/Asterisk+16+Function_CHANNEL</a></div></div><br clear="all"><div>-- <br></div><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr">Kevin Harwell<div>Senior Software Developer</div><div>Sangoma Technologies<br><div>Check us out at: <a href="https://sangoma.com/" target="_blank">https://sangoma.com</a> & <a href="https://asterisk.org" target="_blank">https://asterisk.org</a></div></div></div></div></div></div></div></div>