Any suggestion to make pjsip videocalls working on RPI? Pjsua videocall results in video vindow content that freeze on remote MicroSIP UA

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

 



Hi,
I need to add video streaming (just transmission) to an exixting VOP 
pjsip plain C program running on RPI (Raspberry PI), Raspbian Linux, 
using RPI camera module with RPI hardware H.264 compression engine.

I have build pjsip 2.2.1 with video support on RPI.

After adding the driver to /etc/modules and restarting RPI, I am sure 
that RPI camera module works, since, by typing:

root at raspberrypi:~# v4l2-ctl 
--set-fmt-video=width=640,height=480,pixelformat=4

root at raspberrypi:~# v4l2-ctl --stream-mmap=3 --stream-count=100 
--stream-to=/home/pi/myvideo.264

I have obtained a good quality H.264 videoclip.

Nevertheless RPI camera module don't seems to work correctly with pjsip, 
since the preview SDL video overlay of Pjsua is green, without any image.

Did anyone succeed in using RPI video module with pjsip?

Being currently impossible for me to test pjsip video capability on RPI 
with RPI camera module as capture device, I decided to use pjsip 
colorbar generator instead, thinking it should be 100% compatible with 
pjlib video streaming, being in the same package.

To test pjsip I have run Pjsua with --null-audio option because I don't 
want to get additional problems with RPI audio drivers, since RPI lacks 
audio input and this causes problem with pjsip lib. So, after having 
properly changed the working folder, I gave the command:

./pjsua-armv6l-unknown-linux-gnueabihf --null-audio

and I forced Pjsua to enable video call using pjsip colorbar generator 
(colorbar generato ID is 1)

 >>> vid enable
 >>> vid acc cap 1
 >>> vid dev prev on 1

RPI on its video out monitor correctly opened a SDL preview showing 
colorbars.

Attempt to videocall remote MicroSIP UA running on Window xp:

 >>> m
     sip:toto at 192.168.1.10

correctly results in remote UA ringing, but after pressing button 
"accept incoming videocall", remote UA pops up a transparent window that 
suddenly freezes its content (the related desktop portion). Besides 
video, remote UA seems to behave correctly, while RPI shows a RPI CPU 
usage of 76% that could be related to video streaming activity

The only error that I can see is this one:
vstdec0x12a9b6  codec decode() error: Bad or corrupted bitstream 
(PJMEDIA_CODEC_EBADBITSTREAM) [err:220087]

Call is correctly ended by pressing 'h' since remote UA closes its video 
window and RPI CPU usage gets down below 1%

Linphone behaves differently than MicroSIP. Linphone rings only if I do 
a call without video. If I try to do a videocall, Linphone don't even 
ring but Pjsua behaves as it would be ringing, so it was impossible for 
me to do a test with Linphone. Please notice that Linphone behaves 
correctly with a pjsua audio call without video.

My second question is: is there anybody that succeed in making videocall 
working with a pjsip program on RPI? Is there a trick to make pjsip 
working on RPI?

Thanks for your attention and thanks in advance for your suggestion... 
if any...

Best regards
Silvio

  * Tedesco - rilevata
  * Afrikaans
  * Albanese
  * Arabo
  * Bielorusso
  * Bulgaro
  * Catalano
  * Cinese
  * Cinese (Semplificato)
  * Cinese (Tradizionale)
  * Croato
  * Ceco
  * Danese
  * Olandese
  * Inglese
  * Estone
  * Filippino
  * Finlandese
  * Francese
  * Galiziano
  * Tedesco
  * Greco
  * Ebraico
  * Creolo haitiano
  * Hindi
  * Ungherese
  * Islandese
  * Indonesiano
  * Irlandese
  * Italiano
  * Giapponese
  * Coreano
  * Lettone
  * Lituano
  * Macedone
  * Malese
  * Maltese
  * Norvegese
  * Farsi
  * Polacco
  * Portoghese
  * Portoghese (Portogallo)
  * Romeno
  * Russo
  * Serbo
  * Slovacco
  * Sloveno
  * Spagnolo
  * Swahili
  * Svedese
  * Thai
  * Turco
  * Ucraino
  * Vietnamita
  * Gallese
  * Yiddish

  * Afrikaans
  * Albanese
  * Arabo
  * Bielorusso
  * Bulgaro
  * Catalano
  * Cinese
  * Cinese (Semplificato)
  * Cinese (Tradizionale)
  * Croato
  * Ceco
  * Danese
  * Olandese
  * Inglese
  * Estone
  * Filippino
  * Finlandese
  * Francese
  * Galiziano
  * Tedesco
  * Greco
  * Ebraico
  * Creolo haitiano
  * Hindi
  * Ungherese
  * Islandese
  * Indonesiano
  * Irlandese
  * Italiano
  * Giapponese
  * Coreano
  * Lettone
  * Lituano
  * Macedone
  * Malese
  * Maltese
  * Norvegese
  * Farsi
  * Polacco
  * Portoghese
  * Portoghese (Portogallo)
  * Romeno
  * Russo
  * Serbo
  * Slovacco
  * Sloveno
  * Spagnolo
  * Swahili
  * Svedese
  * Thai
  * Turco
  * Ucraino
  * Vietnamita
  * Gallese
  * Yiddish

  <javascript:void(0);>
