Hello Mr. Gecko, first of all, thank you very much for your prompt response. I had the suspicion that something like that (https://github.com/GRMrGecko/VoiceMac/blob/master/Classes/VoiceBase/SIP/MGMSIPCall.m) needs to be done. - I was (and still am) not sure about the exact semantics of pjsua_call_set_hold(), though. The reference manual is not very verbose on this either. - Do you have any insight with respect to the semantics and overall effects of pjsua_call_set_hold() - respectively: pjsua_call_reinvite() versus: pjsua_conf_disconnect(0, conf_port); pjsua_conf_adjust_rx_level(conf_port, 0); respectively: pjsua_conf_connect(0, conf_port); pjsua_conf_adjust_rx_level(conf_port, previousValue); Also: 1) why do you mute the microphone instead of just disconnecting it as well? 2) I noticed that you do not disconnect the player's conf-port to stop the music - you just pjsua_player_destroy() it. Is this sufficient ? Thank you very much in advance for helping me learn a bit! Cheers, Thomas ps: (The typical scenario for all of this would be, where a second call (either incoming or outgoing) becomes involved and the currently active ("first") call shall be temporarily put on hold.) On Jan 31, 2011, at 12:48 , Mr. Gecko wrote: > 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 > > _______________________________________________ > 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