Hi,<br>
i have found the solution:<br>
<br>
if (method == &quot;INVITE&quot;) {<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (uri =~ &quot;^sip:*&quot;){<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rewritehost(&quot;<a href="http://192.168.4.66">192.168.4.66</a>&quot;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
t_relay_to_udp( &quot;<a href="http://192.168.4.66">192.168.4.66</a>&quot;, &quot;5060&quot;);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
break;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&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; };<br>
<br>
&nbsp;&nbsp;&nbsp; if (method == &quot;CANCEL&quot; || method == &quot;BYE&quot;) {<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (uri =~ &quot;^sip:*&quot;){<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; forward( <a href="http://192.168.4.66">192.168.4.66</a> , 5060 );&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br>
<br>
&nbsp;&nbsp;&nbsp; if (method == &quot;ACK&quot;){<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (uri =~ &quot;^sip:*&quot;){<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rewritehost(&quot;<a href="http://192.168.4.66">192.168.4.66</a>&quot;);<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br>
<br>
thank you any way and hope that this will help<br><br><div><span class="gmail_quote">2007/1/25, karim basraoui &lt;<a href="mailto:basraouik@gmail.com">basraouik@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>The topic may have been already discussed, but still there are some problems.<br><br>I have an architecture like this : <br><br>UA1 -&gt;SER -&gt; ASTERISK -&gt; UA2<br><br>when
UA1 sends an INVITE to UA2, SER forwards the call to ASTERISK, i can
hear UA2 ringing. however, when UA2 answers, i can see &quot;connected&quot; on
UA1 but UA2 hungs up by itself, as if ASTERISK cancels the call.
<br><br>is there any solution to oblige ASTERISK to forward the &quot;200 OK&quot; to SER?<br><br>thanks in advance<br>-- <br><span class="sg">BASRAOUI Karim

</span></blockquote></div><br><br clear="all"><br>-- <br>BASRAOUI Karim