On Wednesday 20 August 2014 14:54:42 Satish Patel wrote:
I am new in Kamailio so could you please give me code example how to use t_relay() to forward traffic to Provide, I know how to use rewritehost() but i never use t_relay() function
Well, my guess is your routing ends with t_relay().
But routing will normally be done based on $ru unless $du is set (after for example location()). http://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#ru_-_request_ur... http://www.kamailio.org/wiki/cookbooks/devel/pseudovariables#du_- _destination_uri
So changing destination can be accomplished by simply setting $rd to an other ip/domain (and setting $du=null). But TIMTOWTDI.