Hi,<br><br>A first observation is that setting a user part in $du doesn&#39;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&#39;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">&lt;<a href="mailto:ukhov@ycc.ru">ukhov@ycc.ru</a>&gt;</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 &quot;ok 200&quot; 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==&quot;REGISTER&quot;)<br>
        {<br>
                        xlog(&quot;+++++++++Recording route...\n&quot;);<br>
                        record_route();<br>
        }<br>
<br>
        if (loose_route())<br>
        {<br>
                               append_hf(&quot;P-hint: rr-enforced\r\n&quot;);<br>
        }<br>
<br>
</div><div class="im">              #skip Invite messages generated by the server<br>
        if(is_method(&quot;INVITE&quot;) &amp;&amp; !(src_ip==&quot;10.130.0.140&quot;))<br>
        {<br>
                load_balance(&quot;1&quot;,&quot;pstn&quot;);<br>
</div>                xlog(&quot;\n\nPROXY 3: Selected dst: $du\n&quot;);<br>
<br>
                #have $du           -&gt; sip:10.130.0.137<br>
                #$du need to be -&gt; sip:##<a href="mailto:0950@10.130.0.137">0950@10.130.0.137</a><br>
<br>
                if($du==&quot;sip:10.130.0.137&quot;)<br>
                {<br>
                        xlog(&quot;\n this is 137\n&quot;);<br>
                        $du=&quot;sip:##<a href="http://0950@10.130.0.137:5060" target="_blank">0950@10.130.0.137:5060</a>&quot;;<br>
                }<br>
<br>
                if($du==&quot;sip:10.130.0.136&quot;)<br>
                {<br>
                        xlog(&quot;\n this is 136\n&quot;);<br>
                        $du=&quot;sip:##<a href="http://0950@10.130.0.136:5060" target="_blank">0950@10.130.0.136:5060</a>&quot;;<br>
<div class="im">                }<br>
                b2b_init_request(&quot;top hiding&quot;);<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>