Hi, Please try to replace pjsua_set_no_snd_dev() with pjsua_set_null_snd_dev(), actually both will call pjmedia_snd_stream_close(), the difference is the latter will replace sound device with master port. Regards, nanang On Wed, Nov 12, 2008 at 3:04 AM, samuel.vinson <samuelv at laposte.net> wrote: > Hi, > > On iPhone, the GSM function has more priority than the other fucntions. So > when I receive a call, the application is suspended and resumed if the user > declines the call. In these steps the sound must be stopped and restarted. > > With pjsip, I tried the solutions below but the result is not good :-( > > Could you tell me if my solution is correct: > - to suspend : pjsua_set_no_snd_dev > - to resume : pjsua_set_snd_dev > > Before, I tried this > - to suspend: pjmedia_snd_stream_stop, pjmedia_snd_stream_close > - to resume : pjmedia_snd_open, pjmedia_snd_stream_start, > But in my media implementation, I don't have stream information when I need > to stop media stream. > And the stream parameter of pjmedia_snd_open will be defined out of pjsua > functions. > > Samuel > > Cr?ez votre adresse ?lectronique prenom.nom at laposte.net > 1 Go d'espace de stockage, anti-spam et anti-virus int?gr?s. > > _______________________________________________ > 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 > >