<div dir="ltr"><div dir="ltr">On Sat, Jun 17, 2023 at 2:55 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="msg2273425064345187451"><div lang="EN-US"><div class="m_2273425064345187451WordSection1"><p class="MsoNormal">Based on postings it should be possible to get the SIP Call-ID header value from the ARI.  At what point is this value available ?  As well, how do I retrieve that value – something like<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">GET /channels/{channelId}/pjsip_header?key=Call-Id<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">But that doesn’t work.</p></div></div></div></blockquote><div><br></div><div>'pjsip_header' is not a valid route. All possible routes are documented on the wiki, if it's not there then it doesn't exist.</div><div><br></div><div>Instead you would use variable[1] to execute the PJSIP_HEADER dialplan function[2] or a better way would be the CHANNEL dialplan function[3] such as:</div><div><br></div><div>GET /channels/{channelid}/variable?variable=CHANNEL(pjsip,call-id)</div><div><br></div><div>Though I haven't tested that.</div><div><br></div><div>Newer versions also include the protocol identifier (Call-ID) in the channel ARI structure[4] which would be in events, or explicitly retrieved[5].</div><div><br></div><div>[1] <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+Channels+REST+API#Asterisk20ChannelsRESTAPI-getChannelVar">https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+Channels+REST+API#Asterisk20ChannelsRESTAPI-getChannelVar</a></div><div>[2] <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+Function_PJSIP_HEADER">https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+Function_PJSIP_HEADER</a></div><div>[3] <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>[4] <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+REST+Data+Models#Asterisk20RESTDataModels-Channel">https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+REST+Data+Models#Asterisk20RESTDataModels-Channel</a></div><div>[5] <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+Channels+REST+API#Asterisk20ChannelsRESTAPI-get">https://wiki.asterisk.org/wiki/display/AST/Asterisk+20+Channels+REST+API#Asterisk20ChannelsRESTAPI-get</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>