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>Arne<br><br>