Hi Brian, Something is wrong with your build, because you are defining #define PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO 0 but then pj is using PortAudio: 14:45:40.153 pa_dev.c ..PortAudio sound library initialized, status=0 That can't happen. In pa_dev.c you can test the config by inserting an #error #if PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO #error PA is getting compiled! Regards, Bill On 2/26/2015 8:15 AM, Brunner, Brian T. wrote: > Any suggestions what to use instead of pjsip/pjmedia/pjsua? > > Since PJ won't use ALSA no matter what I do, but insists on using > portaudio no matter what I do, it appears I'll have to do something > else completely. > > Why does PJ include anything that says "ALSA" when pj will never use > ALSA but will always use portaudio? > > ------------------------------------------------------------------------ > *From:* pjsip [pjsip-bounces at lists.pjsip.org] on behalf of Brunner, > Brian T. [bbrunner at gai-tronics.com] > *Sent:* Tuesday, February 24, 2015 11:07 AM > *To:* pjsip list > *Subject:* Re: [pjsip] pjsips always uses PortAudio instead of ALSA. > > Any comment on my sticking point here? I should be able to use ALSA > but portaudio is always loaded by pjsip/media. > > ------------------------------------------------------------------------ > *From:* pjsip [pjsip-bounces at lists.pjsip.org] on behalf of Brunner, > Brian T. [bbrunner at gai-tronics.com] > *Sent:* Friday, February 20, 2015 2:55 PM > *To:* pjsip at lists.pjsip.org > *Subject:* [pjsip] pjsips always uses PortAudio instead of ALSA. > > pjsips v2.2.1 cross-compiled via bitbake > > uname -a gives > Linux Elemec_A 3.10.17-1.0.0_qmx6+g9bafbcb #1 SMP PREEMPT Wed Oct 8 > 09:25:21 EDT 2014 armv7l GNU/Linux > This is a busybox system (no nm or [ps]trace, I have gdb but > everything is stripped) > > aplay -D pcm.chan2_play RudeNoise.wav <== works! > > config_site.h has > #define PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO 0 > #define PJMEDIA_AUDIO_DEV_HAS_WMME 0 > #define PJMEDIA_AUDIO_DEV_HAS_SYMB_MDA 0 > #define PJMEDIA_AUDIO_DEV_HAS_SYMB_VAS 0 > #define PJMEDIA_AUDIO_DEV_HAS_SYMB_APS 0 > #define PJMEDIA_AUDIO_DEV_HAS_COREAUDIO 0 > #define PJMEDIA_AUDIO_DEV_HAS_OPENSL 0 > #define PJMEDIA_AUDIO_DEV_HAS_ANDROID_JNI 0 > #define PJMEDIA_AUDIO_DEV_HAS_BDIMAD 1 > #define PJMEDIA_AUDIO_DEV_HAS_ALSA 1 > > bitbake script has EXTRA_OECONF += "--enable-shared --disable-video > --disable-v4l2 --disable-oss" > (it appears there is no --use-alsa-only switch) > > pjlib/build/os-linux.mak is unchanged. > > build/os-linux.mak is unchanged, note: > export OS_LDFLAGS := -lportaudio-$(TARGET_NAME) > -lgsmcodec-$(TARGET_NAME) -lilbccodec-$(TARGET_NAME) > -lspeex-$(TARGET_NAME) -lresample-$(TARGET_NAME) > $(CC_LIB)pthread$(LIBEXT2) -lm > > third_party/build/os-linux.mak has > IRS += gsm > DIRS += ilbc > DIRS += speex > DIRS += portaudio > DIRS += g7221 > DIRS += srtp > DIRS += resample > third_party/build/portaudio/os-linux.mak has > AC_PJMEDIA_SND=alsa <<== This is a change from pa_unix > > # For Unix, specify if ALSA should be supported > AC_PA_USE_ALSA=1 <<== This is a change from 0 > > pjmedia/build/os-linux has > AC_PJMEDIA_SND=alsa <<== This is a change from pa_unix > > Output with log level = 5 > 14:45:39.731 os_core_unix.c !pjlib 2.2.1 for POSIX initialized > 14:45:39.735 sip_endpoint.c .Creating endpoint instance... > 14:45:39.735 pjlib .select() I/O Queue created (0x1030720) > 14:45:39.736 sip_endpoint.c .Module "mod-msg-print" registered > 14:45:39.736 sip_transport. .Transport manager created. > 14:45:39.736 pjsua_core.c .PJSUA state changed: NULL --> CREATED > 14:45:39.736 sip_endpoint.c .Module "mod-pjsua-log" registered > 14:45:39.736 sip_endpoint.c .Module "mod-tsx-layer" registered > 14:45:39.736 sip_endpoint.c .Module "mod-stateful-util" registered > 14:45:39.736 sip_endpoint.c .Module "mod-ua" registered > 14:45:39.737 sip_endpoint.c .Module "mod-100rel" registered > 14:45:39.737 sip_endpoint.c .Module "mod-pjsua" registered > 14:45:39.737 sip_endpoint.c .Module "mod-invite" registered > 14:45:40.153 pa_dev.c ..PortAudio sound library initialized, > status=0 > 14:45:40.153 pa_dev.c ..PortAudio host api count=1 > 14:45:40.153 pa_dev.c ..Sound device count=32 > 14:45:40.153 pjlib ..select() I/O Queue created (0x104cc2c) > 14:45:40.154 conference.c ..Creating conference bridge with 254 ports > 14:45:40.155 Master/sound ..Using delay buffer with WSOLA. > 14:45:40.186 sip_endpoint.c .Module "mod-evsub" registered > 14:45:40.186 sip_endpoint.c .Module "mod-presence" registered > 14:45:40.186 evsub.c .Event pkg "presence" registered by > mod-presence > 14:45:40.186 sip_endpoint.c .Module "mod-mwi" registered > 14:45:40.186 evsub.c .Event pkg "message-summary" registered > by mod-mwi > 14:45:40.186 sip_endpoint.c .Module "mod-refer" registered > 14:45:40.186 evsub.c .Event pkg "refer" registered by mod-refer > 14:45:40.186 sip_endpoint.c .Module "mod-pjsua-pres" registered > 14:45:40.187 sip_endpoint.c .Module "mod-pjsua-im" registered > 14:45:40.187 sip_endpoint.c .Module "mod-pjsua-options" registered > 14:45:40.187 pjsua_core.c .3 SIP worker threads created > 14:45:40.187 pjsua_core.c .pjsua version 2.2.1 for > Linux-3.10.17.1/armv7l/glibc-2.19 initialized > 14:45:40.187 pjsua_core.c .PJSUA state changed: CREATED --> INIT > > ...later... pjsua_get_snd_dev returned 0(Success) mic -1 dsp -2 > > NOTHING looks like play_alsa.c or alsa_play.c > > What obvious thing did I miss? > > > ------------------------------------------------------------------------ > > ---------------------------------------------------------------------------------------------------------------------------- > > > Confidentiality Requirement: This communication, including any > attachment(s), may contain confidential information and is for the > sole use of the intended recipient(s). If you are not the intended > recipient, you are hereby notified that you have received this > communication in error and any unauthorized review, use, disclosure, > dissemination, distribution or copying of it or its contents is > strictly prohibited. If you have received this communication in > error, please notify the sender immediately by telephone or e-mail and > destroy all copies of this communication and any attachments. > > > > _______________________________________________ > 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/20150226/b20e435d/attachment.html>