By: Arthur Barrett user 16 Jun 2021 at 10:13 p.m. CDT

3 Responses
Arthur Barrett gravatar
this is a dup of the closed case: https://support.gluu.org/installation/9166/casa-twilio-mobile-registration-not-valid-number/ I'm creating a new case, because I don't have any way to 'reopen' that case, and I believe you are not seeing the comments there. I've also created a bug report here: https://github.com/GluuFederation/casa/issues/138 It is a common enough error and also described here: https://stackoverflow.com/a/58581491 The format of the 'number' passed to the twilio API must be a number up to fifteen digits in length starting with a ‘+’. https://www.twilio.com/docs/glossary/what-e164 The fact twilio accept 1XXXXXXXXX numbers without a '+' is a bug in twilio, but the fact that gluu casa does NOT add the + is a bug in Gluu CASA. There error in casa.log is: ``` 16-06 01:52:01.728 ERROR [qtp534906248-57] plugins.authnmethod.service.TwilioMobilePhoneService TwilioMobilePhoneService.java:85- No message was sent, error was: The 'To' number 44XXXXXXXXXX is not a valid phone number. 16-06 02:00:36.514 ERROR [qtp534906248-17] plugins.authnmethod.service.TwilioMobilePhoneService TwilioMobilePhoneService.java:85- No message was sent, error was: The 'To' number 61XXXXXXXXX is not a valid phone number. ``` Because there is a BUG in twilio - it accepts US numbers without the +, but that is an error that gluu should not be relying on. side note: shouldn't there be a bug category for casa - or is casa and access management the same?

By Mohib Zico staff 20 Jun 2021 at 2:29 p.m. CDT

Mohib Zico gravatar
We will check status...

By Jose Gonzalez staff 23 Jun 2021 at 4:05 p.m. CDT

Jose Gonzalez gravatar
I added a comment to the github issue > side note: shouldn't there be a bug category for casa - or is casa and access management the same? sorry, what did you mean?

By Arthur Barrett user 01 Jul 2021 at 1:33 a.m. CDT

Arthur Barrett gravatar
When you create a support requests in support.gluu.org you are asked to assign a category, eg: identity management - I was wondering if there should be a category for casa? Twilio responded to my support request and said they can't reproduce it using the latest JAR and the one shipped in Gluu is quite old. So I updated it and re-tested it, and the problem still occurs - I have sent the info to twilio and will update here if they come back with any useful reply. ``` cd /opt/gluu/jetty/oxauth/custom/libs mkdir ext rm twilio-7.17.0.jar curl --output twilio-7.47.1.jar https://repo1.maven.org/maven2/com/twilio/sdk/twilio/7.47.1/twilio-7.47.1.jar curl --output twilio-7.17.0.jar https://repo1.maven.org/maven2/com/twilio/sdk/twilio/7.17.0/twilio-7.17.0.jar curl --output twilio-8.15.0.jar https://repo1.maven.org/maven2/com/twilio/sdk/twilio/8.15.0/twilio-8.15.0.jar curl --output jsmpp-2.3.11.jar https://repo1.maven.org/maven2/org/jsmpp/jsmpp/2.3.11/jsmpp-2.3.11.jar chown jetty:jetty twilio*.jar jsmpp*.jar ext cat /opt/gluu/jetty/oxauth/webapps/oxauth.xml <Configure class="org.eclipse.jetty.webapp.WebAppContext"> <Set name="contextPath">/oxauth</Set> <Set name="war"> <Property default="." name="jetty.webapps" />/oxauth.war </Set> <Set name="extractWAR">true</Set> <Set name="extraClasspath">./custom/libs/twilio-8.15.0.jar,./custom/libs/jsmpp-2.3.11.jar</Set></Configure> ```