<div dir="ltr"><div dir="ltr">On Thu, Mar 4, 2021 at 3:16 AM <<a href="mailto:billing@chaneste.com">billing@chaneste.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><span style="font-size:14pt">For regulatory reasons, I need to store the media IP address of the caller.</span></div>
<div><span style="font-size:14pt">All callers listen to a message and the call disconnects.</span></div>
<div><span style="font-size:14pt">Also, I want to store in my CDR its own SIP IP address, in either pjsip or chan_sip, i.e., where I am listening, or maybe the IP address where each call is received at.</span></div>
<div><span style="font-size:14pt">Or maybe the name of the context.</span></div>
<div><span style="font-size:14pt">Is there a way to read this information from an internal variable?</span></div></blockquote></div><div><br></div>The CHANNEL dialplan function[1] provides access to various details about the channel. The specific format depends on the channel driver in use.<br clear="all"><div><br></div><div>[1] <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Function_CHANNEL">https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Function_CHANNEL</a></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"><div><font color="#073763">Joshua C. Colp</font></div><div><font color="#073763">Asterisk Technical Lead</font></div><div><font color="#073763">Sangoma Technologies</font></div><div><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></div></div></div></div></div></div></div></div></div></div></div></div>