Storing phonenumbers

Hi Devs!

I am wondering how to store phonenumbers.

Example:

Rwanda phone numbers are like this. +250783114729

Should I store 783114729, 250783114729 or +250783114729?

When I report data through the gateway DHIS2 recieves data on +250783114729 and maps it correctly to my user, but sends a message back on 250783114729 (without the ‘+’ sign) which does not map to my user.

I tried to send a message to myself on the MTN network and it does not accept a number without the ‘+’ sign before 250783114729.

-Kenneth

Typically you should use 250783114729 in the user settings (i.e. with country code, but without +), but this doesn’t make much sense. We’ve talked so much about fixing this to something more consistent and understandable, but it hasn’t been done yet.

Lars

···

2014-04-02 10:54 GMT+02:00 Kenneth Børtveit kenneth.bortveit@gmail.com:

Hi Devs!

I am wondering how to store phonenumbers.

Example:

Rwanda phone numbers are like this. +250783114729

Should I store 783114729, 250783114729 or +250783114729?

When I report data through the gateway DHIS2 recieves data on +250783114729 and maps it correctly to my user, but sends a message back on 250783114729 (without the ‘+’ sign) which does not map to my user.

I tried to send a message to myself on the MTN network and it does not accept a number without the ‘+’ sign before 250783114729.

-Kenneth


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp


Lars Kristian Roland

Research Fellow, Department of Informatics, University of Oslo

Email: lars@roland.bz - roland@ifi.uio.no

Phone: +47 90733036

Which gateway are you using to send messages?

_A_
···

On 02. april 2014 10:54, Kenneth
Børtveit wrote:

Hi Devs!

I am wondering how to store phonenumbers.

Example:

Rwanda phone numbers are like this. +250783114729

Should I store 783114729, 250783114729 or +250783114729?

      When I report data through the gateway DHIS2 recieves data

on +250783114729 and maps it correctly to my user, but sends a
message back on 250783114729 (without the ‘+’ sign) which does
not map to my user.

      I tried to send a message to myself on the MTN network and

it does not accept a number without the ‘+’ sign before
250783114729.

-Kenneth

_______________________________________________
Mailing list: Post to : Unsubscribe : More help :

-- Peder Andreas Nergaard, Mobile Coordinator
HISP/DHIS2, Department of Informatics, University of Oslo
p: +47 922 47 500 - s: peder.andreas.nergaard - e:

https://launchpad.net/~dhis2-devsdhis2-devs@lists.launchpad.nethttps://launchpad.net/~dhis2-devshttps://help.launchpad.net/ListHelphttp://www.dhis2.org/andreasn@ifi.uio.no

I will use a ‘SMPP’ gateway, but for now I am using ‘Generic HTTP’ gateway.

···

2014-04-02 12:53 GMT+02:00 Peder Andreas Nergaard andreasn@ifi.uio.no:

Which gateway are you using to send messages?

_A_



  On 02. april 2014 10:54, Kenneth Børtveit wrote:

Hi Devs!

I am wondering how to store phonenumbers.

Example:

Rwanda phone numbers are like this. +250783114729

Should I store 783114729, 250783114729 or +250783114729?

      When I report data through the gateway DHIS2 recieves data on +250783114729 and maps it correctly to my user, but sends a message back on 250783114729 (without the '+' sign) which does not map to my user.
      I tried to send a message to myself on the MTN network and it does not accept a number without the '+' sign before 250783114729.

-Kenneth

_______________________________________________ Mailing list: [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : [https://launchpad.net/~dhis2-devs](https://launchpad.net/~dhis2-devs)
More help : [https://help.launchpad.net/ListHelp](https://help.launchpad.net/ListHelp)
-- Peder Andreas Nergaard, Mobile Coordinator HISP/DHIS2, Department of Informatics, University of Oslo [http://www.dhis2.org/](http://www.dhis2.org/)
p: +47 922 47 500 - s: peder.andreas.nergaard - e: andreasn@ifi.uio.no

Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp