Support forum

Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
Automatically get SIM card number
sp_NewPost Add Reply sp_NewTopic Add Topic
January 30, 2023
10:40 am
Henk Helmantel
Admin
Forum Posts: 1517
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Diafaan SMS Server does not have an option to trigger an event or a script when a SIM card is changed. But it is possible to use the HTTP API to retrieve an XML document with the settings of Diafaan SMS Server:

http://localhost:9710/http/request-server-status?username=admin&password=password

This XML document shows the phone number of the SIM card in the data in the GSM Modem Gateway settings. The phone number is refreshed each time the gateway is re-started.

Regards, Henk

January 29, 2023
2:04 am
swip
Guest
Guests

Hi Henk, thank you for your answer.

But when the number is stored on the SIM card, is it possible to get the number with scripting connector or something like this?

I just want to connect a new SIM card and then a new db entry should be created. When I open the Diafaan tool I see the modem on COM3 for example. Then I need to wait few seconds and then I see the number of the SIM card there. But I want, that my C# tool listen on these ports over your tool. I just want to know it, when the sim card number change on a specific port. Or do you think it will make more sense to write my own tool for this specific task? But I dont think its that easy, so it would be better, when I can use your tool. But if its not possible, please say so... then I need to go the hard way I think.

January 26, 2023
4:47 pm
Henk Helmantel
Admin
Forum Posts: 1517
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Swip,

Diafaan SMS Server can only get the phone number of the SIM card if it is stored on the SIM card. But even if the number is stored on the SIM card, Diafaan SMS Server does not have a feature to store the number in a database when a new SIM is added.

Regards, Henk

January 25, 2023
11:14 pm
swip
Guest
Guests

Hello,

is it possible to automatically get the number of the sim card I add to my gsm gateway? I want to add a sim card and the server should add a db entry with the corresponding number. I read that some cards store the number, but not all. Another way would be to execute a gsm command to get the number, like *#62#. But is it possible to automate both things, so when I add another card to the gateway, that I will have a new db entry?

I want to use a gsm module with the sql connection.

Thank you very much.

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
7 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 681

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1160

Posts: 3961

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1517