[sr-dev] alias_contact()/handle_alias() ready for testing

Juha Heinanen jh at tutpro.com
Mon Nov 9 12:38:15 CET 2009


Klaus Darilion writes:

 > but shouldn't that be extended to detect of contact of response needs to 
 > be converted?
 > 
 > > route [REGISTER_REQUESTS] {
 > >     ...
 > >     if (isflagset(FROM_NATED) || (proto == TCP)) {
 > >         fix_nated_register();
 > > 	if (isflagset(FROM_NATED)) {
 > > 	    setbflag("TO_NATED");
 > > 	};
 > 
 >   	if (proto == TCP) {
 >   	    setbflag("TO_TCP");
 >   	};
 > 
 > >     };
 > >     save("location");

it is already taken care of because alias_contact() is called in
onreply_route.

-- juha

 > and after lookup() in branch route:
 > 
 >   	if (isbflagset(TO_TCP) || isbflagset(TO_NATED)) {
 >   	    t_on_reply(REWRITE_RESPONSE_CONTACT);
 >   	};

not needed anymore.  as i mentioned, config gets lot simpler with these
functions.

-- juha



More information about the sr-dev mailing list