GithubHelp home page GithubHelp logo

International numbers about atlib HOT 3 CLOSED

hbjorgo avatar hbjorgo commented on July 25, 2024
International numbers

from atlib.

Comments (3)

hbjorgo avatar hbjorgo commented on July 25, 2024

Hi!

Thank you - it's so nice to hear that it's useful! :)

Poland has 9 digit numbers and the country code is 48 if I understand correctly. That means that for a national call/SMS you'd send it to AAA AAA AAA, and from other countries you'd send it to +48 AAA AAA AAA to reach a Polish number - correct?
Can you give me some examples of numbers that work and some that don't?

from atlib.

adamdudzik avatar adamdudzik commented on July 25, 2024

Hi. Indeed +48 AAA AAA AAA - that's correct.
I have a SIMCOM SIM7600G-H and it's compatible with SIM5320 so i've change

SmsTextFormat smsTextFormat = SmsTextFormat.Text;

atChannel.EnableDebug((string line) => Console.WriteLine(line));

using IModem modem = new SIM5320(atChannel);

I use TestConsole and enter the number +48 AAAAAAAAA to send sms.

With

Number = number.TrimStart('+'); in PhoneNumbers.cs

  • `Out: AT+CMGS="48AAAAAAAAA"
  • In:
  • In: >
  • Out: test
  • In:
  • In:
  • In: +CMS ERROR: 500
  • SMS Reference: Error:`

With

Number = number;

  • `Sending SMS...
  • Out: AT+CMGS="+48AAAAAAAAA"
  • In:
  • In: >
  • Out: test
  • In:
  • In:
  • In: +CMGS: 179
  • In:
  • In: OK
  • SMS Reference: Message Reference: 179`

If I use putty and a COM connection only format +48AAAAAAAAA or AAAAAAAAA is valid. The format 48AAAAAAAAAA is invalid.

from atlib.

hbjorgo avatar hbjorgo commented on July 25, 2024

Version 6.0.1 is now out and contains the fix. Hope it fixes your issues. Thank you for reporting this and contributing to making this library better 👏🏼

from atlib.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.