-------------- next part --------------

in the following you can see ssh terminal messages of my Pjsua test:
--------------------------------------------------

On ssh terminal, root login:

root at raspberrypi:~# v4l2-ctl --list-formats
ioctl: VIDIOC_ENUM_FMT
	Index       : 0
	Type        : Video Capture
	Pixel Format: 'YU12'
	Name        : 4:2:0, packed YUV

	Index       : 1
	Type        : Video Capture
	Pixel Format: 'YUYV'
	Name        : 4:2:2, packed, YUYV

	Index       : 2
	Type        : Video Capture
	Pixel Format: 'BGR3'
	Name        : RGB24 (BE)

	Index       : 3
	Type        : Video Capture
	Pixel Format: 'JPEG' (compressed)
	Name        : JPEG

	Index       : 4
	Type        : Video Capture
	Pixel Format: 'H264' (compressed)
	Name        : H264

	Index       : 5
	Type        : Video Capture
	Pixel Format: 'MJPG' (compressed)
	Name        : MJPEG

On ssh terminal, non root login:

  $ ./pjsua-armv6l-unknown-linux-gnueabihf --null-audio

You have 0 active call
15:35:39.505    pjsua_aud.c !Closing sound device after idle for 1 second(s)
15:05:39.506    pjsua_app.c  .Turning sound device OFF
15:05:39.508    pjsua_aud.c  .Closing null sound device..


>>> vid dev list
15:13:29.460 pjsua_app_comm  Video device list:
15:13:29.461 pjsua_app_comm  3 device(s) detected:
15:13:29.463 pjsua_app_comm   -2 SDL renderer [SDL][render] (default renderer device)
15:13:29.464 pjsua_app_comm      Supported capabilities: format, window, resize, wndflags
15:13:29.468 pjsua_app_comm      Supported formats: RGBA, RGB24, BGRA, DIB , YUY2, UYVY, YVYU, I420, YV12, I420JPG, I422JPG
15:13:29.469 pjsua_app_comm   -1 mmal service 15.1 [v4l2][capture] (default capture device)
15:13:29.471 pjsua_app_comm      Supported capabilities: format
15:13:29.473 pjsua_app_comm      Supported formats: YUY2, RGB24
15:13:29.474 pjsua_app_comm    0 mmal service 15.1 [v4l2][capture] 
15:13:29.482 pjsua_app_comm      Supported capabilities: format
15:13:29.483 pjsua_app_comm      Supported formats: YUY2, RGB24
15:13:29.485 pjsua_app_comm    1 Colorbar generator [Colorbar][capture] 
15:13:29.487 pjsua_app_comm      Supported capabilities: format
15:13:29.488 pjsua_app_comm      Supported formats: YUY2, UYVY, YVYU, RGBA, RGB24, BGRA, YV12, I420, I422, I420JPG, I422JPG
15:13:29.490 pjsua_app_comm    2 SDL renderer [SDL][render] 
15:13:29.491 pjsua_app_comm      Supported capabilities: format, window, resize, wndflags
15:13:29.491 pjsua_app_comm      Supported formats: RGBA, RGB24, BGRA, DIB , YUY2, UYVY, YVYU, I420, YV12, I420JPG, I422JPG


>>> vid codec list
15:13:41.924 pjsua_app_lega  Found 2 video codecs:
15:13:41.926 pjsua_app_lega  codec id      prio  fps    bw(kbps)   size
15:13:41.927 pjsua_app_lega  ------------------------------------------
15:13:41.929 pjsua_app_lega  H264/97       128   15.00   256/ 256  720x480
15:13:41.931 pjsua_app_lega  H263-1998/96  128   15.00   256/ 256  352x288


>>> vid dev prev on 1
15:18:44.377    pjsua_vid.c  Starting preview for cap_dev=1, show=1
15:18:44.378    pjsua_vid.c  .Creating video window: type=preview, cap_id=1, rend_id=-2
15:18:44.380     vid_port.c  ..Opening device Colorbar generator [Colorbar] for capture: format=YUY2, size=352x288 @25:1 fps
15:18:44.382     vid_port.c  ..Device Colorbar generator [Colorbar] opened: format=YUY2, size=352x288 @25:1 fps
15:18:44.384     vid_port.c  ..Opening device SDL renderer [SDL] for render: format=YUY2, size=352x288 @25:1 fps
15:18:44.415     vid_port.c  ..Device SDL renderer [SDL] opened: format=YUY2, size=352x288 @25:1 fps
15:18:44.417    pjsua_vid.c  ..preview window id 0 created for cap_dev=1 rend_dev=-2
15:18:44.419    pjsua_vid.c  ..Window 0 created
15:18:44.420      sdl_dev.c  .Starting sdl video stream
15:18:44.422 colorbar_dev.c  .Starting cbar video stream


 << SDL opened a colorbar video preview overlay on composite video monitor connected to RPI>>  

>>> vid enable
14:32:24.610 pjsua_app_lega  Video will be enabled in next offer/answer

