[Asterisk-Users] Sending SIP NOTIFY / How to get remote SIP port?

TWV voip at teleweb.be
Wed Apr 19 01:42:29 MST 2006


Hm, interesting!
That is exactly what I need :-)
Thanks a million times!!

What more can you get from the database?
Is this documented somewhere?

http://www.voip-info.org/wiki/view/database+get doesn't give much info (to
say the least)

- Frederic

-----Oorspronkelijk bericht-----
Van: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] Namens Freddi Hansen
Verzonden: woensdag 19 april 2006 9:54
Aan: asterisk-users at lists.digium.com
Onderwerp: RE: [Asterisk-Users] Sending SIP NOTIFY / How to get remote SIP
port?

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




More information about the asterisk-users mailing list