<div dir="ltr"><div dir="ltr">On Mon, May 23, 2022 at 5:52 PM Dan Cropp <<a href="mailto:dan@amtelco.com">dan@amtelco.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 lang="EN-US" style="overflow-wrap: break-word;">
<div class="gmail-m_4762000316001104017WordSection1">
<p class="MsoNormal">We have a customer who wants to perform both directions.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">For inbound calls, they have indicated their switch will provide Geolocation/E911 information using two different ways.  Sounds like it depends on the equipment before the SIP proxy. 
<u></u><u></u></p>
<p class="MsoNormal">It will either be in SIP headers (which we retrieve through PJSIP_HEADER in the dial plan).  Trivial for us to do this approach.<u></u><u></u></p>
<p class="MsoNormal">Second approacy is their SIP proxy will append information to the body with mime delimiters (indicating content type of pidf+xml).<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">They want us to retrieve this information (via Asterisk) and store it into their database.  When a 911 agent answers the call, they retrieve the data from the database and use it as needed for assisting the first responders.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">If Asterisk can’t do this and isn’t planned to be able to support this, we’re looking to make Kamailio able to process the INVITE in front of Asterisk.  Idea being Kamailio could communicate the information our customer requires and we
 store it in the database.  When Agent answers the call, use the Call-ID provided by Asterisk to match it with the Kamailio INVITE data’s Call-ID.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">We are still trying to gather details on how the customer wants the outbound calls to work.</p></div></div></blockquote><div><br></div><div>Both directions will be supported according to the specification and standard. The information will be accessible from the dialplan using a dialplan function, but not the pidf+xml itself. If they're doing something outside of the standard, then it likely wouldn't work. The code is not written for 911 PSAPs/handlers specifically, it's written for receiving the information from an endpoint, and for sending it out.</div></div><div><br></div>-- <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 Technical 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>