>>> vid acc cap 1
14:32:49.642    pjsua_acc.c  Modifying accunt 1

>>> vid dev prev on 0
14:33:42.481    pjsua_vid.c  Starting preview for cap_dev=0, show=1
14:33:42.484    pjsua_vid.c  .Creating video window: type=preview, cap_id=0, rend_id=-2
14:33:42.486    pjsua_vid.c  ..Window already exists for cap_dev=0, returning wid=0


>>> m
(You currently have 0 calls)
Buddy list:
 -none-

Choices:
   0         For current dialog.
  -1         All 0 buddies in buddy list
  [1 - 0]    Select from buddy list
  URL        An URL
  <Enter>    Empty input (or 'q') to cancel
Make call: sip:toto at 192.168.1.102
15:30:13.698   pjsua_call.c  Making call with acc #1 to sip:toto at 192.168.1.102
15:30:13.700    pjsua_aud.c  .Set sound device: capture=-99, playback=-99
15:30:13.701    pjsua_aud.c  ..Setting null sound device..
15:30:13.703    pjsua_app.c  ...Turning sound device ON
15:30:13.705    pjsua_aud.c  ...Opening null sound device..
15:30:13.708  pjsua_media.c  .Call 0: initializing media..
15:30:13.711  pjsua_media.c  ..RTP socket reachable at 192.168.1.99:4000
15:30:13.713  pjsua_media.c  ..RTCP socket reachable at 192.168.1.99:4001
15:30:13.717  pjsua_media.c  ..RTP socket reachable at 192.168.1.99:4002
15:30:13.718  pjsua_media.c  ..RTCP socket reachable at 192.168.1.99:4003
15:30:13.720  pjsua_media.c  ..Media index 0 selected for audio call 0
15:30:13.725  tcpc0x1293e24  ....TCP client transport created
15:30:13.732  tcpc0x1293e24  ....TCP transport 192.168.1.99:59309 is connecting to 192.168.1.102:5060...
15:30:13.736   pjsua_core.c  ....TX 1356 bytes Request msg INVITE/cseq=7 (tdta0x128f300) to TCP 192.168.1.102:5060:
INVITE sip:toto at 192.168.1.102 SIP/2.0
Via: SIP/2.0/TCP 192.168.1.99:59309;rport;branch=z9hG4bKPjnBGUL7RPaLwayQgMQWHAJTVL1QzVpGn1;alias
Max-Forwards: 70
From: <sip:192.168.1.99>;tag=BQkSs7RyxeHABXmniVnUY-P64EGdQgAt
To: sip:toto at 192.168.1.102
Contact: <sip:192.168.1.99:5060;ob>
Call-ID: 65nc033OE7DiFEo3WDfY6lda9DKB37gZ
CSeq: 7 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800
Min-SE: 90
User-Agent: PJSUA v2.2.1 Linux-3.10.25/armv6l/glibc-2.13
Content-Type: application/sdp
Content-Length:   719

v=0
o=- 3607947013 3607947013 IN IP4 192.168.1.99
s=pjmedia
b=AS:352
t=0 0
a=X-nat:0
m=audio 4000 RTP/AVP 98 97 99 104 3 0 8 9 96
c=IN IP4 192.168.1.99
b=TIAS:64000
a=rtcp:4001 IN IP4 192.168.1.99
a=sendrecv
a=rtpmap:98 speex/16000
a=rtpmap:97 speex/8000
a=rtpmap:99 speex/32000
a=rtpmap:104 iLBC/8000
a=fmtp:104 mode=30
a=rtpmap:3 GSM/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:9 G722/8000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-16
m=video 4002 RTP/AVP 97 96
c=IN IP4 192.168.1.99
b=TIAS:256000
a=rtcp:4003 IN IP4 192.168.1.99
a=sendrecv
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42e01e; packetization-mode=1
a=rtpmap:96 H263-1998/90000
a=fmtp:96 CIF=1;QCIF=1

--end msg--
15:30:13.741  tcpc0x1293e24 !TCP transport 192.168.1.99:59309 is connected to 192.168.1.102:5060
15:30:13.751    pjsua_app.c  SIP TCP transport is connected to [192.168.1.102:5060]
15:30:13.754    pjsua_app.c  .......Call 0 state changed to CALLING
>>> 15:30:13.812   pjsua_core.c  .RX 320 bytes Response msg 100/INVITE/cseq=7 (rdata0x1293fe8) from TCP 192.168.1.102:5060:
SIP/2.0 100 Trying
Via: SIP/2.0/TCP 192.168.1.99:59309;rport=59309;received=192.168.1.99;branch=z9hG4bKPjnBGUL7RPaLwayQgMQWHAJTVL1QzVpGn1;alias
Call-ID: 65nc033OE7DiFEo3WDfY6lda9DKB37gZ
From: <sip:192.168.1.99>;tag=BQkSs7RyxeHABXmniVnUY-P64EGdQgAt
To: <sip:toto at 192.168.1.102>
CSeq: 7 INVITE
Content-Length:  0


