Thank you, Henk Helmantel!
It is work for me
You can route a message to a specific gateway with the 'gateway' parameter in the HTTP call, for instance if you want to send a message with gateway 'GSM Modem Gateway 1', you can use the following URI:
Ok. I understand that SIM-card have concrete number and this can't change. But my question another...
I Have 10 SIM-cards. I can receive SMS - all good.
Now, I want send message from 3th SIM-card where number = 79998887766. I need send SMS from that number or check balance.
And when I try to send message from 3th SIM-card and write in field number 79998887766 - it doesn't work for me. SMS sended from random SIM-card (gsm gateway). It may be 1th SIM-card or 7,8th and etc.
You probably do not do anything wrong, but as I said in my first reply, messages that are sent with a GSM modem or mobile phone always have the number of the SIM card as the from address, there is no way to change that.
Hello, Henk Helmantel.
I wrote sender number to field "from" and message sended, but not from number which i wrote.
I tried again and message was send and again from not my number. I think it send from random gsm gateway.
What i did wrong?
My string http://[*REMOVED*]:9710/http/send-message?username=admin&password=&from=%2B79998887766&to=%2B79991112233&message-type=sms.automatic&message=test
If you send a message with a GSM modem or mobile phone, the sender number is always the number that is associated with the SIM card, there is no way to change that. This applies to all messages that are sent with the GSM Modem Gateway in Diafaan SMS Server.
If you send the messages with an online service using the SMPP Gateway or HTTP Gateway you can change the sender number to an alternative number or short text, but this will only work if the online service allows it. Most online SMS services have limits in place for the sender number to prevent spoofing and you sometimes have to register the numbers you want to use. Diafaan SMS Server also has a 'Users can override the default from address list' setting in the SMPP Gateway and the services in the HTTP Gateway that you have to select to be able to change the sender number from the HTTP API.
To set the sender number to '+44123456789' you can use the following HTTP API call:
Hello. I want to send message via HTTP and select sender my number. I found that i can it if in url string in field "from" I write "sender id" but i don't know where i can get it is.
Can you help me?
Most Users Ever Online: 529
Currently Browsing this Page:
Guest Posters: 657
Newest Members:, Henk Helmantel
Administrators: Henk Helmantel: 1425