Unable to set Register Required to true

Discussion in 'Web Call Server 5' started by Sam Udotong, May 17, 2017.

  1. Sam Udotong

    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!
  2. Max

    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
  3. Sam Udotong

    Sam Udotong New Member

    Just sent them over Max! Thanks!
  4. Max

    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
  5. Sam Udotong

    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)
  6. Max

    Max Administrator Staff Member

    Sam Udotong likes this.
  7. Max

    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.
    Sam Udotong likes this.
  8. Max

    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

Share This Page