Im also interested in getting MOH working with just OpenSER.
I was looking at this a while ago and I couldn't see a nice way to do it, Phone A has to basically setup a call between Phone B and your MOH server. Doing this without some sort of custom module would be near impossible (if I get time ill start work on a module but im really not very good!).
If anyone else has tackled this problem or has any info I'd be happy to hear it.
Thanks.
-----Original Message----- From: users-bounces@openser.org [mailto:users-bounces@openser.org] On Behalf Of Iñaki Baz Castillo Sent: 09 July 2007 14:51 To: users@openser.org Subject: [OpenSER-Users] Rewrite SDP for music of hold
Hi, I'm starting using OpenSer with Asterisk.
In calls passing through Asterisk the caller or callee get music on hold of Asterisk when is put on hold. But of course, direct calls between OpenSer users don't get this music.
I'm thinking in the posibility of detecting "on hold" reinvites (maybe reading the "a=sendonly" of SDP body) and rewriting the SDP IP contact to a music on hold server.
I have no idea if this is possible. The first issue is how to set up a RTP music streamer for pointing there the SDP c header. Does "this" RTP music streamer exist? of course Asterisk is not a solution since I don't want to manage INVITE's, just rewrite the SDP.
Second issue is: could be rewriting the SDP always sucessfull? what about cases with more than one RTP session as audio+video?
So, is there any solution for offering music on hold with OpenSer?
Thanks a lot.