Hello,<br><br>In openser.cfg:<br>modparam(&quot;rr&quot;, &quot;enable_full_lr&quot;, 1)<br>modparam(&quot;rr&quot;, &quot;append_fromtag&quot;, 1)<br><br>if (!method==&quot;REGISTER&quot;){<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; record_route();
<br>};<br><br>if (loose_route()) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_on_reply(&quot;1&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!t_relay()) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; sl_reply_error();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<br>};<br><br>if (method==&quot;INVITE&quot;){
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ds_select_dst(&quot;2&quot;, &quot;0&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #ds_select_dst(&quot;2&quot;, &quot;4&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #sl_send_reply(&quot;100&quot;,&quot;Trying&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; forward();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; exit;<br>};<br><br>When I make a call from Sip client registed with openser to PSTN through asterisk-b2bua, openser transfer Invite and 200&nbsp; messages between Sip client and asterisk-b2bua ok. But when sip client or pstn side&nbsp; hang-up openser do not forward BYE message to the correct destination (forward BYE to asterisk-b2bua or to sip client), therefore the call on other side do not disconnect.
<br>Where is incorrect in openser.cfg?<br><br>Thanks and best regards<br><br><div><span class="gmail_quote">On 7/18/07, <b class="gmail_sendername">Daniel-Constantin Mierla</b> &lt;<a href="mailto:daniel@voice-system.ro">
daniel@voice-system.ro</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br><br>use record routing (see rr module) to ensure the right path of in-dialog
<br>requests.<br><br>Cheers.<br>Daniel<br><br><br>On 07/17/07 05:19, Ha Noi Telecommunications wrote:<br>&gt; Hi!<br>&gt;<br>&gt; I am using OpenSer with two Asterisk-b2bua<br>&gt;<br>&gt; Sip<br>&gt; client&lt;---------&gt;OpenSer&lt;---------------------&gt;Asterisk-b2bua&lt;-------&gt;PSTN
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<br>&gt;<br>&gt; &lt;-----------------------------&gt;Asterisk-b2bua&lt;-----------&gt;PSTN<br>&gt;<br>&gt; In OpenSer configure file&nbsp;&nbsp;I am using&nbsp;&nbsp;ds_select_dst(&quot;2&quot;, &quot;4&quot;); to
<br>&gt; perform load sharing the calls to PSTN.<br>&gt; But when Sip client hang up first, I don&#39;t konw how to make OpenSer<br>&gt; forward the Bye message from Sip client to correct Asterisk-b2bua to<br>&gt; hang up the call at PSTN side.
<br>&gt;<br>&gt; Can any body can help me.<br>&gt;<br>&gt; Thanks and best regards<br>&gt;<br>&gt; ------------------------------------------------------------------------<br>&gt;<br>&gt; _______________________________________________
<br>&gt; Users mailing list<br>&gt; <a href="mailto:Users@openser.org">Users@openser.org</a><br>&gt; <a href="http://openser.org/cgi-bin/mailman/listinfo/users">http://openser.org/cgi-bin/mailman/listinfo/users</a><br>&gt;
<br></blockquote></div><br>