music on hold

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Just disconnect the call from the speakers and turn down the volume of the microphone and then play the music.

I have done this at https://github.com/GRMrGecko/VoiceMac/blob/master/Classes/VoiceBase/SIP/MGMSIPCall.m

On Jan 31, 2011, at 8:38 AM, Thomas Martin wrote:

> Hello Everybody,
> 
> I would like to play a wav-file to a caller once he was put "on-hold" with pjsua_call_set_hold(callID, NULL). 
> 
> For that purpose I created a player with pjsua_player_create() and connected it's conf-port to the one of the holding call (as a response to the triggered on_call_media_state() callback). 
> 
> Unfortunately, this does not work - the file is not heard by the holding caller. However, the player-mechanism works fine - that is verified: The wav-file can be heard beautifully by the caller, when the call is not on hold. 
> 
> What is the suggested approach to implement music-on-hold with pjsua?
> 
> Thank you very much in advance!
> 
> Cheers,
> 
> -Thomas
> _______________________________________________
> Visit our blog: http://blog.pjsip.org
> 
> pjsip mailing list
> pjsip at lists.pjsip.org
> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4657 bytes
Desc: not available
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20110131/cbac8cd5/attachment.p7s>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux