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
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?
Thanks! Joe
Hello Joe,
Check out the example provided in the source tree: http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=blob_plain;f=mod...
Regards, Ovidiu Sas
On Thu, Oct 14, 2010 at 8:59 PM, Joe Uelk joe.uelk@gmail.com wrote:
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 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? Thanks! Joe _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Thanks for the information Klaus and Ovidiu!
It seems the 4to6.cfg file referenced is for a different version of Kamailio. I'm using 3.1.0 and I was unable to get it to run with that .cfg file.
I installed Kamailio on Fedora 10 as an rpm. It runs successfully with the default configuration.
Also, it seems NAT is used in the 4to6.cfg file. Does this mean WITH_NAT is required in the newer version?
I'd be happy to install any version that will work with the examples you have provided... which do you recommend?
Also, the potential for IPv6 addresses in the Via header of IPv4 clients that Klaus mentioned could be an issue... is there a way to enable topology hiding or something similar?
Thanks, Joe
On Fri, Oct 15, 2010 at 6:37 AM, Klaus Darilion < klaus.mailinglists@pernau.at> wrote:
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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
Can you detail what is not working in 3.1.0?
Regards, Ovidiu Sas
On Fri, Oct 15, 2010 at 5:24 PM, Joe Uelk joe.uelk@gmail.com wrote:
Thanks for the information Klaus and Ovidiu! It seems the 4to6.cfg file referenced is for a different version of Kamailio. I'm using 3.1.0 and I was unable to get it to run with that .cfg file. I installed Kamailio on Fedora 10 as an rpm. It runs successfully with the default configuration. Also, it seems NAT is used in the 4to6.cfg file. Does this mean WITH_NAT is required in the newer version? I'd be happy to install any version that will work with the examples you have provided... which do you recommend? Also, the potential for IPv6 addresses in the Via header of IPv4 clients that Klaus mentioned could be an issue... is there a way to enable topology hiding or something similar? Thanks, Joe On Fri, Oct 15, 2010 at 6:37 AM, Klaus Darilion klaus.mailinglists@pernau.at wrote:
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@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
-- Joe Uelk joe.uelk@gmail.com
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
On Friday 15 October 2010, Joe Uelk wrote:
[..] Also, the potential for IPv6 addresses in the Via header of IPv4 clients that Klaus mentioned could be an issue... is there a way to enable topology hiding or something similar?
Hi Joe,
there is the "topoh" module, which does some topology hiding. Maybe you can check it out.
Viele Grüße,
Henning