--end msg--
15:30:14.259   pjsua_core.c  .RX 491 bytes Response msg 180/INVITE/cseq=7 (rdata0x1293fe8) from TCP 192.168.1.102:5060:
SIP/2.0 180 Ringing
Via: SIP/2.0/TCP 192.168.1.99:59309;rport=59309;received=192.168.1.99;branch=z9hG4bKPjnBGUL7RPaLwayQgMQWHAJTVL1QzVpGn1;alias
Call-ID: 65nc033OE7DiFEo3WDfY6lda9DKB37gZ
From: <sip:192.168.1.99>;tag=BQkSs7RyxeHABXmniVnUY-P64EGdQgAt
To: <sip:toto at 192.168.1.102>;tag=0cce216923d24d11b3a611f32b73a4db
CSeq: 7 INVITE
Contact: <sip:192.168.1.102:5060>
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Content-Length:  0


--end msg--
15:30:14.266    pjsua_aud.c  .....Conf connect: 1 --> 0
15:30:14.267   conference.c  ......Port 1 (ringback) transmitting to port 0 (Master/sound)
15:30:14.268    pjsua_app.c  .....Call 0 state changed to EARLY (180 Ringing)
15:30:21.606   udp0x1285520 !Remote RTP address switched to 192.168.1.102:4012
15:30:22.183   pjsua_core.c  .RX 1091 bytes Response msg 200/INVITE/cseq=7 (rdata0x1293fe8) from TCP 192.168.1.102:5060:
SIP/2.0 200 OK
Via: SIP/2.0/TCP 192.168.1.99:59309;rport=59309;received=192.168.1.99;branch=z9hG4bKPjnBGUL7RPaLwayQgMQWHAJTVL1QzVpGn1;alias
Call-ID: 65nc033OE7DiFEo3WDfY6lda9DKB37gZ
From: <sip:192.168.1.99>;tag=BQkSs7RyxeHABXmniVnUY-P64EGdQgAt
To: <sip:toto at 192.168.1.102>;tag=0cce216923d24d11b3a611f32b73a4db
CSeq: 7 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Contact: <sip:192.168.1.102:5060>
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
Content-Type: application/sdp
Content-Length:   470

v=0
o=- 3607947089 3607947090 IN IP4 192.168.1.102
s=pjmedia
b=AS:352
t=0 0
a=X-nat:0
m=audio 4012 RTP/AVP 98 96
c=IN IP4 192.168.1.102
b=TIAS:64000
a=rtcp:4013 IN IP4 192.168.1.102
a=sendrecv
a=rtpmap:98 speex/16000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
m=video 4014 RTP/AVP 97
c=IN IP4 192.168.1.102
b=TIAS:256000
a=rtcp:4015 IN IP4 192.168.1.102
a=sendrecv
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42e01e; packetization-mode=1

--end msg--
15:30:22.196    pjsua_app.c  .....Call 0 state changed to CONNECTING
15:30:22.199  pjsua_media.c  .....Call 0: updating media..
15:30:22.201    pjsua_aud.c  ......Audio channel update..
15:30:22.203  strm0x129746c  .......VAD temporarily disabled
15:30:22.206  strm0x129746c  .......Encoder stream started
15:30:22.212  strm0x129746c  .......Decoder stream started
15:30:22.215  pjsua_media.c  ......Audio updated, stream #0: speex (sendrecv)
15:30:22.219    pjsua_vid.c  ......Video channel update..
15:30:22.515   udp0x12892e0 !Remote RTP address switched to 192.168.1.102:4014
15:30:22.681 vstenc0x12a9b6  .......Encoder stream started
15:30:22.685 vstdec0x12a9b6  .......Decoder stream started
15:30:22.693    pjsua_vid.c  .......Setting up RX..
15:30:22.696    pjsua_vid.c  ........Creating video window: type=stream, cap_id=-1, rend_id=2
15:30:22.698     vid_port.c  .........Opening device SDL renderer [SDL] for render: format=I420, size=768x512 @22:1 fps
15:30:22.718     vid_port.c !.........Device SDL renderer [SDL] opened: format=I420, size=768x512 @22:1 fps
15:30:22.719    pjsua_vid.c  .........stream window id 1 created for cap_dev=-1 rend_dev=2
15:30:22.721    pjsua_vid.c  .........Window 1 created
15:30:22.723      sdl_dev.c  ........Starting sdl video stream
15:30:22.725    pjsua_vid.c  .......Setting up TX..
15:30:22.783 vstenc0x12a9b6  .......Encoder stream paused
15:30:22.798 vstdec0x12a9b6  codec decode() error: Bad or corrupted bitstream (PJMEDIA_CODEC_EBADBITSTREAM) [err:220087]
15:30:22.801  pjsua_media.c !Sending video keyframe request via SIP INFO
15:30:22.819   pjsua_call.c  Call 0 sending INFO request..
15:30:22.821  pjsua_media.c !......Video updated, stream #1: H264 (sendrecv)
15:30:22.823    pjsua_app.c  .....Call 0 media 0 [type=audio], status is Active
15:30:22.825    pjsua_aud.c  .....Conf disconnect: 1 -x- 0
15:30:22.834   conference.c  ......Port 1 (ringback) stop transmitting to port 0 (Master/sound)
15:30:22.836    pjsua_aud.c  .....Conf connect: 3 --> 0
15:30:22.838   conference.c  ......Port 3 (sip:toto at 192.168.1.102) transmitting to port 0 (Master/sound)
15:30:22.839    pjsua_aud.c  .....Conf connect: 0 --> 3
15:30:22.841   conference.c  ......Port 0 (Master/sound) transmitting to port 3 (sip:toto at 192.168.1.102)
15:30:22.843    pjsua_app.c  .....Call 0 media 1 [type=video], status is Active
15:30:22.850   pjsua_core.c  .....TX 351 bytes Request msg ACK/cseq=7 (tdta0x1793288) to UDP 192.168.1.102:5060:
ACK sip:192.168.1.102:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.99:5060;rport;branch=z9hG4bKPjFNVF74hzOkcbnorJMSkgLYFQ40XMB54K
Max-Forwards: 70
From: <sip:192.168.1.99>;tag=BQkSs7RyxeHABXmniVnUY-P64EGdQgAt
To: sip:toto at 192.168.1.102;tag=0cce216923d24d11b3a611f32b73a4db
Call-ID: 65nc033OE7DiFEo3WDfY6lda9DKB37gZ
CSeq: 7 ACK
Content-Length:  0


