Hi again,<br><br>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.<br>
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.<br>
<br>Regards,<br>Anca <br><br><br><div class="gmail_quote">On Tue, Jul 19, 2011 at 1:34 PM, saneku <span dir="ltr"><<a href="mailto:ukhov@ycc.ru">ukhov@ycc.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Thanks! you have saved my head from beeing broken.<br>
But now i trying to add load balance functionality between two ASTERISK's<br>
servers. I am writing next:<br>
<br>
------------<br>
<div class="im"> #skip Invite messages generated by the server<br>
if(is_method("INVITE") && !(src_ip=="10.130.0.140"))<br>
{<br>
</div> load_balance("1","pstn");<br>
<div class="im"> b2b_init_request("top hiding");<br>
exit;<br>
};<br>
</div>--------------<br>
but without success. (<br>
<br>
ASTERISK gives me error "404 Not Found". Because of that:<br>
At trace messages i see that $du="sip:10.130.0.136" but it should be<br>
"sip:##<a href="mailto:999@10.130.0.136">999@10.130.0.136</a>"<br>
<br>
So my question is: where i have to change $du? I tried to change it<br>
(using rewriteuri("sip:##<a href="http://0950@10.130.0.136:5060" target="_blank">0950@10.130.0.136:5060</a>") and<br>
rewritehostport("sip:##<a href="http://0950@10.130.0.136:5060" target="_blank">0950@10.130.0.136:5060</a>"))<br>
<br>
in local_route and right after load_balance function but i didnt get<br>
correct fucntionality.<br>
Any help is welcome. thanks<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/top-hiding-and-BYE-problem-tp6594249p6598273.html" target="_blank">http://opensips-open-sip-server.1449251.n2.nabble.com/top-hiding-and-BYE-problem-tp6594249p6598273.html</a><br>
</font><div class="im">Sent from the OpenSIPS - Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>