tmakkonen / sipcmd

sipcmd
327 stars 108 forks source link

Error when using free2.voipgateway.org #41

Open TheNetStriker opened 8 years ago

TheNetStriker commented 8 years ago

I'am trying to use sipcmd with the free2.voipgateway.org server using the following commandline:

sipcmd -u 123546789 -c mypw -P sip -w free2.voipgateway.org -x "c987654321;ws3000;vtest.wav;h"

I always get the error "OnReleased: reason: EndedBySecurityDenial". What could be the problem? Here is the whole 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:123456789@free2.voipgateway.org
Created LocalEndPoint
Main
## Call ##
TestPhone::Main: calling "987654321" using gateway "free2.voipgateway.org" at Wed Jan 13 16:51:04 2016

Setting up a call to: sip:987654321@free2.voipgateway.org
LocalEndpoint::MakeConnection
LocalEndpointCreateConnection
LocalConnection
OnIncomingConnection: token=L5d00ab8b2
connection set up to sip:987654321@free2.voipgateway.org
TestPhone::Main: calling "sip:987654321@free2.voipgateway.org" for 0
OnReleased: reason: EndedBySecurityDenial
OnReleased: reason: EndedBySecurityDenial
OnClearedCall
## Wait: waiting for 500ms ##
Wait: wait done
## Voice audiofile=smokealert.wav ##
PlaybackAudioFile
PlaybackAudioFile: state 3
## Hangup ##
Hangup: at Wed Jan 13 16:51:05 2016
xxxmtixxx commented 7 years ago

Old post, I know, but I have the same issue. I'm using RingCentral though. Did you ever figure this out?

xxxmtixxx commented 7 years ago

I was able to resolve this by removing the "h" at the end and moving to CallCentric, though I'm not entirely sure if the "h" is needed just yet in my script. Regardless, from my standpoint, my issue is resolved. Hope this helps.

kgh-85 commented 3 years ago

I also ran into this error and got a solution: When you have some/any virtual network interface(s) it will lead to this error. I checked with ifconfig and after i.e. ifconfig docker0 down it worked.

After analyzing the debug opal logs with the -o option of sipcmd I think the root cause is, that sipcmd is sending requests with all available interface IPs to the sip server which then will cause "EndedBySecurityDenial". This will also happen if you specify the ip with the -l param (local address to listen on)