Hi,<br><br>A first observation is that setting a user part in $du doesn't have any effect. In those ifs you should have set the $ru.<br>Concerning the 200 OK that you said are not passed to PSTN, I suggest you to check the OpenSIPS log to see if there is any error when processing the 200 OK. And also you can check if there isn't like a race and a BYE is received from Asterisk almost in the same time or before so that the b2b considers the dialog ended. Watch closely the message trace.<br>
<br>Regards,<br>Anca Vamanu<br><br><div class="gmail_quote">On Wed, Jul 20, 2011 at 2:00 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;">
Hello! thanks for you replay!<br>
I did what you been telling me to do. But there is another issue:<br>
OPENSIPS keep receving "ok 200" replyes from ASTERISK server (that has been<br>
selected vai LB) and doesnt try send it to PSTN. I think there is one more<br>
little issue that i cant even think off. for any case i put cfg file. thank<br>
you very much.<br>
<br>
route<br>
{<br>
<div class="im"> if (!method=="REGISTER")<br>
{<br>
xlog("+++++++++Recording route...\n");<br>
record_route();<br>
}<br>
<br>
if (loose_route())<br>
{<br>
append_hf("P-hint: rr-enforced\r\n");<br>
}<br>
<br>
</div><div class="im"> #skip Invite messages generated by the server<br>
if(is_method("INVITE") && !(src_ip=="10.130.0.140"))<br>
{<br>
load_balance("1","pstn");<br>
</div> xlog("\n\nPROXY 3: Selected dst: $du\n");<br>
<br>
#have $du -> sip:10.130.0.137<br>
#$du need to be -> sip:##<a href="mailto:0950@10.130.0.137">0950@10.130.0.137</a><br>
<br>
if($du=="sip:10.130.0.137")<br>
{<br>
xlog("\n this is 137\n");<br>
$du="sip:##<a href="http://0950@10.130.0.137:5060" target="_blank">0950@10.130.0.137:5060</a>";<br>
}<br>
<br>
if($du=="sip:10.130.0.136")<br>
{<br>
xlog("\n this is 136\n");<br>
$du="sip:##<a href="http://0950@10.130.0.136:5060" target="_blank">0950@10.130.0.136:5060</a>";<br>
<div class="im"> }<br>
b2b_init_request("top hiding");<br>
exit;<br>
};<br>
}<br>
<br>
<br>
<br>
<br>
--<br>
</div>View this message in context: <a href="http://opensips-open-sip-server.1449251.n2.nabble.com/top-hiding-and-BYE-problem-tp6594249p6602208.html" target="_blank">http://opensips-open-sip-server.1449251.n2.nabble.com/top-hiding-and-BYE-problem-tp6594249p6602208.html</a><br>
<div><div></div><div class="h5">Sent from the OpenSIPS - Users mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
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>