Hi,<br>
i have found the solution:<br>
<br>
if (method == "INVITE") {<br>
if (uri =~ "^sip:*"){<br>
rewritehost("<a href="http://192.168.4.66">192.168.4.66</a>");<br>
t_relay_to_udp( "<a href="http://192.168.4.66">192.168.4.66</a>", "5060");<br>
break;<br>
}<br>
};<br>
<br>
if (method == "CANCEL" || method == "BYE") {<br>
if (uri =~ "^sip:*"){<br>
forward( <a href="http://192.168.4.66">192.168.4.66</a> , 5060 ); <br>
}<br>
};<br>
<br>
if (method == "ACK"){<br>
if (uri =~ "^sip:*"){<br>
rewritehost("<a href="http://192.168.4.66">192.168.4.66</a>");<br>
}<br>
};<br>
<br>
thank you any way and hope that this will help<br><br><div><span class="gmail_quote">2007/1/25, karim basraoui <<a href="mailto:basraouik@gmail.com">basraouik@gmail.com</a>>:</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 ->SER -> ASTERISK -> 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 "connected" 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 "200 OK" 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