tmakkonen / sipcmd

sipcmd
327 stars 108 forks source link

EndedByQ931Cause #44

Open baturorkun opened 7 years ago

baturorkun commented 7 years ago

hi Where is my fault? I am listening udpand asterisk by tshark. No data from 127.0.0.1

root@baturorkun:/usr/local/src/sipcmd# ./sipcmd -P sip -u 661 -c abc123 -w 127.0.0.1 -x "c333" Starting sipcmd in debug mode Manager Init initialising SIP endpoint... TestChanAudio TestChanAudio Listening for SIP signalling on 0.0.0.0:5060 SIP listener up registered as sip:661@127.0.0.1 Created LocalEndPoint Main

Call

TestPhone::Main: calling "333" using gateway "127.0.0.1" at Thu Nov 10 09:52:20 2016

Setting up a call to: sip:333@127.0.0.1 LocalEndpoint::MakeConnection LocalEndpointCreateConnection LocalConnection OnIncomingConnection: token=L769f2f3e2 OnReleased: reason: EndedByNoAccept Call setup to sip:333@127.0.0.1 failed Problem running command sequence ("c333"):

TestPhone::Main: shutting down OnReleased: reason: EndedByQ931Cause OnClearedCall ~LocalConnection TestPhone::Main: exiting... Exiting... ~Manager

sasha-x commented 6 years ago

+1

Upd: it works somehow, but sometimes (about 50% calls) process terminates at the beginning with output:

...@ubuntu:~/sipcmd$ ./sipcmd -P sip -u ... -c ... -w 192.168.... -x "l1;c07615;ws50000;d1000000152#"
Starting sipcmd
in debug mode
Manager
Init
initialising SIP endpoint...
TestChanAudio
TestChanAudio
Listening for SIP signalling on 0.0.0.0:5060
SIP listener up
registered as sip:...@...
Created LocalEndPoint
Main
## Call ##
TestPhone::Main: calling "07615" using gateway "192.168...." at Thu Mar  1 11:05:55 2018

Setting up a call to: sip:07615@192.168....
LocalEndpoint::MakeConnection
LocalEndpointCreateConnection
LocalConnection
OnIncomingConnection: token=L6588104b2
connection set up to sip:07615@192.168....
TestPhone::Main: calling "sip:07615@192.168...." for 1
OnReleased: reason: EndedByQ931Cause
## Wait: waiting for 15000ms ##
OnReleased: reason: EndedByQ931Cause
OnClearedCall
~LocalConnection
Wait: wait done
## DTMF "1000000152#" ##
no call found with token=Ce5bff5cc1
Problem running command sequence ("l1;c07615;ws15000;d1000000152#"):

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

Asterisk console is clean in this case (no incoming call).

I am not sure, if it is issue about sipcmd or about asterisk? Should I put asterisk configs here?

sasha-x commented 6 years ago

comment updated.

dimasmir commented 5 years ago

Same issure. In detailed log (-o) "482 (Loop Detected) error message appears. But the reason is unclear.

sasha-x commented 5 years ago

Still interesting...

cb1986ster commented 4 years ago

I had same problem and i "fixed" by using -m [codec] to select the right codec.