[SR-Users] Interdomain Routing

Alex Balashov abalashov at evaristesys.com
Thu Mar 20 02:44:22 CET 2014


Just modify the domain part of the request URI ($rd) and t_relay() the 
request:

    $rd = "host.you.want.call.to.go.to";

    if(!t_relay())
       sl_reply_error();

If you have a need to have an RURI domain that is different than the 
physical destination of the request, you can modify the "destination 
set" instead:

    $rd = "whatever.domain.you.like";
    $du = "sip:where.you.want.the.call.to.go:5060";

    if(!t_relay())
       sl_reply_error();

-- Alex

On 03/19/2014 09:42 PM, Owais ul Haq wrote:

> Hello,
> I have kamailio implemdented on two machines in my local network. Both
> are using the same database implemented on a third machine in the same
> network.
> As my servers are on local domain so given fake domain names. How can
> calls be routed between the two domains ?? I asked this question and got
> reply to use "t_relay ". I read about it but it is for stateful
> processing of SIP messages. I cant relate my problem to this t_relay
> module. What can be the solution for this ?
>
> Regards.
>
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>


-- 
Alex Balashov - Principal
Evariste Systems LLC
235 E Ponce de Leon Ave
Suite 106
Decatur, GA 30030
United States
Tel: +1-678-954-0670
Web: http://www.evaristesys.com/, http://www.alexbalashov.com/



More information about the sr-users mailing list