Skip to main content
Aug 21, 2006 2:34 PM UTC
Answered

SMS alias

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 is closed to new replies. Start a new post to keep the conversation going.
Correct answer
Aug 21, 2006 4:03 PM UTC
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
Jul 24, 2023 8:33 PM UTC

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.

Translate
Correct answer
Aug 21, 2006 4:03 PM UTC
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)
Translate