--end msg--
15:30:22.858    pjsua_app.c  .....Call 0 state changed to CONFIRMED
15:30:22.861   pjsua_core.c  .RX 1091 bytes Response msg 200/INVITE/cseq=7 (rdata0x1293fe8) from TCP 192.168.1.102:5060:
SIP/2.0 200 OK
Via: SIP/2.0/TCP 192.168.1.99:59309;rport=59309;received=192.168.1.99;branch=z9hG4bKPjnBGUL7RPaLwayQgMQWHAJTVL1QzVpGn1;alias
Call-ID: 65nc033OE7DiFEo3WDfY6lda9DKB37gZ
From: <sip:192.168.1.99>;tag=BQkSs7RyxeHABXmniVnUY-P64EGdQgAt
To: <sip:toto at 192.168.1.102>;tag=0cce216923d24d11b3a611f32b73a4db
CSeq: 7 INVITE
Allow: PRACK, INVITE, ACK, BYE, CANCEL, UPDATE, INFO, SUBSCRIBE, NOTIFY, REFER, MESSAGE, OPTIONS
Contact: <sip:192.168.1.102:5060>
Supported: replaces, 100rel, timer, norefersub
Session-Expires: 1800;refresher=uac
Require: timer
Content-Type: application/sdp
Content-Length:   470

v=0
o=- 3607947089 3607947090 IN IP4 192.168.1.102
s=pjmedia
b=AS:352
t=0 0
a=X-nat:0
m=audio 4012 RTP/AVP 98 96
c=IN IP4 192.168.1.102
b=TIAS:64000
a=rtcp:4013 IN IP4 192.168.1.102
a=sendrecv
a=rtpmap:98 speex/16000
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
m=video 4014 RTP/AVP 97
c=IN IP4 192.168.1.102
b=TIAS:256000
a=rtcp:4015 IN IP4 192.168.1.102
a=sendrecv
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=42e01e; packetization-mode=1

--end msg--
15:30:22.864   pjsua_core.c  ...TX 605 bytes Request msg INFO/cseq=8 (tdta0x1794290) to UDP 192.168.1.102:5060:
INFO sip:192.168.1.102:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.99:5060;rport;branch=z9hG4bKPj9la6jRkw4gAcAyMfSHsC.XqbxQ8Ea41n
Max-Forwards: 70
From: <sip:192.168.1.99>;tag=BQkSs7RyxeHABXmniVnUY-P64EGdQgAt
To: sip:toto at 192.168.1.102;tag=0cce216923d24d11b3a611f32b73a4db
Call-ID: 65nc033OE7DiFEo3WDfY6lda9DKB37gZ
CSeq: 8 INFO
User-Agent: PJSUA v2.2.1 Linux-3.10.25/armv6l/glibc-2.13
Content-Type: application/media_control+xml
Content-Length:   146

<?xml version="1.0" encoding="utf-8" ?><media_control><vc_primitive><to_encoder><picture_fast_update/></to_encoder></vc_primitive></media_control>
--end msg--
15:30:22.883 vstdec0x12a9b6  codec decode() error: Bad or corrupted bitstream (PJMEDIA_CODEC_EBADBITSTREAM) [err:220087]
15:30:22.903   pjsua_core.c  ...TX 351 bytes Request msg ACK/cseq=7 (tdta0x1793288) to UDP 192.168.1.102:5060:
ACK sip:192.168.1.102:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.99:5060;rport;branch=z9hG4bKPjFNVF74hzOkcbnorJMSkgLYFQ40XMB54K
Max-Forwards: 70
From: <sip:192.168.1.99>;tag=BQkSs7RyxeHABXmniVnUY-P64EGdQgAt
To: sip:toto at 192.168.1.102;tag=0cce216923d24d11b3a611f32b73a4db
Call-ID: 65nc033OE7DiFEo3WDfY6lda9DKB37gZ
CSeq: 7 ACK
Content-Length:  0


