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:

rtpproxy_stream2uac(prompt_name, count),
rtpproxy_stop_stream2uac()

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.

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?

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. 

If early media playback is not possible then what are the above rtpproxy functions for?

/Adnan

On Sat, Aug 17, 2013 at 12:27 PM, Olle E. Johansson <oej@edvina.net> wrote:

16 aug 2013 kl. 16:48 skrev Adnan <112linuxstockholm@gmail.com>:

Hi,

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.

Which module will be most suitable for this?


One way is to use rtpproxy and just functions such asrtpproxy_stream2... to play back the prompts to the caller.

Note that the caller is not behind NAT or behind any symmetric firewall. So we a free to choose.

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.

We need a kamailio based one box solution.

Then you have to write your own module, since Kamailio by design does not handle media. Period.

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.

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.

/O


_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users