Skip to main content
August 21, 2006
Answered

SMS alias

  • August 21, 2006
  • 2 replies
  • 1068 views
if I wanted the sourceAddress to say something other than the cf gateway name for an smpp, and say for example suppose a proper mobile phone number, can this be achieved using the cfmx7 sms gateway? Currently I can only see that I would have to have the sender mobile number registered in CF as a gateway itself?
This topic has been closed for replies.
Correct answer
doh, was getting confused, it is indeed the sourceaddress which according to the example I was running off was also being given the same name as the event gateway (which is generally static)

2 replies

Participant
July 24, 2023

Yes, you can achieve this using the cfmx7 SMS gateway. You can use the sourceAddress parameter to specify the sender's phone number. For example, the following code would send an SMS with the source address 1234567890:

curl -X POST \
  -H "Content-Type: application/json" \
  -d '{
    "to": "1234567890",
    "message": "This is a test message.",
    "sourceAddress": "1234567890"
  }' \
  https://api.cloudfusion.com/sms/v1/send

Note that you will need to have the sender's phone number registered in CloudFusion as a gateway. You can do this by following these steps:

  1. Go to the CloudFusion dashboard.
  2. Click on the Gateways tab.
  3. Click on the Add Gateway button.
  4. Enter the sender's phone number in the Phone Number field.
  5. Select the SMS Bomber Gateway gateway type.
  6. Click on the Save button.

Once the sender's phone number is registered, you can use it as the sourceAddress parameter when sending SMS messages.

Correct answer
August 21, 2006
doh, was getting confused, it is indeed the sourceaddress which according to the example I was running off was also being given the same name as the event gateway (which is generally static)