[Kamailio-Users] Kamailio dispatcher Module redirection

Iñaki Baz Castillo ibc at in.ilimit.es
Wed Aug 27 16:52:12 CEST 2008


El Wednesday 27 August 2008 16:19:27 Asim Riaz escribió:
> at the moment I am checking the to_uri and then redirecting the traffic to
> my one of Kamilio on my network, it seems to work fine with Linksys but not
> other phones e.g polycom xlite or even sjphone.
>
>  if(to_uri=~"sip:.+ at sip.mydomain.ie") {
>            ds_select_domain("1", "4");
>           sl_send_reply("300","Redirect");
>           exit;
> }

Don't use "To" but RURI. The routing decission MUST be done based into RURI 
since if a request is diverted before arriving to your proxy it "To" will 
remain being the original but the RURI will be the new destination.

-- 
Iñaki Baz Castillo
ibc at in.ilimit.es




More information about the sr-users mailing list