for the record (and the archive). The problem is located. *stupid me* didn't use a transaction forward. I now use t_relay to go to my asterisk, and the reply is recognised<br><br>arne<br><br><br><div><span class="gmail_quote">
2006/9/21, Arne Van Theemsche &lt;<a href="mailto:arnevt@gmail.com">arnevt@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>my users subscribe with openser, en asterisk is used as connectivity to pstn<br><br>i am now installing a mediaproxy, for all users, so every call goes via a mediaproxy.<br><br>I'm doing this as follows (relevant statements only)
<br><br>in route<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #I installed the t_on_reply here to be sure that every reply gets parsed, but normally in the INVITE section should be enough?<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t_on_reply(&quot;1&quot;);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (method==INVITE) {
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; use_media_proxy();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br><br><br>onreply_route[1] {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log(-3,&quot;reply received&quot;);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!search(&quot;^Content-Length:[ ]*0&quot;)) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; log(-3,&quot;using mediaproxy&quot;);
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; use_media_proxy();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; };<br>}<br><br><br>the weird is, for all local users, this works fine, but as soon as asterisk is involved, the reply doesn't get triggered (not seeing the &quot;reply received&quot; either, only when disconnecting the call). The call get's established fine, asterisk is sending media to the mediaproxy, but&nbsp; the SDP towards the calling phone is not modified (since the onreply isn't triggered)
<br><br>am I missing something here?<br><br>thanks<br><span class="sg">Arne<br><br>

</span></blockquote></div><br>