[OpenSIPS-Users] how to check debug message for stun?

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Oct 13 09:22:47 CEST 2014


Hi George,

If you see private IPs in the VIA or Contact hdrs of the requests coming 
from your UAC, it means STUN was not used.

You can run an ngrep on your opensips server on the IPs and ports used 
by STUN, to see if you receive anything from that UAC.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 10.10.2014 18:48, george wu wrote:
> I think my client never send stun message to the server.
> the client find its public ip from the OK VIA header:
> Via: SIP/2.0/UDP 
> 192.168.1.3:5070;received=192.168.1.3;branch=z9hG4bK.Klryaqrls;rport=5070
>
> Am I right?
>
>
> At 2014-10-10 23:36:18, "george wu" <aihuawu2012 at 163.com> wrote:
>
>     Hi, all:
>
>     I can't see any debug message for stun on the opensips server side.
>
>     I have enabled debug and set up stun as below
>     loadmodule "stun.so"
>     modparam("stun", "primary_ip", "192.168.1.3")
>     modparam("stun","alternate_ip","192.168.122.1")
>
>     From the client linphone debug message, I can see
>     ortp-message-channel [0x1fb3080]: discovered public ip and port
>     are [192.168.1.3:5070]
>
>     Just I don't see any debug message for stun, how to check it on
>     the server side?
>     Thanks.
>
>     George
>
>
>
>
>
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20141013/bbd2a45a/attachment-0001.htm>


More information about the Users mailing list