On 01/09/15 11:30, Daniel Tryba wrote: > On Tuesday 01 September 2015 02:12:04 sscc wrote: >> one more question where to put this code? in invite? or registrar? > > It only makes sense for invites. Propably best to do it immediatly after > lookup()/alias_db_lookup(). > > Actually, lookup will change the r-uri to the contact address of the target, which should be the local IP for the target phone/app. It is better to put the condition before.
Cheers, Daniel -- Daniel-Constantin Mierla http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda Book: SIP Routing With Kamailio - http://www.asipto.com _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users