Hey, im getting the following error when i try to make a call: "pjsua_call_make_call(acc.getId(), &pj_dst_uri, param.p_opt, this, param.p_msg_data, &id) error: Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV) (status=420006) [../src/pjsua2/call.cpp:490]” I read some other posts on the mailing list but could not get it to work…i compiled my pjlib with libasound-dev support and when i iterate over the available audio devices in the pjlib: uint8_t devices = ep.audDevManager().getDevCount(); qDebug() << "Audio Devices available: " << devices; for( int i=0;i<devices;i++){ AudioDevInfo info = ep.audDevManager().getDevInfo(i); qDebug() << "Device [" << i << "] " << QString::fromStdString(info.name); } Im getting the following list: Device [ 0 ] "default:CARD=ALSA" Device [ 1 ] "sysdefault:CARD=ALSA" Device [ 2 ] "dmix:CARD=ALSA,DEV=0" Device [ 3 ] "dmix:CARD=ALSA,DEV=1" Device [ 4 ] "hw:CARD=ALSA,DEV=0" Device [ 5 ] "hw:CARD=ALSA,DEV=1" Device [ 6 ] "plughw:CARD=ALSA,DEV=0" Device [ 7 ] "plughw:CARD=ALSA,DEV=1” can someone here help me please to figure out how i can fix the missing default audio device in the pjlb? When i run `aplay sample.wav` im getting the correct audio output. But in my pjlib test program it just not works :( PS: Again like in my last post im getting the warning: WARNING: no real random source present! any idea about that? Here is the complete log output: WARNING: no real random source present! Codec: "G722/16000/1" prio: 128 Codec: "PCMA/8000/1" prio: 0 Codec: "PCMU/8000/1" prio: 0 Codec: "GSM/8000/1" prio: 0 Codec: "iLBC/8000/1" prio: 0 Codec: "speex/32000/1" prio: 0 Codec: "speex/8000/1" prio: 0 Codec: "speex/16000/1" prio: 0 Codec: "L16/44100/1" prio: 0 Codec: "L16/44100/2" prio: 0 Codec: "L16/8000/1" prio: 0 Codec: "L16/8000/2" prio: 0 Codec: "L16/16000/1" prio: 0 Codec: "L16/16000/2" prio: 0 Audio Devices available: 8 Device [ 0 ] "default:CARD=ALSA" Device [ 1 ] "sysdefault:CARD=ALSA" Device [ 2 ] "dmix:CARD=ALSA,DEV=0" Device [ 3 ] "dmix:CARD=ALSA,DEV=1" Device [ 4 ] "hw:CARD=ALSA,DEV=0" Device [ 5 ] "hw:CARD=ALSA,DEV=1" Device [ 6 ] "plughw:CARD=ALSA,DEV=0" Device [ 7 ] "plughw:CARD=ALSA,DEV=1" *** PJSUA2 STARTED *** 19:39:33.014 os_core_unix.c !pjlib 2.6 for POSIX initialized 19:39:33.016 sip_endpoint.c .Creating endpoint instance... 19:39:33.016 pjlib .select() I/O Queue created (0x58c138) 19:39:33.016 sip_endpoint.c .Module "mod-msg-print" registered 19:39:33.016 sip_transport. .Transport manager created. 19:39:33.016 pjsua_core.c .PJSUA state changed: NULL --> CREATED 19:39:33.016 sip_endpoint.c .Module "mod-pjsua-log" registered 19:39:33.016 sip_endpoint.c .Module "mod-tsx-layer" registered 19:39:33.016 sip_endpoint.c .Module "mod-stateful-util" registered 19:39:33.016 sip_endpoint.c .Module "mod-ua" registered 19:39:33.016 sip_endpoint.c .Module "mod-100rel" registered 19:39:33.016 sip_endpoint.c .Module "mod-pjsua" registered 19:39:33.016 sip_endpoint.c .Module "mod-invite" registered 19:39:33.083 alsa_dev.c ..ALSA driver found 8 devices 19:39:33.083 alsa_dev.c ..ALSA initialized 19:39:33.083 pjlib ..select() I/O Queue created (0x5b29ac) 19:39:33.090 sip_endpoint.c .Module "mod-evsub" registered 19:39:33.090 sip_endpoint.c .Module "mod-presence" registered 19:39:33.090 sip_endpoint.c .Module "mod-mwi" registered 19:39:33.090 sip_endpoint.c .Module "mod-refer" registered 19:39:33.090 sip_endpoint.c .Module "mod-pjsua-pres" registered 19:39:33.090 sip_endpoint.c .Module "mod-pjsua-im" registered 19:39:33.090 sip_endpoint.c .Module "mod-pjsua-options" registered 19:39:33.090 pjsua_core.c .1 SIP worker threads created 19:39:33.090 pjsua_core.c .pjsua version 2.6 for Linux-4.9.35/armv7l/glibc-2.19 initialized 19:39:33.090 pjsua_core.c .PJSUA state changed: CREATED --> INIT 19:39:33.090 pjsua_aud.c Set sound device: capture=-99, playback=-2 19:39:33.090 pjsua_aud.c Set sound device: capture=-99, playback=0 19:39:33.092 pjsua_core.c SIP UDP socket reachable at 192.168.178.42:5060 19:39:33.092 udp0x59b338 SIP UDP transport started, published address is 192.168.178.42:5060 19:39:33.092 pjsua_core.c PJSUA state changed: INIT --> STARTING 19:39:33.092 sip_endpoint.c .Module "mod-unsolicited-mwi" registered 19:39:33.092 pjsua_core.c .PJSUA state changed: STARTING --> RUNNING 19:39:33.092 pjsua_acc.c Adding account: id=sip:doorz-control@xxxxxxxxx 19:39:33.092 pjsua_acc.c .Account sip:doorz-control@xxxxxxxxx added with id 0 19:39:33.092 pjsua_acc.c .Acc 0: setting registration.. 19:39:33.095 pjsua_core.c ...TX 504 bytes Request msg REGISTER/cseq=14164 (tdta0x5c55d0) to UDP 192.168.178.1:5060: REGISTER sip:fritz.box SIP/2.0 Via: SIP/2.0/UDP 192.168.178.42:5060;rport;branch=z9hG4bKPjvii-5qofqIUPwb1LOYscRpNw0eFodmvk Max-Forwards: 70 From: <sip:doorz-control@xxxxxxxxx>;tag=AaHUdIvDmBplh2VQERBiMbNiH2aO98Uv Call-ID: wy3xzGtqa5waqCh5qIklSCxWDgY3.NIl CSeq: 14164 REGISTER Contact: <sip:doorz-control@192.168.178.42:5060;ob> Expires: 300 Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS Content-Length: 0 --end msg-- 19:39:33.096 pjsua_acc.c ..Acc 0: Registration sent 19:39:33.101 pjsua_core.c .RX 432 bytes Response msg 401/REGISTER/cseq=14164 (rdata0x59c96c) from UDP 192.168.178.1:5060: SIP/2.0 401 Unauthorized Via: SIP/2.0/UDP 192.168.178.42:5060;rport=5060;branch=z9hG4bKPjvii-5qofqIUPwb1LOYscRpNw0eFodmvk From: <sip:doorz-control@xxxxxxxxx>;tag=AaHUdIvDmBplh2VQERBiMbNiH2aO98Uv To: <sip:doorz-control@xxxxxxxxx>;tag=8B55749296D85D58 Call-ID: wy3xzGtqa5waqCh5qIklSCxWDgY3.NIl CSeq: 14164 REGISTER WWW-Authenticate: Digest realm="fritz.box", nonce="5343D521F1B07973" User-Agent: FRITZ!OS Content-Length: 0 --end msg-- 19:39:33.101 pjsua_core.c ....TX 663 bytes Request msg REGISTER/cseq=14165 (tdta0x5c55d0) to UDP 192.168.178.1:5060: REGISTER sip:fritz.box SIP/2.0 Via: SIP/2.0/UDP 192.168.178.42:5060;rport;branch=z9hG4bKPjLQfumXb8gHgDV0D9gvZ4sOcAQyf2ebss Max-Forwards: 70 From: <sip:doorz-control@xxxxxxxxx>;tag=AaHUdIvDmBplh2VQERBiMbNiH2aO98Uv Call-ID: wy3xzGtqa5waqCh5qIklSCxWDgY3.NIl CSeq: 14165 REGISTER Cont*** Register: code= 200 "pjsua_call_make_call(acc.getId(), &pj_dst_uri, param.p_opt, this, param.p_msg_data, &id) error: Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV) (status=420006) [../src/pjsua2/call.cpp:490]" |
_______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip@xxxxxxxxxxxxxxx http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org