[asterisk-users] registration ip address
Anselm Martin Hoffmeister
anselm at hoffmeister-online.de
Mon Nov 27 10:42:12 MST 2006
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
More information about the asterisk-users
mailing list