On 08.08.2012 12:55, Iñaki Baz Castillo wrote:
2012/8/8 Iñaki Baz Castillo <ibc(a)aliax.net>
Hi, AFAIK kamailio does not add Path header for a REGISTER that is routed to another
server. Adding it should be straightforward:
There is no need for a new script function. Instead use the existing loose_route()
function, but:
If the request method is REGISTER then add Path header(s) instead of Record-Route
header(s), which the exact SAME value (this includes Outbound flow token and ;ob param,
when implemented). No more.
Ok, there is already support for this via:
http://kamailio.org/docs/modules/3.3.x/modules_k/path.html#id2537563
I didn't realize of it. I expect that add_path() is just a wrapper on
top of loose_route() by replacing "Record-Route" with "Path".
Not exactly. I takes care of choosing the proper IP address (outgoing
interface) but does not add double-headers like RR does. Further, the
add_path_received() function is useful for far-end NAT traversal.
regards
Klaus