pjsua app cli crashes on beaglebone (ARMv7) with video

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

 



Kindly if anyone can help me debug the following issue

*Issue* - pjsua demo app crashes without any debug info at step 
"17:16:21.116    pjsua_vid.c  ......Creating video window: type=stream, 
cap_id=-1, rend_id=1945688"
*Platform* - Beaglebone *ARM *Linux 3.8 Debian 7.7 with Asterisk SIP 
Server (*11.10.2*)
*PJSIP* - v2.3 compiled from source omitting openH264 & libyuv ( instead 
using ffmpeg 1.2.10 )
PJSIP recognizes camera and H264 via ffmpeg
Video enabled and auto rx is OFF while tx is ON

 >>> *vid dev list*
17:24:08.756 pjsua_app_comm !Video device list:
17:24:08.757 pjsua_app_comm  2 device(s) detected:
17:24:08.757 pjsua_app_comm   -1 USB Camera (046d:08af) [v4l2][capture] 
(default capture device)
17:24:08.758 pjsua_app_comm      Supported capabilities: format
17:24:08.758 pjsua_app_comm      Supported formats: RGB24
17:24:08.758 pjsua_app_comm    0 USB Camera (046d:08af) [v4l2][capture]
17:24:08.758 pjsua_app_comm      Supported capabilities: format
17:24:08.759 pjsua_app_comm      Supported formats: RGB24
17:24:08.759 pjsua_app_comm    1 Colorbar generator [Colorbar][capture]
17:24:08.759 pjsua_app_comm      Supported capabilities: format
17:24:08.759 pjsua_app_comm      Supported formats: YUY2, UYVY, YVYU, 
RGBA, RGB24, BGRA, YV12, I420, I422, I420JPG, I422JPG

*>>> vid codec list*
17:24:30.397 pjsua_app_lega  Found 2 video codecs:
17:24:30.397 pjsua_app_lega  codec id      prio  fps    bw(kbps) size
17:24:30.397 pjsua_app_lega ------------------------------------------
17:24:30.398 pjsua_app_lega  H264/97       128   15.00   256/ 256 720x480
17:24:30.398 pjsua_app_lega  H263-1998/96  128   15.00   256/ 256 352x288

