SMS spoofing (PDU)? - sms

I was trying to replace the sender address with an alphanumeric text by adding a UDH to the PDU string? Unfortunately this didn't work. Maybe because the spoofed address is being replaced by the SMSC?

From a normal mobile phone of mobile modem you cannot change the sender address via a SMS-SUBMIT PDU. The SMSC will change the sender address to your the ME address (mobile modem or mobile phone).
You can only change the sender address if you have a direct connection to an SMSC via HTTP, SMPP or SMTP for example depending on the SMSC service provider.

Related

Is SMS Over IMS That Important

2G and 3G have been sunset in few countries and other countries will be sunsetting them soon. VoLTE feature of LTE modules is necessary to be able to do calls over 4G without 2G/3G fallback need.
Native SMS can be transmitted or received over 2G/3G circuit switched or packet switched. when 2G/3G are completely removed and we are left with 4G and 5G only. is the only way for SMS to continue is the use of IMS or are there any different solutions?
No. SMS over IMS is not the only way for the SMS to be transmitted in 4G/5G.
In both 4G and 5G (SA) architectures you can send an SMS in two ways: over IP/IMS, or over NAS (SG-SMS).
So for the equipment to send an SMS over IMS you need to first register on IMS (either VoLTE or VoWifi) including +g.3gpp.smsip parameter into the Contact header of your IMS SIP REGISTER.
If you do not inform SMS over IMS capability to the network in that registration, you'll send/receive SMS over NAS. It's very similar to an SMS sent over 2G/3G network, in the sense that the data/text is sent into a control channel and not a data channel.
The ideal way is to send SMS over IP/IMS (IMS is meant to transfer any type of data: text/audio/video/etc.), but there's the fallback solution in both 5GS and 4G networks which is SMS over NAS signaling. Because IMS capability varies a lot from operator to operator, the SMS over NAS is a very common scenario.
For more details, refer to the specifications: 3GPP TS 24.341 (Support of SMS over IP networks) and 3GPP TS 24.301 (Non-Access-Stratum protocol for EPS).
SMS can be sent over IMS using the IMS Core.
If there is an existing LTE network but no IMS support, still the SMS can be sent or received over the SG interface in the LTE network.
Many operators use the SG interface to deliver and receive SMS.

SENDER ID in Asterisk send gsm SMS

i'm new to asterisk,i wanted to send an SMS using the command
Action: smscommand command: gsm send sms $port+1 $destination "$message" $id
and i did it, the message reach to destination successfully.
What i'm trying now to achieve : is to add a SENDER ID , but by looking into the docs i didn't found any way to do that using the command gsm send sms
any help please !!
thanks in advance
here is what i'm talking about
You can't send text id or short number if you are using usual sim card and gsm gate. Your gsm provider network will not accept any id, it will be selected based on your sim info.
If you need that, you need digital connection via SMSC or third-party sms gate connected via SMSC.

How to establish M2M communication with gammu?

How can I establish a session-based M2M connection with gammu? I'm using hardware module SIM800L and a 4G SIM card. I can do USSD and SMS with gammu, but USSD can only be used to communicate with the operator network, not other SIM card, and SMS is costly since even for 10 chars we must pay the price of an SMS. So, I'm looking for a session-based connection where I pay for the traffic.
If gammu does not allow this, is there an alternative?
Thanks.
Gammu does not allow for more than USSD and SMS.
For a GPRS connection, use wvdial.

send and receive SMS over PSTN

I want to know how to send and receive SMS via PC modem over PSTN? Is there any application to do this for me or what's the protocol of this process?
If you are just trying to send SMS via your PC try Google Voice. It is free and it lets you send and receive SMS from a web browser.
You need an operator who supports fixed line SMS and you need a modem that can send the SMS such as:
http://www.ntstelecom.co.uk/SMSmodem.htm
An application which can send SMS's using a GSM modem and AT commands will probably be able to use the above, in place of the GSM modem, to send the SMS over the PSTN.

Can Kannel use number extensions?

I may set up an SMS gateway using Kannel and a Huawei E220 GSM modem.
Now, my question is, is it possible for Kannel to detect extensions appended to the server's phone number in incoming messages (e.g. someone texts 12345#28 instead of 12345) and/or to send outgoing messages with such extensions appended?
Kannel supports deliver to recipient addresses with a '#' in them, but not by default.
By default Kannel's smsbox (HTTP I/F) has "0123456789 +-" as valid recipient characters. These can be extended to support '#' but setting
group = smsbox
...
sendsms-chars="0123456789 +-#"
That's all well and good but the key is does the underlying messaging layer you use for delivery support it also. For example when testing with a modem (kannel 'at' driver) - the modem returned an ERROR on the send command so it may also perform some addressing validation. Also when testing with kannel 'SMPP' connection to a provider the submit_sm request also returned an error. So Yes Kannel supports delivery to/from recipient/destination addresses formatted in that way - but that may be a moot point.
HTHs
Cheers,
Alan

Resources