vavavr00m / pwm

Automatically exported from code.google.com/p/pwm
0 stars 0 forks source link

Don't need/can't use the default SMS county code in our solution! #225

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago

Our SMS gateway provider has a restriction on the mobile number to be only 8 
digits. BUT In the PWM configuration the Default SMS country code is a required 
field. We can't leave it blank and if we provide the country code then it 
exceeds the allowed number of digits with our SMS gateway provider.

Is there any possibility to make the Default SMS country code an optional 
value???
If someone can please guide me in this regards, please.

I will be extremely thankful for your kind help. Thanks

Regards
Izaz 

Original issue reported on code.google.com by haqa...@gmail.com on 21 Jun 2012 at 10:08

GoogleCodeExporter commented 9 years ago
Hi,

I'll look for a real solution later, but in the meantime, try:
* Change PwmSettings.properties:
  REGEX_sms.defaultCountryCode=^\d{1,3}$
  into
  REGEX_sms.defaultCountryCode=^\d{0,3}$
* Change PwmSetting.java:
      SMS_DEFAULT_COUNTRY_CODE(
            "sms.defaultCountryCode", Syntax.NUMERIC, Category.SMS, true, Level.ADVANCED),
  into
    SMS_DEFAULT_COUNTRY_CODE(
            "sms.defaultCountryCode", Syntax.NUMERIC, Category.SMS, false, Level.ADVANCED),

- Menno

Original comment by menno.pi...@gmail.com on 21 Jun 2012 at 7:03

GoogleCodeExporter commented 9 years ago
Issue 224 has been merged into this issue.

Original comment by menno.pi...@gmail.com on 21 Jun 2012 at 7:03

GoogleCodeExporter commented 9 years ago
Should be fixed in r434. Set code to 0 and prefix to none

Original comment by menno.pi...@gmail.com on 10 Jul 2012 at 9:02