On Thu, Mar 4, 2021 at 3:16 AM <[email protected]> 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
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to