Hi, Just want to add what Gang Liu's has said. Please make sure you have a working sound device, you can check it with sndinfo & sndtest in the pjsip-apps/src/samples directory. Playing a busy tone when a call fails may be achieved with the similar idea of how pjsua's ringback works, you need a port to supply the busy tone (it can be a file or tonegen port) and just connect this port to sound device port when a call fails. Regards, nanang On Thu, Oct 9, 2008 at 11:56 AM, Gang Liu <gangban.lau at gmail.com> wrote: > try run sndinfo sample program of pjsip to list your sound device first. > > regards, > Gang > > On Thu, Oct 9, 2008 at 4:27 AM, Murilo Ito <murilo.ito at gmail.com> wrote: >> >> Hello, >> >> I'm trying to play a wav file direct to device sound based on sample >> "Playing WAV File to Sound Device" from PJMEDIA documentation. I'm having >> trouble calling "pjsua_set_snd_dev()" and >> "pjmedia_snd_port_create_player()". >> >> If I call pjsua_set_snd_dev, pjmedia_snd_port_create_player fails. >> >> Any ideias? >> >> I wanna play, for example, a busy tone when a call fails. Exist another >> way? >> >> Tks for help. >> >> Murilo Ito. >> >> _______________________________________________ >> 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 > >