Hi,<br><br>Thanks for your replies. Is it possible to play an audio file in the case of a re-invite directly from kamailio instead of freeswitch by using rtpproxy_stream2uac() or something similar?<br><br>Gautam<br><br><div class="gmail_quote">

On Mon, Dec 12, 2011 at 4:50 AM, Olle E. Johansson <span dir="ltr">&lt;<a href="mailto:oej@edvina.net">oej@edvina.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
12 dec 2011 kl. 10:45 skrev Daniel-Constantin Mierla:<br>
<div class="im"><br>
&gt; Hello,<br>
&gt;<br>
&gt; On 12/9/11 9:04 PM, Gautam Batra wrote:<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; I have a kamailio sip proxy server with freeswitch acting as SBC. I want to redirect the call to freeswitch when hold is pressed so that i can play music on hold. I tried this by using rewritehostport in case of a re-invite, but the call drops in that case. Could someone please help me with this?<br>


&gt; it is not possible to redirect established calls (it breaks the RFC3261), you have to route the call through freeswitch from its start. Perhaps you can use freeswitch without relaying the media in first place and when you have on hold, you set media patch to go through freeswitch.<br>


</div>The only solution is having FreeSwitch send an invite with replaces to grab the call. The question is how to get it back.<br>
<span class="HOEnZb"><font color="#888888"><br>
/O<br>
<br>
</font></span></blockquote></div><br>