--end msg--
15:30:22.926  strm0x129746c !VAD re-enabled
15:30:23.134 vstdec0x12a9b6  codec decode() error: Bad or corrupted bitstream (PJMEDIA_CODEC_EBADBITSTREAM) [err:220087]
15:30:23.234 vstdec0x12a9b6  codec decode() error: Bad or corrupted bitstream (PJMEDIA_CODEC_EBADBITSTREAM) [err:220087]
15:30:23.369 vstdec0x12a9b6  codec decode() error: Bad or corrupted bitstream (PJMEDIA_CODEC_EBADBITSTREAM) [err:220087]
15:30:23.401   pjsua_core.c  .TX 605 bytes Request msg INFO/cseq=8 (tdta0x1794290) to UDP 192.168.1.102:5060:
INFO sip:192.168.1.102:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.99:5060;rport;branch=z9hG4bKPj9la6jRkw4gAcAyMfSHsC.XqbxQ8Ea41n
Max-Forwards: 70
From: <sip:192.168.1.99>;tag=BQkSs7RyxeHABXmniVnUY-P64EGdQgAt
To: sip:toto at 192.168.1.102;tag=0cce216923d24d11b3a611f32b73a4db
Call-ID: 65nc033OE7DiFEo3WDfY6lda9DKB37gZ
CSeq: 8 INFO
User-Agent: PJSUA v2.2.1 Linux-3.10.25/armv6l/glibc-2.13
Content-Type: application/media_control+xml
Content-Length:   146

<?xml version="1.0" encoding="utf-8" ?><media_control><vc_primitive><to_encoder><picture_fast_update/></to_encoder></vc_primitive></media_control>
--end msg--
15:30:23.482   pjsua_core.c  .RX 343 bytes Response msg 200/INFO/cseq=8 (rdata0x12770c4) from UDP 192.168.1.102:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.99:5060;rport=5060;received=192.168.1.99;branch=z9hG4bKPj9la6jRkw4gAcAyMfSHsC.XqbxQ8Ea41n
Call-ID: 65nc033OE7DiFEo3WDfY6lda9DKB37gZ
From: <sip:192.168.1.99>;tag=BQkSs7RyxeHABXmniVnUY-P64EGdQgAt
To: <sip:toto at 192.168.1.102>;tag=0cce216923d24d11b3a611f32b73a4db
CSeq: 8 INFO
Content-Length:  0


--end msg--
15:30:23.491   pjsua_core.c  .RX 343 bytes Response msg 200/INFO/cseq=8 (rdata0x12770c4) from UDP 192.168.1.102:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.99:5060;rport=5060;received=192.168.1.99;branch=z9hG4bKPj9la6jRkw4gAcAyMfSHsC.XqbxQ8Ea41n
Call-ID: 65nc033OE7DiFEo3WDfY6lda9DKB37gZ
From: <sip:192.168.1.99>;tag=BQkSs7RyxeHABXmniVnUY-P64EGdQgAt
To: <sip:toto at 192.168.1.102>;tag=0cce216923d24d11b3a611f32b73a4db
CSeq: 8 INFO
Content-Length:  0


--end msg--
15:30:23.483 vstdec0x12a9b6  codec decode() error: Bad or corrupted bitstream (PJMEDIA_CODEC_EBADBITSTREAM) [err:220087]
15:30:23.622 vstdec0x12a9b6  codec decode() error: Bad or corrupted bitstream (PJMEDIA_CODEC_EBADBITSTREAM) [err:220087]
15:30:23.948      sdl_dev.c  Stopping sdl video stream
15:30:23.957      sdl_dev.c  Starting sdl video stream
^CCannot switch back to console from file redirection
15:30:53.251   pjsua_core.c !Shutting down, flags=0...
15:30:53.254   pjsua_core.c  PJSUA state changed: RUNNING --> CLOSING
15:30:53.260   pjsua_call.c  .Hangup all calls..
15:30:53.262   pjsua_call.c  ..Call 0 hanging up: code=0..
15:30:53.264   pjsua_core.c  ......TX 409 bytes Request msg BYE/cseq=9 (tdta0x1794290) to UDP 192.168.1.102:5060:
BYE sip:192.168.1.102:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.99:5060;rport;branch=z9hG4bKPj1msHNktXWWnfhkhq9nRjQaHcxRm8tt0Y
Max-Forwards: 70
From: <sip:192.168.1.99>;tag=BQkSs7RyxeHABXmniVnUY-P64EGdQgAt
To: sip:toto at 192.168.1.102;tag=0cce216923d24d11b3a611f32b73a4db
Call-ID: 65nc033OE7DiFEo3WDfY6lda9DKB37gZ
CSeq: 9 BYE
User-Agent: PJSUA v2.2.1 Linux-3.10.25/armv6l/glibc-2.13
Content-Length:  0

