[Asterisk-Users] Sending SIP NOTIFY / How to get remote SIP port?
Freddi Hansen
fh at danovation.dk
Wed Apr 19 00:53:52 MST 2006
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???
More information about the asterisk-users
mailing list