tmakkonen / sipcmd

sipcmd
327 stars 108 forks source link

Answer option not working #76

Closed DennisMejicanos closed 2 years ago

DennisMejicanos commented 2 years ago

I am currently testing the answer option but it does not detect it, it always answers the incoming call, I have tried with option a, adding the incoming number too, even without placing the option "a" the call always answers itself, ¿Am I doing something wrong?. I leave a part of the log where it is observed that I put a wait of 10 seconds and answer the call before executing the Answer.

sipcmd -p 49819 -P sip -u ext2001 -c password -w 192.168.0.10 -x "w10000;a;h" Starting sipcmd in debug mode Manager Init TestChanAudio TestChanAudio initialising SIP endpoint... Listening for SIP signalling on 0.0.0.0:49819 SIP listener up registered as sip:ext2001@192.168.0.10 Created LocalEndPoint Main

Wait: waiting for 10000ms

OnIncomingConnection: token=5e3bc3b2-efb7-ec11-9571-000c290d2f46 LocalEndpoint::MakeConnection LocalEndpointCreateConnection TestChannel[ Call[Cf8b7489e1]-EP[L7f6ea0aa2] - 0x7f8524019920 ] OnOpenMediaStream recording media from local OnOpenMediaStream streaming media to sip OnOpenMediaStream recording media from sip TestChannel[ Call[Cf8b7489e1]-EP[L7f6ea0aa2] - 0x7f8524021160 ] OnOpenMediaStream streaming media to local OnEstablished OnEstablished OnEstablishedCall In call with sip:ext2001@192.168.0.10:49819 using sip:ext1001@192.168.0.10:5060 token=[Cf8b7489e1] Incoming call from sip:ext1001@192.168.0.10:5060 Close [ Call[Cf8b7489e1]-EP[L7f6ea0aa2] - 0x7f8524019920 ] TestChanAudio::CloseChannel OnClosedMediaStream OnClosedMediaStream OnClosedMediaStream Close [ Call[Cf8b7489e1]-EP[L7f6ea0aa2] - 0x7f8524021160 ] TestChanAudio::CloseChannel OnClosedMediaStream TestChannel[ Call[Cf8b7489e1]-EP[L7f6ea0aa2] - 0x7f8524024660 ] OnOpenMediaStream recording media from local OnOpenMediaStream streaming media to sip OnOpenMediaStream recording media from sip TestChannel[ Call[Cf8b7489e1]-EP[L7f6ea0aa2] - 0x7f85240284e0 ] OnOpenMediaStream streaming media to local Wait: wait done

Answer

Answer: starting at Mon Apr 11 12:27:54 2022

Close [ Call[Cf8b7489e1]-EP[L7f6ea0aa2] - 0x7f8524024660 ] TestChanAudio::CloseChannel OnClosedMediaStream OnClosedMediaStream OnClosedMediaStream Close [ Call[Cf8b7489e1]-EP[L7f6ea0aa2] - 0x7f85240284e0 ] TestChanAudio::CloseChannel OnClosedMediaStream TestChannel[ Call[Cf8b7489e1]-EP[L7f6ea0aa2] - 0x7f852403af60 ] OnOpenMediaStream recording media from local OnOpenMediaStream streaming media to sip OnOpenMediaStream recording media from sip TestChannel[ Call[Cf8b7489e1]-EP[L7f6ea0aa2] - 0x7f852402a1d0 ] OnOpenMediaStream streaming media to local OnClosedMediaStream Close [ Call[Cf8b7489e1]-EP[L7f6ea0aa2] - 0x7f852403af60 ] TestChanAudio::CloseChannel OnClosedMediaStream OnClosedMediaStream Close [ Call[Cf8b7489e1]-EP[L7f6ea0aa2] - 0x7f852402a1d0 ] TestChanAudio::CloseChannel OnClosedMediaStream OnReleased: reason: EndedByRemoteUser Answer: connection established OnReleased: reason: EndedByRemoteUser

Hangup

OnClearedCallHangup: at Mon Apr 11 12:28:05 2022

TestPhone::Main: shutting down TestPhone::Main: exiting... Exiting... ~Manager