<div dir="ltr">Thanks Olle. I know it's like asking MySQL to implement a picture filter .. :-)  but I am still wondering in what scenario do we use the following two functions from the rtpproxy module:<div><br></div><div>
rtpproxy_stream2uac(prompt_name, count),<br><div><div>rtpproxy_stop_stream2uac()</div></div><div><br></div><div>I am using the latest kamailio 4.0.3 and rtpproxy is running on the same machine and have encoded the voice prompt using makeann that comes with the rtpproxy.</div>
<div><br></div><div>Would it playback the prompt as early media if kamailio on receiving the INVITE from the phone, replies with 183 Ringing with some manually crafted suitable sdp attached, can I then use some the above functions to playback the prompt as early media?</div>
<div><div><br></div><div>I know it works with SEMs and others media gws and granted that it is a functionality not expected from a proxy but I am simply interested in answering the question whether it is possible with latest kamailio and rtpproxy and there is no other requirement restricting one when it comes to the configuration. </div>
</div><div><br></div><div>If early media playback is not possible then what are the above rtpproxy functions for?</div><div><br></div><div>/Adnan<br></div><div><br></div><div class="gmail_extra"><div class="gmail_quote">On Sat, Aug 17, 2013 at 12:27 PM, Olle E. Johansson <span dir="ltr"><<a href="mailto:oej@edvina.net" target="_blank">oej@edvina.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="word-wrap:break-word"><br><div><div>16 aug 2013 kl. 16:48 skrev Adnan <112linuxstockholm@<a href="http://gmail.com" target="_blank">gmail.com</a>>:</div>
<div><div class="h5"><br><blockquote type="cite"><div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I know that this is not the purpose of the proxy but there is a situation in which our kamailio needs to playback early media for a small number of calls.<br>
<br>
</div>Which module will be most suitable for this?<br></div><br><br></div>One way is to use rtpproxy and just functions such as<code>rtpproxy_stream2... to play back the prompts to the caller. <br>
<br>Note that the caller is not behind NAT or behind any symmetric firewall. So we a free to choose.<br><br></code></div><code>We know we could do it easily by dispatching to asterisk where we use the Progress() app or similar for freeswitch but we don't want add the overhead of a new media server installation and configuration.<br>

<br></code></div><div><code>We need a kamailio based one box solution.<br></code></div><div><br></div></div></blockquote></div></div>Then you have to write your own module, since Kamailio by design does not handle media. Period.</div>
<div><br></div><div>It's like asking MySQL to implement a picture filter for filters stored in the database, it's just not in the design. Kamailio is a SIP server that works with many media servers, but it's not a media server.</div>
<div><br></div><div>Having said that you can propably fake a 183 and have a media server like SEMS do it, but adding Asterisk is pretty much the same.</div><span class=""><font color="#888888"><div><br></div><div>/O</div>
<br></font></span></div><br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br></div></div></div>