[OpenSIPS-Users] top hiding and BYE problem

Anca Vamanu anca.vamanu at gmail.com
Tue Jul 19 13:07:15 CEST 2011


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 <ukhov at ycc.ru> 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:##999 at 10.130.0.136"
>
> So my question is: where i have to change $du? I tried to change it
> (using rewriteuri("sip:##0950 at 10.130.0.136:5060")        and
> rewritehostport("sip:##0950 at 10.130.0.136: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
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110719/2f3f16ba/attachment.htm>


More information about the Users mailing list