--end msg--
15:30:53.290  pjsua_media.c  .Call 0: deinitializing media..
15:30:53.305  pjsua_media.c  ...Media stream call00:0 is destroyed
15:30:53.307    pjsua_vid.c  ...Stopping video stream..
15:30:53.540 colorbar_dev.c  ....Stopping cbar video stream
15:30:53.542 colorbar_dev.c  ....Starting cbar video stream
15:30:53.572      sdl_dev.c  ....Stopping sdl video stream
15:30:53.573    pjsua_vid.c  ....Window 1: destroying..
15:30:53.575      sdl_dev.c  .....Stopping sdl video stream
15:30:53.577     vid_port.c  .....Closing SDL renderer..
15:30:53.578      sdl_dev.c  .....Stopping sdl video stream
15:30:53.629  pjsua_media.c  ...Media stream call00:1 is destroyed
15:30:53.643  pjsua_media.c  .Call 1: deinitializing media..
15:30:53.647  pjsua_media.c  .Call 2: deinitializing media..
15:30:53.649  pjsua_media.c  .Call 3: deinitializing media..
15:30:53.651   pjsua_pres.c  .Shutting down presence..
15:30:53.653   pjsua_core.c  ..RX 342 bytes Response msg 200/BYE/cseq=9 (rdata0x12770c4) from UDP 192.168.1.102:5060:
SIP/2.0 200 OK
Via: SIP/2.0/UDP 192.168.1.99:5060;rport=5060;received=192.168.1.99;branch=z9hG4bKPj1msHNktXWWnfhkhq9nRjQaHcxRm8tt0Y
Call-ID: 65nc033OE7DiFEo3WDfY6lda9DKB37gZ
From: <sip:192.168.1.99>;tag=BQkSs7RyxeHABXmniVnUY-P64EGdQgAt
To: <sip:toto at 192.168.1.102>;tag=0cce216923d24d11b3a611f32b73a4db
CSeq: 9 BYE
Content-Length:  0

  << after pressing 'h' key (remote UA hangs-up and its video window closes) >>

--end msg--
16:40:43.747    pjsua_app.c  .....Call 2 is DISCONNECTED [reason=200 (Normal call clearing)]
16:40:43.750 pjsua_app_comm  .....
  [DISCONNCTD] To: sip:toto at 192.168.1.102;tag=645dde420482409c80923c767a78f742
    Call time: 00h:00m:10s, 1st res in 486 ms, conn in 13093ms
    #0 audio speex @16kHz, sendrecv, peer=192.168.1.102:4002
       SRTP status: Not active Crypto-suite: 
       RX pt=98, last update:00h:00m:00.262s ago
          total 65pkt 4.5KB (7.1KB +IP hdr) @avg=3.4Kbps/5.3Kbps
          pkt loss=0 (0.0%), discrd=0 (0.0%), dup=0 (0.0%), reord=0 (0.0%)
                (msec)    min     avg     max     last    dev
          loss period:   0.000   0.000   0.000   0.000   0.000
          jitter     :   0.312   6.538  11.375   7.187   3.314
       TX pt=98, ptime=20, last update:00h:00m:10.476s ago
          total 55pkt 2.4KB (4.6KB +IP hdr) @avg=1.8Kbps/3.4Kbps
          pkt loss=0 (0.0%), dup=0 (0.0%), reorder=0 (0.0%)
                (msec)    min     avg     max     last    dev 
          loss period:   0.000   0.000   0.000   0.000   0.000
          jitter     :   0.000   0.000   0.000   0.000   0.000
       RTT msec      :   0.000   0.000   0.000   0.000   0.000
    #1 video H264, sendrecv, peer=192.168.1.102:4004
       SRTP status: Not active Crypto-suite: 
       RX pt=97, size=640x480, fps=30.00, last update:00h:00m:09.551s ago
          total 167pkt 71.6KB (78.3KB +IP hdr) @avg=56.2Kbps/61.4Kbps
          pkt loss=0 (0.0%), discrd=0 (0.0%), dup=0 (0.0%), reord=0 (0.0%)
                (msec)    min     avg     max     last    dev
          loss period:   0.000   0.000   0.000   0.000   0.000
          jitter     :   3.611  67.691 105.000 104.000  29.012
       TX pt=97, size=720x480, fps=15.00, last update:never
          total 0pkt 0B (0B +IP hdr) @avg=0bps/0bps
          pkt loss=0 (0.0%), dup=0 (0.0%), reorder=0 (0.0%)
                (msec)    min     avg     max     last    dev 
          loss period:   0.000   0.000   0.000   0.000   0.000
          jitter     :   0.000   0.000   0.000   0.000   0.000
       RTT msec      :   0.000   0.000   0.000   0.000   0.000
16:40:43.770  pjsua_media.c  .....Call 2: deinitializing media..
16:40:43.772  pjsua_media.c  .......Media stream call02:0 is destroyed
16:40:43.776    pjsua_vid.c  .......Stopping video stream..
16:40:43.993 colorbar_dev.c  ........Stopping cbar video stream
16:40:43.995 colorbar_dev.c  ........Starting cbar video stream
16:40:44.056      sdl_dev.c  ........Stopping sdl video stream
16:40:44.057    pjsua_vid.c  ........Window 1: destroying..
16:40:44.058      sdl_dev.c  .........Stopping sdl video stream
16:40:44.060     vid_port.c  .........Closing SDL renderer..
16:40:44.062      sdl_dev.c  .........Stopping sdl video stream
16:40:44.122  pjsua_media.c  .......Media stream call02:1 is destroyed
16:40:44.772    pjsua_aud.c  Closing sound device after idle for 1 second(s)
16:40:44.774    pjsua_app.c  .Turning sound device OFF
16:40:44.776    pjsua_aud.c  .Closing null sound device..
16:41:06.767  tcpc0x1257e24  TCP transport destroyed normally

  << after pressing 'q' key >>

