[Devel] rr-callbacks and dst-uri for Path and NAT

Andreas Granig andreas.granig at inode.info
Wed Jan 25 14:34:52 CET 2006


Hi,

AFAI understand, one can use the callback API of the rr-module to hook 
up a function of a custom module which gets passed the parameters of the 
current Route HF, right?

So for handling NAT in combination with the Path HF, one could insert a 
Path-HF like "Path: <sip:proxy-addr;received=nated-uac-addr>" at an 
outbound proxy, which is converted to a Route HF by the home proxy for 
subsequent requests towards the UAC.

For handling this Route by using the received-param at the outbound 
proxy without touching the rr-module, I could write a module which 
registers a rr-callback and sets the dst-uri according to the 
received-param. BUT... :o)

The problem is, that the rr-module executes the callbacks before it sets 
the dst-uri according to the uri of the current Route element. Could the 
order probably be changed (first setting the dst-uri, then executing 
rr-callbacks) to give the callback the chance to manipulate the dst-uri?

Bye,
Andy



More information about the Devel mailing list