Hi Ethy,

Am 09.11.2016 um 17:13 schrieb Ethy H. Brito:

> How are these parameters available from dialplan?
> 
> For instance, ${SIPURI} holds the internal "IP:port" if the client is behind 
> NAT. 
> I need the external IP:port


You can get the peer's signalling IP address from ${CHANNEL(recvip)} and the 
RTP address with ${CHANNEL(rtpsource)} resp. ${CHANNEL(rtpdest)}.
If you need more information (like the codecs used) you can find other channel 
variables on 
https://wiki.asterisk.org/wiki/display/AST/Asterisk+11+Function_CHANNEL

Please note that, if you have not disabled re-invites, the RTP address may 
change while the call is running.



Max

Attachment: signature.asc
Description: OpenPGP digital signature

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