On 4/14/11 9:48 AM, Klaus Darilion wrote:
Am 13.04.2011 15:55, schrieb Daniel-Constantin Mierla:
If does not work with one instance, I would use
branch flags to mark the
branch doing ipv4 to ipv6 translation and engage a dedicated rtpproxy
for it. You can run two rtpproxy-es on the same server, in different sets:
http://kamailio.org/docs/modules/stable/modules_k/rtpproxy.html#id3012059
http://kamailio.org/docs/modules/stable/modules_k/rtpproxy.html#id3009496
So the branch doing ipv4-ipv6 will have a flag set and use a particular
rtpproxy. On the 200ok, you can check the branch flag and engage again
the proper rtpproxy.
That's a nice idea. Some time ago I tried the same setup
and failed. Are
there some easy methods to find out if a target is IPv4 or IPv6, e.g.
something like
if ( is_ipv6("$rd") ) {
...
}
in onsend_route you can check the destination address family:
if(snd_af==INET6) { ... }
It might be too late for some specific processing, though.
Cheers,
Daniel
--
Daniel-Constantin Mierla
http://www.asipto.com