[asterisk-users] Read remote Media IP address

Joshua C. Colp jcolp at digium.com
Thu Mar 4 08:37:06 CST 2021


On Thu, Mar 4, 2021 at 3:16 AM <billing at chaneste.com> wrote:

> For regulatory reasons, I need to store the media IP address of the caller.
> All callers listen to a message and the call disconnects.
> 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.
> Or maybe the name of the context.
> Is there a way to read this information from an internal variable?
>

The CHANNEL dialplan function[1] provides access to various details about
the channel. The specific format depends on the channel driver in use.

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+18+Function_CHANNEL

-- 
Joshua C. Colp
Asterisk Technical Lead
Sangoma Technologies
Check us out at www.sangoma.com and www.asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20210304/33b9f52d/attachment.html>


More information about the asterisk-users mailing list