[SR-Users] Kamailio as IPv6 to IPv4 Gateway

Klaus Darilion klaus.mailinglists at pernau.at
Fri Oct 15 15:37:22 CEST 2010



Am 15.10.2010 02:59, schrieb Joe Uelk:
> Hello all,
>
> I'm looking to implement the following scenario:
>
> Step 1
> SIP Server A sends INVITE to port 5060 over IPv6 to Kamailio:
> 2001::1 --udp/tcp--> 2001::2:5060
>
> Step 2
> Kamailio SIP NATs the INVITE and sends it out IPv4 to SIP Server B on
> port 6000
> 1.1.1.1 --udp/tcp--> 1.1.1.2:6000 <http://1.1.1.2:6000>
>
> Step 3
> All SIP Server B responses within this SIP dialog are sent back to SIP
> Server A along the same path.
>
> There is more to this but I want to accomplish this first and go from there.
>
>
> Can someone point me toward a resource on how to get this created?
>
> Do I need to use the WITH_NAT function in kamailio.cfg?

No. WITH_NAT is for NAT traversal of SIP clients behind NAT.

If you want to operate Kamailio in IPv4-IPv6 bridging mode you only have 
to listen to IPv4 and IPv6 sockets. Bridging will be done automatically 
(by using the double-record-route feature). Maybe you have to specify 
mhomed=1. (multi homed).

But be aware. This only covers SIP signaling. If the clients are not 
dual-stacked then you usually also have to v6-v4 briding for media, e.g. 
by using rtpproxy in bridge mode.

Furher, I suspect there will be some clients which are confused if the 
receive a IPv6 address in contact header while using IPv4 when talking 
to the proxy.

regards
klaus

>
> Thanks!
> Joe
>
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users



More information about the sr-users mailing list