Problems with --auto-update-nat and ice-mismatch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ondrej,

just less than a month ago I've had the same problem [1] and wasted a lot of
time trying to figure out what happened. Turns out it was my ADSL router
that messes up with the addresses in SIP/SDP. Basically it will just replace
all occurrences of private IP with its public IP for outgoing messages, and
the reverse for incoming messages. And surely that makes the
--auto-update-nat stop working and ice-mismatch to happen.

This could also be the case with yours. If so, can you mention what's the
router's brand and firmware version for our reference? Mine is Belkin 154DSL
with 6.01.06 firmware.

Cheers
 Benny

[1] http://lists.openser.org/pipermail/devel/2008-July/014533.html

On Fri, Jul 25, 2008 at 10:48 AM, Ondrej Sterbak <sterbo at email.cz> wrote:

> Hi Benny,
>
> I don't know where is the problem now but somehow --auto-update-nat=0
> doesn't work for me as it should. Example (I am changing IPs and
> hostnames there as it doesn't matter for what I want to say.):
>
> When I send REGISTER request to OpenSER pjsua log shows this:
> REGISTER sip:example.com SIP/2.0
> Via: SIP/2.0/UDP
> 192.168.22.22:5060
> ;rport;branch=z9hG4bKPj57fad762-df27-40b1-ae27-7456b97309dc
> Max-Forwards: 70
> From: <sip:user@xxxxxxxxxxx <sip%3Auser at example.com>
> >;tag=30e5e7cd-41d3-4e65-90f1-17269c84c6fe
> To: <sip:user at example.com <sip%3Auser at example.com>>
> Call-ID: 9587c66e-ae33-4ca0-986e-8f1ac097c62d
> CSeq: 29674 REGISTER
> User-Agent: PJSUA v0.9.0-trunk/i686-pc-linux-gnu
> Contact: <sip:user at 192.168.22.22:5060>
> Expires: 300
> Content-Length:  0
>
> BUT OpenSER sees this:
> REGISTER sip:example.com SIP/2.0
> Via: SIP/2.0/UDP
> 192.0.2.44:5060;rport;branch=z9hG4bKPj57fad762-df27-40b1-ae27-7456b97309dc
> Max-Forwards: 69
> From: <sip:user@xxxxxxxxxxx <sip%3Auser at example.com>
> >;tag=30e5e7cd-41d3-4e65-90f1-17269c84c6fe
> To: <sip:user at example.com <sip%3Auser at example.com>>
> Call-ID: 9587c66e-ae33-4ca0-986e-8f1ac097c62d
> CSeq: 29674 REGISTER
> User-Agent: PJSUA v0.9.0-trunk/i686-pc-linux-gnu
> Contact: <sip:user at 192.0.2.44:5060>
> Expires: 300
> Content-Length:  0
>
>
> When I send same message with sipsak: sipsak -vvv -i -f sipsak.msg -s
> sip:example.com:5060
> then the OpenSER sees unchanged message with private addresses.
>
> This is my --config-file:
> --id=sip:user at example.com <sip%3Auser at example.com>
> --registrar=sip:example.com
> --auto-update-nat=0
>
> There's definitely small bug in pjsip-apps/src/pjsua/pjsua_app.c on line
> 1338:
> dump config is dumping non-existent option --contact-rewrite instead
> of --auto-update-nat.
>
> So I like the function but I would like to have it under control. If
> it is not connected to PJSIP do you have an idea what else could be
> rewriting my contact header? I am running pjsua under Gentoo Linux and
> OpenSER 1.3.1-notls under Ubuntu Server 8.04.1. I am almost sure
> OpenSER is not doing it.
>
> The other problem I have is with _something_ rewriting my SDP c and
> olines with my srflx addresses which causes ice-mismatch problem when
> using ICE. Any idea what can cause the problems here and how could I
> turn it off?
>
> Thank you for your wonderful support all the time!!!
>
> Cheers,
> Ondrej
>
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
>
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20080725/0fed37ce/attachment-0001.html 


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux