This topic is only valid when using SysManSMS_HTTPclient for Microsoft IIS

Lets assume you are located in Norway, where the country code is “+47”. By default you can skip the country code and send like this:

yourserver/sms.aspx?message=Hello&recipients=97408361 (will send to 97408361 inside Norway)

If you include the “+47” (Norway) in front of the number, the plus may not work as expected.

yourserver/sms.aspx?message=Hello&recipients=+4797408361 (will send to 4797408361)

In URL strings a “+” indicate a space, and not a plus sign. Some operators will accept “47”, and automatically add a plus in front of the number, so you may see the above string will work inside your country.

Solution 1

The SysManSMS HTTP IIs Module supports a leading “00” to replace a plus sign.

yourserver/sms.aspx?message=Hello&recipients=004797408361 (will send to +4797408361)

Solution 2

It exists a filter function in SysManSMS HTTP Module which can automatically add, remove or replace leading characters in a number specification. This is activated in web.config file. The following two lines will make sure you add the “+” if your number starts with just “47”. (For other countries, add new “NumberFilter” lines for each country code)

<add key="NumberFilter" value="47,+"/>
<add key="NumberFilterMinimumLength" value="8"/>

This will result in the following handling of a line with the “+” specified:

yourserver/sms.aspx?message=Hello&recipients=+4797408361 (will send to +4797408361)

Solution 3

If you still like to be able to specify the “+”, you will have to code the plus sign in country code as “%2B”

yourserver/sms.aspx?message=Hello&recipients=%2b4797408361 (will send to +4797408361)