Unable to set Register Required to true

Sam Udotong

New Member
Hi,

I'm working on connecting Twilio with SIP through WCS 5 like https://www.twilio.com/docs/api/twilio-sip/pv-sip-registration, which requires a registration on the call request. Everything works fine when
Code:
sipRegisterRequired = false
However, when setting it to true, my call ends immediately and my flashphoner_manager.log file shows "AUTHENTICATION_FAIL" after the /CallApp/RegistrationStatusEvent request. I have verified that my sipLogin, sipPassword, etc are correct because when using the same settings in a softphone like Zoiper, I am able to register and connect with no issues.

This is the case both in my node.js code and in the SIP as RTMP Broadcasting page on port 9091. Any tips for getting this to work? Thanks!
 

Max

Administrator
Staff member
Hello
Please send your testing SIP registration credentials, which work in a softphone but do not work in WCS.
Please add our WCS server wcs5-eu.flashphoner.com (46.101.108.90) to your whitelist.
We will test SIP registration with your data from our server.
You can send your credentials to logs@flashphoner.com
 

Max

Administrator
Staff member
Add this line to WCS_HOME/conf/flashphoner.properties
Code:
add_register_auth_headers=false
It should fix the issue.
Do WCS restart to apply changes
Code:
service webcallserver restart
 

Sam Udotong

New Member
That worked!! Thanks so much.

Is there a way to unregister an Auth name from WCS? (through the interface and/or programmatically)
 

Max

Administrator
Staff member
We have checked /call/terminate method
And we are able to see that WCS sends REGISTER request with Expires: 0 (unregister) upon call termination.
However Twilio rejects such unregister request. We have to find out why.
 

Max

Administrator
Staff member
Unregistering fixed in server build 2234.
You have to update to the latest available build.
Code:
service webcallserver update
So when you do:
Code:
/call/startup
SIP agent is registered
when you do
Code:
/call/terminate
SIP agent is unregistered
This and other settings in WCS_HOME/conf will be preserved during update:
Code:
add_register_auth_headers=false
 
Top