try,

database get SIP/Registry/<peername>
it gives you a string which contains the info, then pass it to CUT to extract ip-adr and port

Freddi

To do that you need to get the remote ip address and port of the sip peer!

I found the function:

${SIPPEER(exten:ip)

But how can I get the port???

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

You have all sorts of info BUT... I see no port!!! :-(
I can't believe that you wouldn't be able to get the port via a simple dial
plan function???

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

Reply via email to