Simplecall.py with no audio device?

BH
Benjamin Henrion
Wed, Oct 10, 2012 8:14 AM

Hi,

I want to make a simple call, but on a server machine that has no
/dev/dsp. Any idea how to set NO AUDIO DEVICE in python that in
simplecall.py?

http://trac.pjsip.org/repos/wiki/Python_SIP/Hello_World

  • 10:00 zoobab@mybox ~% python simplecall.py sip:xxx@192.168.0.1:5060
    10:00:29.411 os_core_unix.c  pjlib 1.12.0 for POSIX initialized
    10:00:29.412 sip_endpoint.c  Creating endpoint instance...
    10:00:29.412          pjlib  epoll I/O Queue created (0x197d200)
    10:00:29.412 sip_endpoint.c  Module "mod-msg-print" registered
    10:00:29.412 sip_transport.  Transport manager created.
    10:00:29.425  pjsua_core.c  pjsua version 1.12.0 for
    Linux-2.6.32/x86_64/glibc-2.15 initialized
    10:00:29.426  pjsua_media.c  Error retrieving default audio device
    parameters: Unable to find default audio device
    (PJMEDIA_EAUD_NODEFDEV) [status=420006]
    Exception: Object: {Account sip:80.65.132.180:39113},
    operation=make_call(), error=Unable to find default audio device
    (PJMEDIA_EAUD_NODEFDEV)

--
Benjamin Henrion <bhenrion at ffii.org>
FFII Brussels - +32-484-566109 - +32-2-3500762
"In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators."

Hi, I want to make a simple call, but on a server machine that has no /dev/dsp. Any idea how to set NO AUDIO DEVICE in python that in simplecall.py? http://trac.pjsip.org/repos/wiki/Python_SIP/Hello_World * 10:00 zoobab@mybox ~% python simplecall.py sip:xxx@192.168.0.1:5060 10:00:29.411 os_core_unix.c pjlib 1.12.0 for POSIX initialized 10:00:29.412 sip_endpoint.c Creating endpoint instance... 10:00:29.412 pjlib epoll I/O Queue created (0x197d200) 10:00:29.412 sip_endpoint.c Module "mod-msg-print" registered 10:00:29.412 sip_transport. Transport manager created. 10:00:29.425 pjsua_core.c pjsua version 1.12.0 for Linux-2.6.32/x86_64/glibc-2.15 initialized 10:00:29.426 pjsua_media.c Error retrieving default audio device parameters: Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV) [status=420006] Exception: Object: {Account <sip:80.65.132.180:39113>}, operation=make_call(), error=Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV) -- Benjamin Henrion <bhenrion at ffii.org> FFII Brussels - +32-484-566109 - +32-2-3500762 "In July 2005, after several failed attempts to legalise software patents in Europe, the patent establishment changed its strategy. Instead of explicitly seeking to sanction the patentability of software, they are now seeking to create a central European patent court, which would establish and enforce patentability rules in their favor, without any possibility of correction by competing courts or democratically elected legislators."
JJ
Jens Jorgensen
Wed, Oct 10, 2012 8:29 AM

lib = pj.Lib()
lib.init(log_cfg = pj.LogConfig())
lib.set_null_snd_dev()

On 10/10/12 4:14 PM, Benjamin Henrion wrote:

Hi,

I want to make a simple call, but on a server machine that has no
/dev/dsp. Any idea how to set NO AUDIO DEVICE in python that in
simplecall.py?

http://trac.pjsip.org/repos/wiki/Python_SIP/Hello_World

  • 10:00 zoobab@mybox ~% python simplecall.py sip:xxx@192.168.0.1:5060
    10:00:29.411 os_core_unix.c  pjlib 1.12.0 for POSIX initialized
    10:00:29.412 sip_endpoint.c  Creating endpoint instance...
    10:00:29.412          pjlib  epoll I/O Queue created (0x197d200)
    10:00:29.412 sip_endpoint.c  Module "mod-msg-print" registered
    10:00:29.412 sip_transport.  Transport manager created.
    10:00:29.425  pjsua_core.c  pjsua version 1.12.0 for
    Linux-2.6.32/x86_64/glibc-2.15 initialized
    10:00:29.426  pjsua_media.c  Error retrieving default audio device
    parameters: Unable to find default audio device
    (PJMEDIA_EAUD_NODEFDEV) [status=420006]
    Exception: Object: {Account sip:80.65.132.180:39113},
    operation=make_call(), error=Unable to find default audio device
    (PJMEDIA_EAUD_NODEFDEV)

--
Benjamin Henrion <bhenrion at ffii.org>
FFII Brussels - +32-484-566109 - +32-2-3500762
"In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators."


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

--
Jens B. Jorgensen
jbj1@ultraemail.net

lib = pj.Lib() lib.init(log_cfg = pj.LogConfig()) lib.set_null_snd_dev() On 10/10/12 4:14 PM, Benjamin Henrion wrote: > Hi, > > I want to make a simple call, but on a server machine that has no > /dev/dsp. Any idea how to set NO AUDIO DEVICE in python that in > simplecall.py? > > http://trac.pjsip.org/repos/wiki/Python_SIP/Hello_World > > * 10:00 zoobab@mybox ~% python simplecall.py sip:xxx@192.168.0.1:5060 > 10:00:29.411 os_core_unix.c pjlib 1.12.0 for POSIX initialized > 10:00:29.412 sip_endpoint.c Creating endpoint instance... > 10:00:29.412 pjlib epoll I/O Queue created (0x197d200) > 10:00:29.412 sip_endpoint.c Module "mod-msg-print" registered > 10:00:29.412 sip_transport. Transport manager created. > 10:00:29.425 pjsua_core.c pjsua version 1.12.0 for > Linux-2.6.32/x86_64/glibc-2.15 initialized > 10:00:29.426 pjsua_media.c Error retrieving default audio device > parameters: Unable to find default audio device > (PJMEDIA_EAUD_NODEFDEV) [status=420006] > Exception: Object: {Account <sip:80.65.132.180:39113>}, > operation=make_call(), error=Unable to find default audio device > (PJMEDIA_EAUD_NODEFDEV) > > -- > Benjamin Henrion <bhenrion at ffii.org> > FFII Brussels - +32-484-566109 - +32-2-3500762 > "In July 2005, after several failed attempts to legalise software > patents in Europe, the patent establishment changed its strategy. > Instead of explicitly seeking to sanction the patentability of > software, they are now seeking to create a central European patent > court, which would establish and enforce patentability rules in their > favor, without any possibility of correction by competing courts or > democratically elected legislators." > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org -- Jens B. Jorgensen jbj1@ultraemail.net