<div dir="ltr"><div dir="ltr">On Mon, Jun 26, 2023 at 4:04 PM TTT <<a href="mailto:lists@telium.io">lists@telium.io</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 class="msg8403159497949984987"><div lang="EN-US"><div class="m_8403159497949984987WordSection1"><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">It looks like if I call Getvar and pass PJSIP_HEADERS() I can get the entire SIP header for a channel.  I also read (on stackoverflow) that the PJSIP_HEADER function will only return the headers from the INVITE of the <u>inbound</u> channel.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:rgb(31,73,125)">If that’s correct, how would I get the headers from the outbound channel (second leg of the bridged call) INVITE ?  Or will PJSIP_HEADERS() in fact return the header from either inbound out outbound legs?</span></p></div></div></div></blockquote><div><br></div><div>The answer is, you can't. There are SOME protocol level things accessible using CHANNEL[1] but that's it.</div><div><br></div><div>[1] <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+Function_CHANNEL">https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+Function_CHANNEL</a></div></div><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Asterisk Project Lead</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at <a href="http://www.sangoma.com" target="_blank">www.sangoma.com</a> and <a href="http://www.asterisk.org" target="_blank">www.asterisk.org</a></font><br></div></div></div></div></div></div></div></div></div></div></div>