On Fri, Aug 20, 2010 at 4:51 PM, Jun Cui <Jun.Cui at optimobile.se> wrote: > Hi guys, > > > > Does anyone know how to release sound device on symbian platform, I use VAS. > > > > Here is the scenario: > > > > I have implemented a sip application using pjsip. When I have one VoIP call > on hold and then a normal GSM call is incoming, I want device to play the > profile?s ring tone. I find if I can release sound device, the phone will > play the ring tone correctly. I try to use pjsua_set_null_snd_dev to release > the sound device, but get error message > > > > pjsua_media.c? Unable to create null sound device: Unknown pjlib error 70012 > [status=70012]. > > > > Error 70012 means PJ_ENOTSUP--The specified option is not supported. > > > > Dose anyone know how to use pjsua_set_null_snd_dev API. Should I call some > other function before call it? > The null sound device needs thread, which is not implemented on Symbian. The sound device should be closed automatically if nothing is using it. See pjsua_media_config.snd_auto_close_time for more info. -benny