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

_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to