[SR-Users] SIP Trunk

Daniel Tryba daniel at pocos.nl
Wed Aug 20 16:04:19 CEST 2014


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_uri
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.

-- 

POCOS B.V. - Croy 9c - 5653 LC Eindhoven
Telefoon: 040 293 8661 - Fax: 040 293 8658
http://www.pocos.nl/   - http://www.sipo.nl/
K.v.K. Eindhoven 17097024



More information about the sr-users mailing list