Hi,
I compiled pjsip on my Debian Stretch virtual machine (it's a virtual machine without any soundcard) and I tried to make a simple call using the command
/usr/local/bin/pjsua --config-file=pjsua.conf sip:01234567@xxxxxxx.local
and it works.
But if I try to play an audio file the call does not start and I receive the following error:
pjsua_aud.c .Unable to open file for playback: Unsupported WAVE file format (PJMEDIA_EWAVEUNSUPP) [status=220181]
Below there is the full output with the full executed command:
/usr/local/bin/pjsua --config-file pjsua.conf --play-file /tmp/alert.wav --auto-play --duration 20 --max-calls 1 sip:01234567
18:53:33.389 os_core_unix.c !pjlib 2.8 for POSIX initialized
18:53:33.390 sip_endpoint.c .Creating endpoint instance...
18:53:33.390 pjlib .select() I/O Queue created (0x55e9fcb7eba0)
18:53:33.390 sip_endpoint.c .Module "mod-msg-print" registered
18:53:33.390 sip_transport.c .Transport manager created.
18:53:33.391 pjsua_core.c .PJSUA state changed: NULL --> CREATED
18:53:33.391 sip_endpoint.c .Module "mod-pjsua-log" registered
18:53:33.391 sip_endpoint.c .Module "mod-tsx-layer" registered
18:53:33.391 sip_endpoint.c .Module "mod-stateful-util" registered
18:53:33.391 sip_endpoint.c .Module "mod-ua" registered
18:53:33.391 sip_endpoint.c .Module "mod-100rel" registered
18:53:33.391 sip_endpoint.c .Module "mod-pjsua" registered
18:53:33.391 sip_endpoint.c .Module "mod-invite" registered
18:53:33.392 pjlib ..select() I/O Queue created (0x55e9fcb8d088)
18:53:33.398 sip_endpoint.c .Module "mod-evsub" registered
18:53:33.398 sip_endpoint.c .Module "mod-presence" registered
18:53:33.398 sip_endpoint.c .Module "mod-mwi" registered
18:53:33.398 sip_endpoint.c .Module "mod-refer" registered
18:53:33.398 sip_endpoint.c .Module "mod-pjsua-pres" registered
18:53:33.398 sip_endpoint.c .Module "mod-pjsua-im" registered
18:53:33.398 sip_endpoint.c .Module "mod-pjsua-options" registered
18:53:33.398 pjsua_core.c .1 SIP worker threads created
18:53:33.398 pjsua_core.c .pjsua version 2.8 for Linux-4.9.0.7/x86_64/glibc-2.24 initialized
18:53:33.398 pjsua_core.c .PJSUA state changed: CREATED --> INIT
18:53:33.398 sip_endpoint.c Module "mod-default-handler" registered
18:53:33.398 pjsua_aud.c Creating file player: /tmp/alert.wav..
18:53:33.398 pjsua_aud.c .Unable to open file for playback: Unsupported WAVE file format (PJMEDIA_EWAVEUNSUPP) [status=220181]
18:53:33.398 pjsua_core.c Shutting down, flags=0...
18:53:33.398 pjsua_core.c PJSUA state changed: INIT --> CLOSING
18:53:33.409 pjsua_call.c .Hangup all calls..
18:53:33.409 pjsua_media.c .Call 0: deinitializing media..
18:53:33.409 pjsua_pres.c .Shutting down presence..
18:53:34.412 pjsua_core.c .Destroying...
18:53:34.412 pjsua_media.c .Shutting down media..
18:53:34.893 sip_transaction.c .Stopping transaction layer module
18:53:34.893 sip_transaction.c .Stopped transaction layer module
18:53:34.894 sip_endpoint.c .Module "mod-default-handler" unregistered
18:53:34.894 sip_endpoint.c .Module "mod-pjsua-options" unregistered
18:53:34.894 sip_endpoint.c .Module "mod-pjsua-im" unregistered
18:53:34.894 sip_endpoint.c .Module "mod-pjsua-pres" unregistered
18:53:34.894 sip_endpoint.c .Module "mod-pjsua" unregistered
18:53:34.894 sip_endpoint.c .Module "mod-stateful-util" unregistered
18:53:34.894 sip_endpoint.c .Module "mod-refer" unregistered
18:53:34.894 sip_endpoint.c .Module "mod-mwi" unregistered
18:53:34.894 sip_endpoint.c .Module "mod-presence" unregistered
18:53:34.894 sip_endpoint.c .Module "mod-evsub" unregistered
18:53:34.894 sip_endpoint.c .Module "mod-invite" unregistered
18:53:34.894 sip_endpoint.c .Module "mod-100rel" unregistered
18:53:34.894 sip_endpoint.c .Module "mod-ua" unregistered
18:53:34.894 sip_transaction.c .Transaction layer module destroyed
18:53:34.894 sip_endpoint.c .Module "mod-tsx-layer" unregistered
18:53:34.894 sip_endpoint.c .Module "mod-msg-print" unregistered
18:53:34.894 sip_endpoint.c .Module "mod-pjsua-log" unregistered
18:53:34.894 sip_endpoint.c .Endpoint 0x55e9fcb73e08 destroyed
18:53:34.894 pjsua_core.c .PJSUA state changed: CLOSING --> NULL
18:53:34.894 pjsua_core.c .PJSUA destroyed...
Could you help me to find out where I am wrong, please?
Thank you very much!
Bye
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org