On Thu, Nov 4, 2021 at 8:43 AM Kingsley Tart <[email protected]> wrote:

> On Wed, 2021-11-03 at 16:25 -0300, Joshua C. Colp wrote:
>
> On Wed, Nov 3, 2021 at 3:31 PM Kingsley Tart <[email protected]> wrote:
>
> Hi,
>
> When dialling a remote SIP host with PJSIP, is it possible either
> within the dialplan or via the AMI to find out the IP address of the
> remote host?
>
>
> The CHANNEL dialplan function[1] provides functionality for pjsip to get
> the remote address.
>
> [1]
> https://wiki.asterisk.org/wiki/display/AST/Asterisk+19+Function_CHANNEL
>
>
> Thanks, that looks perfect. What is the syntax? I have tried a few things
> but none work:
>

${CHANNEL(pjsip,remote_addr)}

-- 
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