trouble with PJMEDIA_EAUD_NODEV under windows

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

 



nanang - thanks very much for the quick response.

I've updated from your latest SVN trunk, and I confirm that the problem is
cured.

    -Shawn Smith

On Tue, Oct 13, 2009 at 4:39 AM, Nanang Izzuddin <nanang at pjsip.org> wrote:

> Hi Shawn,
>
> You're right, just did a quick recheck and found that WMME
> initialization returned PJMEDIA_EAUD_NODEV when no audio device is
> installed.
>
> Also just fixed this in ticket #968.
>
> cheers,
> nanang
>
>
> On Tue, Oct 13, 2009 at 2:53 PM, Benny Prijono <bennylp at teluu.com> wrote:
> > On Tue, Oct 13, 2009 at 1:29 AM, Shawn Smith <shawn.smith at cogi.com>
> wrote:
> >> I am working on getting python pjsua to run on a windows server with no
> >> sound device.
> >>
> >> The following test program works fine on my desktop where I happen to
> have a
> >> soundcard (which is not being used), but fails at the lib.init() before
> I
> >> get a chance to call set_null_snd_dev() on my windows server which has
> no
> >> sound device on it:
> >>
> >>
> >
> > Which pjsip version are you working on? Have you tried with the
> > latest? I haven't tried this myself, but I remember that ticket #768
> > was fixed long time ago.
> >
> > Cheers
> >  Benny
> >
> >
> > ====
> >>
> >> import pjsua as pj
> >> def log_cb(level, str, len):
> >>     print str,
> >> lib = pj.Lib()
> >> uaConfig = pj.UAConfig()
> >> logConfig = pj.LogConfig()
> >> logConfig.callback = log_cb
> >> mediaConfig = pj.MediaConfig()
> >> lib.init(ua_cfg = uaConfig, log_cfg = logConfig, media_cfg =
> mediaConfig)
> >>
> >> lib.set_null_snd_dev()
> >>
> >> lib.start()
> >>
> >> ====
> >>
> >> I've researched the FAQ and the change logs and found the fix which was
> >> applied in:
> >>
> >>     http://trac.pjsip.org/repos/ticket/768
> >>
> >> I have that fix (I'm on r2931), but the above program still fails with
> the
> >> complaint:
> >>
> >> C:\cogi\cogi_pjsip>python testAudioInit.py
> >>  10:41:47.258  pjsua_media.c  Media stack initialization has returned
> error:
> >> Found no audio devices (PJMEDIA_EAUD_NODEV) [status=420005]
> >> Traceback (most recent call last):
> >>   File "testAudioInit.py", line 10, in <module>
> >>     lib.init(ua_cfg = uaConfig, log_cfg = logConfig, media_cfg =
> >> mediaConfig)
> >>   File "C:\cogi\cogi_pjsip\pjsua.py", line 2119, in init
> >>     self._err_check("init()", self, err)
> >>   File "C:\cogi\cogi_pjsip\pjsua.py", line 2611, in _err_check
> >>     raise Error(op_name, obj, err_code, err_msg)
> >>
> >> I have looked at altering endpoint.c to ignore the error return from
> >> pjmedia_aud_subsys_init() but this simply results in a different error.
> >>
> >> Do we have a way to run pjsip under windows with no sound card and use
> the
> >> set_null_snd_dev()?
> >>
> >> Thanks for any assistance.
> >>
> >>     -Shawn Smith
> >>
> >>
> >>
> >> _______________________________________________
> >> 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
> >
>
> _______________________________________________
> 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 --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20091013/344af6d8/attachment.html>


[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