http://www.voip-info.org/wiki/index.php?page=Asterisk+func+sippeer
"O`e`o`ed'oth Anselm Martin Hoffmeister <[EMAIL PROTECTED]>:
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.
_______________________________________________
--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