>>> q
16:43:38.411   pjsua_core.c !Shutting down, flags=0...
16:43:38.413   pjsua_core.c  PJSUA state changed: RUNNING --> CLOSING
16:43:38.424   pjsua_call.c  .Hangup all calls..
16:43:38.426  pjsua_media.c  .Call 0: deinitializing media..
16:43:38.427  pjsua_media.c  .Call 1: deinitializing media..
16:43:38.429  pjsua_media.c  .Call 2: deinitializing media..
16:43:38.430  pjsua_media.c  .Call 3: deinitializing media..
16:43:38.432   pjsua_pres.c  .Shutting down presence..
16:43:39.439   pjsua_core.c  .Destroying...
16:43:39.440  pjsua_media.c  .Shutting down media..
16:43:39.691    pjsua_vid.c  ..Destroying video subsystem..
16:43:39.693    pjsua_vid.c  ...Window 0: destroying..
16:43:39.696 colorbar_dev.c  ....Stopping cbar video stream
16:43:39.698     vid_port.c  ....Closing Colorbar generator..
16:43:39.699 colorbar_dev.c  ....Stopping cbar video stream
16:43:39.701      sdl_dev.c  ....Stopping sdl video stream
16:43:39.703     vid_port.c  ....Closing SDL renderer..
16:43:39.704      sdl_dev.c  ....Stopping sdl video stream
16:43:39.722    pjsua_vid.c  ...Window 1: destroying..
16:43:39.723    pjsua_vid.c  ...Window 2: destroying..
16:43:39.725    pjsua_vid.c  ...Window 3: destroying..
16:43:39.727    pjsua_vid.c  ...Window 4: destroying..
16:43:39.728    pjsua_vid.c  ...Window 5: destroying..
16:43:39.729    pjsua_vid.c  ...Window 6: destroying..
16:43:39.730    pjsua_vid.c  ...Window 7: destroying..
16:43:39.731    pjsua_vid.c  ...Window 8: destroying..
16:43:39.732    pjsua_vid.c  ...Window 9: destroying..
16:43:39.732    pjsua_vid.c  ...Window 10: destroying..
16:43:39.732    pjsua_vid.c  ...Window 11: destroying..
16:43:39.733    pjsua_vid.c  ...Window 12: destroying..
16:43:39.733    pjsua_vid.c  ...Window 13: destroying..
16:43:39.733    pjsua_vid.c  ...Window 14: destroying..
16:43:39.734    pjsua_vid.c  ...Window 15: destroying..
16:43:39.743       pa_dev.c  ..PortAudio sound library shutting down..
16:43:39.745 sip_transactio  .Stopping transaction layer module
16:43:39.746 sip_transactio  .Stopped transaction layer module
16:43:39.748 sip_endpoint.c  .Module "mod-default-handler" unregistered
16:43:39.749 sip_endpoint.c  .Module "mod-unsolicited-mwi" unregistered
16:43:39.751 sip_endpoint.c  .Module "mod-pjsua-options" unregistered
16:43:39.752 sip_endpoint.c  .Module "mod-pjsua-im" unregistered
16:43:39.753 sip_endpoint.c  .Module "mod-pjsua-pres" unregistered
16:43:39.754 sip_endpoint.c  .Module "mod-pjsua" unregistered
16:43:39.754 sip_endpoint.c  .Module "mod-stateful-util" unregistered
16:43:39.755 sip_endpoint.c  .Module "mod-refer" unregistered
16:43:39.755 sip_endpoint.c  .Module "mod-mwi" unregistered
16:43:39.756 sip_endpoint.c  .Module "mod-presence" unregistered
16:43:39.757 sip_endpoint.c  .Module "mod-evsub" unregistered
16:43:39.758 sip_endpoint.c  .Module "mod-invite" unregistered
16:43:39.758 sip_endpoint.c  .Module "mod-100rel" unregistered
16:43:39.758 sip_endpoint.c  .Module "mod-ua" unregistered
16:43:39.759 sip_transactio  .Transaction layer module destroyed
16:43:39.760 sip_endpoint.c  .Module "mod-tsx-layer" unregistered
16:43:39.760 sip_endpoint.c  .Module "mod-msg-print" unregistered
16:43:39.761 sip_endpoint.c  .Module "mod-pjsua-log" unregistered
16:43:39.763    tcplis:5060  .SIP TCP listener destroyed
16:43:39.764 sip_endpoint.c  .Endpoint 0x1208d2c destroyed
16:43:39.766   pjsua_core.c  .PJSUA state changed: CLOSING --> NULL
16:43:39.767   pjsua_core.c  .PJSUA destroyed...






[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