[Live-devel] playSIP and stdout file not readable

Plischke, Markus m.plischke at q-mex.net
Tue Dec 31 00:28:54 PST 2013


Hi,

ich have a little problem with playSIP. My goal ist o call a asterisk server in the same network and be member in a confbridge an record everything.
So far, everything is working except reading the recording:

Command:
/usr/local/bin/playSIP -a -A 8 -u user secret sip:3 at 172.16.16.53:5060 > /root/test.alaw

SIP Log:
Sending request: INVITE sip:3 at 172.16.16.53:5060 SIP/2.0
From: user <sip:user at 172.16.16.30>;tag=2320758990
Via: SIP/2.0/UDP 172.16.16.30:55880
Max-Forwards: 70
To: sip:3 at 172.16.16.53:5060
Contact: sip:user at 172.16.16.30:55880
Call-ID: 362181582 at 172.16.16.30
CSeq: 1 INVITE
Content-Type: application/sdp
User-Agent: playSIP (LIVE555 Streaming Media v2013.12.29)
Content-Length: 115

v=0
o=- 362181582 0 IN IP4 172.16.16.30
s=playSIP session
c=IN IP4 172.16.16.30
t=0 0
m=audio 8000 RTP/AVP 8

Received INVITE response: SIP/2.0 100 Trying
Via: SIP/2.0/UDP 172.16.16.30:55880;received=172.16.16.30;rport=55880
From: user <sip:user at 172.16.16.30>;tag=2320758990
To: sip:3 at 172.16.16.53:5060
Call-ID: 362181582 at 172.16.16.30
CSeq: 1 INVITE
Server: Asterisk PBX 11.2-cert1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Contact: <sip:3 at 172.16.16.53:5060>
Content-Length: 0


Received INVITE response: SIP/2.0 200 OK
Via: SIP/2.0/UDP 172.16.16.30:55880;received=172.16.16.30;rport=55880
From: user <sip:user at 172.16.16.30>;tag=2320758990
To: sip:3 at 172.16.16.53:5060;tag=as0fde14b4
Call-ID: 362181582 at 172.16.16.30
CSeq: 1 INVITE
Server: Asterisk PBX 11.2-cert1
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO, PUBLISH
Supported: replaces, timer
Contact: <sip:3 at 172.16.16.53:5060>
Content-Type: application/sdp
Content-Length: 210

v=0
o=root 1879260998 1879260998 IN IP4 172.16.16.53
s=Asterisk PBX 11.2-cert1
c=IN IP4 172.16.16.53
t=0 0
m=audio 15144 RTP/AVP 8
a=rtpmap:8 PCMA/8000
a=silenceSupp:off - - - -
a=ptime:20
a=sendrecv

Opened URL "sip:3 at 172.16.16.53:5060", returning a SDP description:
v=0
o=- 362181582 0 IN IP4 172.16.16.30
s=playSIP session
c=IN IP4 172.16.16.30
t=0 0
m=audio 8000 RTP/AVP 8

Created receiver for "audio/PCMA" subsession (client ports 8000-8001)
Setup "audio/PCMA" subsession (client ports 8000-8001)
Outputting data from the "audio/PCMA" subsession to "stdout"
Sending request: ACK sip:3 at 172.16.16.53:5060 SIP/2.0
From: user <sip:user at 172.16.16.30>;tag=2320758990
Via: SIP/2.0/UDP 172.16.16.30:55880
Max-Forwards: 70
To: sip:3 at 172.16.16.53:5060;tag=as0fde14b4
Call-ID: 362181582 at 172.16.16.30
CSeq: 1 ACK
Content-Length: 0


Started playing session
Receiving streamed data (signal with "kill -HUP 17755" or "kill -USR1 17755" to terminate)...

If i cancelt he recording, the file cant be played with nothing:

server ~ # ffprobe test.alaw
ffprobe version 1.0.8 Copyright (c) 2007-2013 the FFmpeg developers
  built on Dec 30 2013 15:28:54 with gcc 4.7.3 (Gentoo 4.7.3-r1 p1.4, pie-0.5.5)
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=corei7 -O2 -pipe' --extra-cflags='-march=corei7 -O2 -pipe' --extra-cxxflags='-march=corei7 -O2 -pipe' --disable-static --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --disable-stripping --disable-debug --disable-doc --disable-vaapi --disable-vdpau --disable-ffplay --enable-libmp3lame --enable-libtheora --disable-indev=v4l2 --disable-indev=alsa --disable-indev=oss --disable-indev=jack --disable-outdev=alsa --disable-outdev=oss --disable-outdev=sdl --enable-libvorbis --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-avx --disable-mmxext --disable-vis --disable-neon --cpu=corei7 --enable-hardcoded-tables
  libavutil      51. 73.101 / 51. 73.101
  libavcodec     54. 59.100 / 54. 59.100
  libavformat    54. 29.104 / 54. 29.104
  libavdevice    54.  2.101 / 54.  2.101
  libavfilter     3. 17.100 /  3. 17.100
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
test.alaw: Invalid data found when processing input
server~ # file test.alaw
test.alaw: ISO-8859 text, with very long lines, with no line terminators

ffpeg supports the PCMA Codec.

What im doing wrong?

Regards
Markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20131231/1669ed34/attachment.html>


More information about the live-devel mailing list