Hi again,

The 'load_balance' function sets the $du to the address of the asterisk box.
This wroks with b2b, the $du is used when routing the Invite out and since
you say the message does get to asterisk it proves that it works for you
also.
Since asterisk gives '404 Not Found' it means that the RURI is not
recognized by asterisk. So you also have to change ruri also. You said that
you used rewritehostport before calling b2b_init_request - this is a good
solution and it whould work. Another solution is to set $rd and $rp.

Regards,
Anca


On Tue, Jul 19, 2011 at 1:34 PM, saneku <[email protected]> wrote:

> Thanks! you have saved my head from beeing broken.
> But now i trying to add load balance functionality between two ASTERISK's
> servers. I am writing next:
>
> ------------
>               #skip Invite messages generated by the server
>        if(is_method("INVITE") && !(src_ip=="10.130.0.140"))
>             {
>                 load_balance("1","pstn");
>                 b2b_init_request("top hiding");
>                exit;
>        };
> --------------
> but without success. (
>
> ASTERISK gives me error "404 Not Found". Because of that:
> At trace messages i see that $du="sip:10.130.0.136" but it should be
> "sip:##[email protected]"
>
> So my question is: where i have to change $du? I tried to change it
> (using rewriteuri("sip:##[email protected]:5060")        and
> rewritehostport("sip:##[email protected]:5060"))
>
>  in local_route and right after load_balance function but i didnt get
> correct fucntionality.
> Any help is welcome.  thanks
>
> --
> View this message in context:
> http://opensips-open-sip-server.1449251.n2.nabble.com/top-hiding-and-BYE-problem-tp6594249p6598273.html
> Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to