On 10/25/2011 03:28 PM, Uri Shacked wrote:
Hi,
I am using kamailio (only one) as routing engine. I have 2 gateways.
Both of them sending calls to kamailio.
When i use the carrierroute module i need to change (and succeed) the
user ($rU). But, i need to send the call (the invite) back to the
gateway that sent me the call from the beginning (it can be either one
of those 2). So, my problem is that i don’t want to rewrite the host
in carrierroute, just the user. If i leave the rewrite_host field
empty, it is considered to be "black list" and drops the call. If i
rewrite the host, i can send the call to the second gateway that was
not the one that sent the call, and the call drops as well.
Hello,
after cr_route() that sets the RURI set $du (pseudovar .... needs pv.so
afaik ) to either of the 2 balancers (or to a domain that resolves to
both of the two balancers - for load balancing). $du will set the
destination uri of the package without modifying the RURI (which is set
by cr_route()), so the balancer will route the message to the client.
Cheers
Mraius
any ideas how to use carrierroute for changing user
only and send the
invite back to the gateway that originally sent the call?
Thanks,
Uri
--
Zbihlei Marius
Head of
Linux Development Services Romania
1&1 Internet Development srl Tel KA: 754-9512
Str Mircea Eliade 18 Tel RO: +40-31-223-9512
Sect 1, Bucuresti mailto: marius.zbihlei(a)1and1.ro
71295, Romania