tmakkonen / sipcmd

sipcmd
327 stars 108 forks source link

sipcmd terminates when call is picked up #45

Open meister-petz opened 7 years ago

meister-petz commented 7 years ago

Hi, when executing sipcmd to call someone. sipcmd terminates when the call is picked up. System: Raspbian GNU/Linux 8 This is my command: sudo /opt/sipcmd-master/sipcmd -P sip -u 70 -c <password> -w 192.168.1.10 -x 'c20;w10000;h'

Could you please help. Thanks

This is the output:

Starting sipcmd
in debug mode
Manager
Init
initialising SIP endpoint...
Listening for SIP signalling on 0.0.0.0:TestChanAudio
TestChanAudio
5060
SIP listener up
registered as sip:70@192.168.1.10
Created LocalEndPoint
Main
## Call ##
TestPhone::Main: calling "20" using gateway "192.168.1.10" at Fri Nov 18 14:46:20 2016

Setting up a call to: sip:20@192.168.1.10
LocalEndpoint::MakeConnection
LocalEndpointCreateConnection
LocalConnection
OnIncomingConnection: token=Lf47b23482
connection set up to sip:20@192.168.1.10
TestPhone::Main: calling "sip:20@192.168.1.10" for 0
TestPhone::Main: calling "sip:20@192.168.1.10" for 0
TestPhone::Main: calling "sip:20@192.168.1.10" for 0
TestPhone::Main: calling "sip:20@192.168.1.10" for 1
TestPhone::Main: calling "sip:20@192.168.1.10" for 1
TestPhone::Main: calling "sip:20@192.168.1.10" for 1
TestPhone::Main: calling "sip:20@192.168.1.10" for 1
TestPhone::Main: calling "sip:20@192.168.1.10" for 1
TestPhone::Main: calling "sip:20@192.168.1.10" for 1
TestPhone::Main: calling "sip:20@192.168.1.10" for 1
TestPhone::Main: calling "sip:20@192.168.1.10" for 1
TestPhone::Main: calling "sip:20@192.168.1.10" for 2
TestPhone::Main: calling "sip:20@192.168.1.10" for 2
TestPhone::Main: calling "sip:20@192.168.1.10" for 2
TestPhone::Main: calling "sip:20@192.168.1.10" for 2
OnOpenMediaStream
recording media from sip
CreateMediaStream
TestChannel[ Call[Cba18a7b31]-EP<local>[Lf47b23482] - 0x6e129a88 ]
OnOpenMediaStream
streaming media to local
TestPhone::Main: calling "sip:20@192.168.1.10" for 4
TestChannel::Write
pi@raspberrypi:~ $
bloodcarter commented 7 years ago

The same problem.

S-trace commented 6 years ago

Try the patch from https://github.com/tmakkonen/sipcmd/issues/55