[asterisk-users] registration ip address

slavon at bigtelecom.ru slavon at bigtelecom.ru
Mon Nov 27 15:11:42 MST 2006


http://www.voip-info.org/wiki/index.php?page=Asterisk+func+sippeer

"O`e`o`ed'oth Anselm Martin Hoffmeister <anselm at hoffmeister-online.de>:

> Am Dienstag, den 28.11.2006, 06:46 -0800 schrieb Khaled:
>> What is the variable like $peerip to get the registered  ip address
>> for a peer
>
> You can use ${DB(SIP/Registry/sip507)} where "sip507" is the section
> name as well as username from my sip.conf- no idea which of both to use,
> try it out.
> This value contains the client IP, port number, and more information.
> Consider CUT() for obtaining the IP, something like
> exten=>123,45,Set(IPADDR=${CUT(${DB(SIP/Registry/sip504)},:,1)})
>
> BR
> Anselm
>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
>
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



More information about the asterisk-users mailing list