probable bug: analog/spdif works; HDMI has auddemo OK but app aborts...

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

 



Hi,
I have problem with getting working audio output on ION1 HDMI output.
All works OK on auddemo but python app aborts.
The same pyton app works OK with analog and spdif outs on this platform.
Only difference is that analog/spdif require audio_dev 0,0 while hdmi require audio_dev 0,9? 
I think it is king of bug in pjsip2.4
auddemo reports following:
---------------------------------------------------------------------------------
09:31:37.464 os_core_unix.c !pjlib 2.4 for POSIX initialized 
Added sound device sysdefault:CARD=NVidia 
Added sound device front:CARD=NVidia,DEV=0 
Added sound device surround21:CARD=NVidia,DEV=0 
Added sound device surround40:CARD=NVidia,DEV=0 
Added sound device surround41:CARD=NVidia,DEV=0 
Added sound device surround50:CARD=NVidia,DEV=0 
Added sound device surround51:CARD=NVidia,DEV=0 
Added sound device surround71:CARD=NVidia,DEV=0 
Added sound device iec958:CARD=NVidia,DEV=0 
Added sound device hdmi:CARD=NVidia,DEV=0 
ALSA driver found 10 devices 
ALSA initialized 
Found 10 devices: 
? 0: ALSA [sysdefault:CARD=NVidia] (1/1) 
? 1: ALSA [front:CARD=NVidia,DEV=0] (1/1) 
? 2: ALSA [surround21:CARD=NVidia,DEV=0] (0/1) 
? 3: ALSA [surround40:CARD=NVidia,DEV=0] (1/1) 
? 4: ALSA [surround41:CARD=NVidia,DEV=0] (1/1) 
? 5: ALSA [surround50:CARD=NVidia,DEV=0] (1/1) 
? 6: ALSA [surround51:CARD=NVidia,DEV=0] (1/1) 
? 7: ALSA [surround71:CARD=NVidia,DEV=0] (1/1) 
? 8: ALSA [iec958:CARD=NVidia,DEV=0] (0/1) 
? 9: ALSA [hdmi:CARD=NVidia,DEV=0] (0/1) 
---------------------------------------------------------------------------------
audemo playback wav file on audo 0,9 (HDMI) works OK
---------------------------------------------------------------------------------
File player '/usr/local/bin/voice-mail.wav' created: samp.rate=44100, ch=2, bufsize=4KB, filesize=659KB 
open_playback: Open playback device 'hdmi:CARD=NVidia,DEV=0' 
Opened device alsa(hdmi:CARD=NVidia,DEV=0) for playing, sample rate=44100, ch=2, bits=16, period size=882 frames, latency=142 ms 
Playback started, press ENTER to stop 
---------------------------------------------------------------------------------
but my python application with audio-in/audio-out = 0,9 aborts
On app start:
---------------------------------------------------------------------------------
09:45:26.702 Registration complete, status=200(OK) 
09:45:27.674??? pjsua_aud.c !Closing sound device after idle for 1 second(s) 
09:45:27.674??? pjsua_aud.c? .Closing hdmi:CARD=NVidia,DEV=0 sound playback device and sysdefault:CARD=NVidia sound capture device 
---------------------------------------------------------------------------------
At start I'm getting about 2 sec of constant 'bzzzz' whir on audio out 
but any call attempt gives ABORT:
---------------------------------------------------------------------------------
.......
09:43:18.926 Will pickup Call. Exiting FE to MainMenu... 
09:43:21.945?? pjsua_call.c !Answering call 0: code=200 
09:43:21.945? pjsua_media.c? ...Call 0: updating media.. 
09:43:21.945??? pjsua_aud.c? ....Audio channel update.. 
09:43:21.945? strm0x19f6828? .....Encoder stream started 
09:43:21.945? strm0x19f6828? .....Decoder stream started 
09:43:21.946? pjsua_media.c? ....Audio updated, stream #0: PCMA (sendrecv) 
09:43:21.946 Media now are opened... 
09:43:21.946 You can talk! 
09:43:21.946??? pjsua_aud.c? ...Conf connect: 1 --> 9 
09:43:21.946??? pjsua_aud.c? ....Set sound device: capture=0, playback=9 
09:43:21.946??? pjsua_aud.c? .....Opening sound device PCM at 16000/1/20ms 
09:43:21.952??? ec0x1a02a50? ......Echo suppressor created, clock_rate=16000, channel=1, samples per frame=320, tail length=8000 ms, latency=100 ms 
09:43:21.952?? pjsua_core.c? ....TX 832 bytes Response msg 200/INVITE/cseq=102 (tdta0x19f06a0) to UDP 192.168.1.254:5060: 
SIP/2.0 200 OK 
Via: SIP/2.0/UDP 192.168.1.254:5060;received=192.168.1.254;branch=z9hG4bK49567ddc 
Call-ID: 415677bf3b5f8ce65972aeed58041c91 at 192.168.1.254:5060 
From: <sip:203@192.168.1.254>;tag=as0abda301 
To: <sip:konto-206 at 192.168.1.128;ob>;tag=7240a86b-71b0-4466-80b6-f62348e9501e 
CSeq: 102 INVITE 
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS 
Contact: <sip:konto-206 at 192.168.1.128:10000;ob> 
Supported: replaces, 100rel, timer, norefersub 
Content-Type: application/sdp 
Content-Length:?? 277 
v=0 
o=- 3638158996 3638158997 IN IP4 192.168.1.128 
s=pjmedia 
b=AS:84 
t=0 0 
a=X-nat:0 
m=audio 4000 RTP/AVP 8 101 
c=IN IP4 192.168.1.128 
b=TIAS:64000 
a=rtcp:4001 IN IP4 192.168.1.128 
a=sendrecv 
a=rtpmap:8 PCMA/8000 
a=rtpmap:101 telephone-event/8000 
a=fmtp:101 0-16 
--end msg-- 
09:43:21.953 Exception: Object: Lib, operation=conf_connect(), error=Invalid value or argument (PJ_EINVAL) 
09:43:21.953??? pjsua_acc.c !Deleting account 0.. 
09:43:21.954??? pjsua_acc.c? .Acc 0: setting unregistration.. 
09:43:21.954?? pjsua_core.c? ...TX 473 bytes Request msg REGISTER/cseq=15539 (tdta0x1a269e0) to UDP 192.168.1.254:5060: 
REGISTER sip:192.168.1.254 SIP/2.0 
Via: SIP/2.0/UDP 192.168.1.128:10000;rport;branch=z9hG4bKPjd3f40ef1-4ed8-4ea2-9c39-1bc00cc7949c 
Route: <sip:192.168.1.254;lr> 
Max-Forwards: 70 
From: <sip:konto-206@192.168.1.254>;tag=b7e40ffc-102b-404a-8618-d899fce4b1b8 
To: <sip:konto-206 at 192.168.1.254> 
Call-ID: 17efee0b-26a4-46dc-a0a3-95d5a8d58d57 
CSeq: 15539 REGISTER 
User-Agent: pjsip python 
Contact: <sip:konto-206 at 192.168.1.128:10000;ob> 
Expires: 0 
Content-Length:? 0 
--end msg-- 
09:43:21.954??? pjsua_acc.c? ..Acc 0: Unregistration sent 
09:43:21.955??? pjsua_acc.c? .Account id 0 deleted 
09:43:21.955?? pjsua_core.c? .RX 429 bytes Request msg ACK/cseq=102 (rdata0x1a07c98) from UDP 192.168.1.254:5060: 
ACK sip:konto-206 at 192.168.1.128:10000;ob SIP/2.0 
Via: SIP/2.0/UDP 192.168.1.254:5060;branch=z9hG4bK35fb0532 
Max-Forwards: 70 
From: <sip:203@192.168.1.254>;tag=as0abda301 
To: <sip:konto-206 at 192.168.1.128:10000;ob>;tag=7240a86b-71b0-4466-80b6-f62348e9501e 
Contact: <sip:203 at 192.168.1.254:5060> 
Call-ID: 415677bf3b5f8ce65972aeed58041c91 at 192.168.1.254:5060 
CSeq: 102 ACK 
User-Agent: Asterisk PBX 12.3.2 
Content-Length: 0 
--end msg-- 
python: ../src/pjsua-lib/pjsua_acc.c:588: pjsua_acc_get_user_data: Assertion `pjsua_var.acc[acc_id].valid' failed. 
Aborted 
---------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20150416/dc698159/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