*sudo ./pjsua-armv7l-unknown-linux-gnueabihf --id=sip:1001 at 192.168.1.199 
--registrar=sip:192.168.1.199 --realm=* --username=1001 
--password=ncc1001 --video --local-port=5090 --no-tcp --use-cli 
--cli-telnet-port=23**
*
17:15:24.906 os_core_unix.c !pjlib 2.3 for POSIX initialized
17:15:24.911 sip_endpoint.c  .Creating endpoint instance...
17:15:24.913          pjlib  .select() I/O Queue created (0x196d20)
17:15:24.914 sip_endpoint.c  .Module "mod-msg-print" registered
17:15:24.914 sip_transport.  .Transport manager created.
17:15:24.915   pjsua_core.c  .PJSUA state changed: NULL --> CREATED
17:15:24.916 sip_endpoint.c  .Module "mod-pjsua-log" registered
17:15:24.917 sip_endpoint.c  .Module "mod-tsx-layer" registered
17:15:24.918 sip_endpoint.c  .Module "mod-stateful-util" registered
17:15:24.918 sip_endpoint.c  .Module "mod-ua" registered
17:15:24.919 sip_endpoint.c  .Module "mod-100rel" registered
17:15:24.919 sip_endpoint.c  .Module "mod-pjsua" registered
17:15:24.920 sip_endpoint.c  .Module "mod-invite" registered
17:15:25.094       pa_dev.c  ..PortAudio sound library initialized, status=0
17:15:25.095       pa_dev.c  ..PortAudio host api count=2
17:15:25.096       pa_dev.c  ..Sound device count=9
17:15:25.097          pjlib  ..select() I/O Queue created (0x1bd704)
17:15:25.125    pjsua_vid.c  ..Initializing video subsystem..
17:15:25.130     v4l2_dev.c  ...Video4Linux2 has 1 devices
17:15:25.131 colorbar_dev.c  ...Colorbar video src initialized with 1 
device(s):
17:15:25.132 colorbar_dev.c  ... 0: Colorbar generator
17:15:25.156      sdl_dev.c !SDL_Init() error: No available video device
17:15:25.157 sip_endpoint.c !.Module "mod-evsub" registered
17:15:25.158 sip_endpoint.c  .Module "mod-presence" registered
17:15:25.159 sip_endpoint.c  .Module "mod-mwi" registered
17:15:25.159 sip_endpoint.c  .Module "mod-refer" registered
17:15:25.160 sip_endpoint.c  .Module "mod-pjsua-pres" registered
17:15:25.160 sip_endpoint.c  .Module "mod-pjsua-im" registered
17:15:25.161 sip_endpoint.c  .Module "mod-pjsua-options" registered
17:15:25.161   pjsua_core.c  .1 SIP worker threads created
17:15:25.162   pjsua_core.c  .pjsua version 2.3 for 
Linux-3.8.13/armv7l/glibc-2.13 initialized
17:15:25.162   pjsua_core.c  .PJSUA state changed: CREATED --> INIT
17:15:25.163 sip_endpoint.c  Module "mod-default-handler" registered
17:15:25.164   pjsua_core.c  SIP UDP socket reachable at 192.168.1.199:5090
17:15:25.166    udp0x1d3ea8  SIP UDP transport started, published 
address is 192.168.1.199:5090
17:15:25.166    pjsua_acc.c  Adding account: id=<sip:192.168.1.199:5090>
17:15:25.167    pjsua_acc.c  .Account <sip:192.168.1.199:5090> added 
with id 0
17:15:25.167    pjsua_acc.c  Modifying accunt 0
17:15:25.168    pjsua_acc.c  Acc 0: setting online status to 1..
17:15:25.168    pjsua_acc.c  Adding account: id=sip:1001 at 192.168.1.199
17:15:25.169    pjsua_acc.c  .Account sip:1001 at 192.168.1.199 added with id 1
17:15:25.170    pjsua_acc.c  .Acc 1: setting registration..
17:15:25.171   pjsua_core.c  ...TX 553 bytes Request msg 
REGISTER/cseq=9051 (tdta0x1d8848) to UDP 192.168.1.199:5060:
REGISTER sip:192.168.1.199 SIP/2.0

17:15:25.211 sip_endpoint.c !.Module "mod-unsolicited-mwi" registered
17:15:25.211   pjsua_core.c  .PJSUA state changed: STARTING --> RUNNING
17:15:25.212         main.c  Telnet to 192.168.1.199:23: Success
17:15:25.214 sip_endpoint.c  Module "mod-pjsua-log" unregistered
17:15:25.215 sip_endpoint.c  Module "mod-pjsua-log" registered
-----------------------------------------------------------------------------------------------------------------------------
 >>> *INCOMING CALL*
17:16:09.017   pjsua_core.c  .RX 1258 bytes Request msg INVITE/cseq=102 
(rdata0x1d54dc) from UDP 192.168.1.199:5060:
INVITE sip:1001 at 192.168.1.199:5090;ob SIP/2.0
Via: SIP/2.0/UDP 192.168.1.199:5060;branch=z9hG4bK629d303c;rport
Max-Forwards: 70
From: "ext-1007" <sip:1007@192.168.1.199>;tag=as1aad6ac3
To: <sip:1001 at 192.168.1.199:5090;ob>
Contact: <sip:1007 at 192.168.1.199:5060>
Call-ID: 608135c04717191a40cab12539920635 at 192.168.1.199:5060
CSeq: 102 INVITE
User-Agent: FPBX-2.11.0(11.10.2)
Date: Tue, 23 Dec 2014 11:46:09 GMT
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, 
INFO, PUBLISH, MESSAGE
Supported: replaces, timer
Content-Type: application/sdp
Content-Length: 666

