[OpenSER-Users] IPv6 issues in openser
Bogdan-Andrei Iancu
bogdan at voice-system.ro
Mon Apr 28 22:45:38 CEST 2008
Hi Klaus,
Klaus Darilion wrote:
> Hi!
>
> Following some IPv6 issues:
>
> 1) I configured openser (1.3.0) to listen on an IPv6 address too:
> listen = udp:[2001:7b8:2ff:1da::2]:5060
> listen = tcp:[2001:7b8:2ff:1da::2]:5060
>
> I also configured bind9 and apache2 to listen on this IPv6 address. But
> somehow openser does it different then others:
>
> # netstat -anp|grep 2001
> tcp6 0 0 2001:7b8:2ff:1da:::5060 :::*
> tcp6 0 0 2001:7b8:2ff:1da::2:80 :::*
> tcp6 0 0 2001:7b8:2ff:1da::2:53 :::*
> udp6 0 0 2001:7b8:2ff:1da::2:53 :::*
> udp6 0 0 2001:7b8:2ff:1da:::5060 :::*
>
>
> As you see, openser binds to [2001:7b8:2ff:1da::] whereas others binds
> to [2001:7b8:2ff:1da::2]. Actually this didn't caused any problems, but
> I still surprised about the difference. Can someone explain me please
> this behavior?
>
>
>
hmmm...this is rather strange....I will try to play a bit with it to see
if I find something relevant.
> 2) I found out that openser allows this syntax too (without []).
> listen = udp:2001:7b8:2ff:1da::2
>
> I think it would be better to disallow that syntax and require [] as it
> is ambiguous when specifying the port too, e.g.:
> listen = udp:2001:7b8:2ff:1da::2:5060
>
I guess the dual IPv6 writing in defined in RFC; if you want to rule out
any ambiguity, you can use brackets, but not sure if we really need to
force a specific notation just to be sure...On the other hand, there
will be no harm done :)
>
> 3) Looks like the syntax in the socket column of the location table is
> not IPv6 compatible:
> ERROR:usrloc:parse_phostport: too many colons in
> udp:2001:7B8:2FF:1DA:0:0:0:2:5060
> ERROR:usrloc:dbrow2info: bad socket <udp:2001:7B8:2FF:1DA:0:0:0:2:5060>
> ERROR:usrloc:preload_udomain: sipping record for klaus1 in table location
>
> I guess the socket should use [] for IPv6 addresses too.
>
That is totally right - I overlooked this case when I did the code for
the socket storing...
Best regards,
Bogdan
> regards
> Klaus
>
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>
>
More information about the sr-users
mailing list