v=0
o=root 1514052864 1514052864 IN IP4 192.168.1.199
s=Asterisk PBX 11.10.2
c=IN IP4 192.168.1.199
b=CT:1024
t=0 0
m=audio 38370 RTP/AVP 0 8 18 3 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=sendrecv
m=video 61468 RTP/AVP 99 98 34
a=rtpmap:99 H264/90000
a=fmtp:99 profile-level-id=428014;packetization-mode=0
a=rtpmap:98 H263-1998/90000
a=fmtp:98 QCIF=2;CIF=2;CIF4=2;VGA=2;F=0;I=1;J=1;T=1;K=0;N=0;BPP=0;HRD=0
a=rtpmap:34 H263/90000
a=fmtp:34 QCIF=2;CIF=2;CIF4=2;VGA=2;F=0;I=0;J=0;T=0;K=0;N=0;BPP=0;HRD=0
a=sendrecv

--end msg--
17:16:09.021   pjsua_call.c  .Incoming Request msg INVITE/cseq=102 
(rdata0x1d54dc)
17:16:09.023  pjsua_media.c  ..Call 0: initializing media..
17:16:09.027  pjsua_media.c  ...RTP socket reachable at 192.168.1.199:4000
17:16:09.027  pjsua_media.c  ...RTCP socket reachable at 192.168.1.199:4001
17:16:09.029  pjsua_media.c  ...RTP socket reachable at 192.168.1.199:4002
17:16:09.030  pjsua_media.c  ...RTCP socket reachable at 192.168.1.199:4003
17:16:09.031  pjsua_media.c  ...Media index 0 selected for audio call 0
17:16:09.033   pjsua_core.c  .....TX 307 bytes Response msg 
100/INVITE/cseq=102 (tdta0x1ef6d0) to UDP 192.168.1.199:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 
192.168.1.199:5060;rport=5060;received=192.168.1.199;branch=z9hG4bK629d303c
Call-ID: 608135c04717191a40cab12539920635 at 192.168.1.199:5060
From: "ext-1007" <sip:1007@192.168.1.199>;tag=as1aad6ac3
To: <sip:1001 at 192.168.1.199;ob>
CSeq: 102 INVITE
Content-Length:  0

--end msg--
17:16:09.037    pjsua_aud.c  ..Conf connect: 2 --> 0
17:16:09.038    pjsua_aud.c  ...Set sound device: capture=-1, playback=-2
17:16:09.039    pjsua_app.c  ....Turning sound device ON
17:16:09.039    pjsua_aud.c  ....Opening sound device PCM at 16000/1/20ms
17:16:09.048     ec0x1f4bc8  .....AEC created, clock_rate=16000, 
channel=1, samples per frame=320, tail length=200 ms, latency=0 ms
17:16:09.050   conference.c  ...Port 2 (ring) transmitting to port 0 
(USB audio CODEC: USB Audio (hw:0,0))
17:16:09.051    pjsua_app.c  ..Incoming call for account 1!
Media count: 1 audio & 1 video
To reject the video, type "vid disable" first, before answering the call!
From: "ext-1007" <sip:1007@192.168.1.199>
To: <sip:1001 at 192.168.1.199;ob>
Press ca a to answer or g to reject call
17:16:09.076 os_core_unix.c  Info: possibly re-registering existing thread
call a 200

*17:16:20.817   pjsua_call.c !Answering call 0: code=200*
17:16:20.818  pjsua_media.c  ...Call 0: updating media..
17:16:20.819    pjsua_aud.c  ....Audio channel update..
17:16:20.820   strm0x2201ec  .....VAD temporarily disabled
17:16:20.821   strm0x2201ec  .....Encoder stream started
17:16:20.822   strm0x2201ec  .....Decoder stream started
17:16:20.823  pjsua_media.c  ....Audio updated, stream #0: PCMU (sendrecv)
17:16:20.824    pjsua_vid.c  ....Video channel update..
17:16:21.107 vstenc0x224a44  .....Encoder stream started
17:16:21.108 vstdec0x224a44  .....Decoder stream started
17:16:21.115 _pjsua_vid.c  .....Setting up RX_..
*17:16:21.116    pjsua_vid.c  ......Creating video window: type=stream, 
cap_id=-1, rend_id=1945688*
debian at beaglebone:~/pjproject-2.3/pjsip-apps/bin$

-- 
Thank You
Br,
Chirag A.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20141223/d4951ace/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