cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3581
Views
2
Helpful
8
Replies

ISE and SMS Gateway questions

Arne Bier
VIP
VIP

Hello

I want to enable SMS notification for my Sponsor Portal and it's proving harder than I thought.

The SMS Provider (https://www.messagemedia.com.au/) provided me with an example URL, such as https://http-api.m4u.com.au/api/send.php?phone=$mobilenumber$&username=SMSProv_Username&password=SMSProv_Password&message$  (and I hard-code the SMSProv_Username and the SMSProv_Password into the URL) and as a test from my desktop PC I am able to send SMS's to my phone.

Now I am having a bit of a tough time translating that into an ISE configuration below.  I will admit that I am not a web developer and phrases like "URL encoded portion" don't mean much to me. In the simplest case, can I take the URL that I was given, and plug that into the ISE GUI without much further config, and it should work?

The SMS Provider does mention a POST method (again, doesn't mean much to me - I wish I understood this better) - in layman's terms, why and when would I use that option?  I just want to have the best option available.

And lastly, how the heck does one troubleshoot this (what log(s) can I trawl?)

When I try send SMS via Sponsor Portal I get the super useful error message "Unable to send SMS"

1 Accepted Solution

Accepted Solutions

Hi Jared -  I have removed the $message$ from the Data field because my SMS contained the message twice.  It appears that the URL contains all the parameters that I needed.

View solution in original post

8 Replies 8

bravojared
Level 4
Level 4

This is a get request.

Try:

URL: https://http-api.m4u.com.au/api/send.php?phone=$mobilenumber$&username=SMSProv_Username&password=SMSProv_Password&message=

and Data (Url Encoded portion): $message$

The variables in ISE ($mobilenumber$ and $message$ are replaced, and the Data field is appended to the URL.  The rest of the values for username/password you have are statics and replace with what you have in the full string.

So when appended together it will look like :

https://http-api.m4u.com.au/api/send.php?phone=$mobilenumber$&username=SMSProv_Username&password=SMSProv_Password&message=$message$

Hi Jared

thanks for the suggestion.  I still get the same error even after I added the $message$ to the Data field.

I need to see the logs to see where the issue is. 

The problem was related to IP routing for my Proxy - I was missing a static route.  I found a clue in the Guest.log file

Still keen to learn more about the http POST method.

Hi Jared -  I have removed the $message$ from the Data field because my SMS contained the message twice.  It appears that the URL contains all the parameters that I needed.

Yes, you see in my link above from earlier today I removed the $messages$ from the URL, only in the data field.

Glad that and the proxy resolved it for you.

Arne can you summarize your setup and perhaps repost as a document with a relevant subject so we can share this example working with this vendor?

Screenshot or sample urls?

Any other relevant data

Sent from my iPhone

sure can do.  I will create a short document

kaihyu
Cisco Employee
Cisco Employee


To avoid sending duplicate SMS messages, the $message$ variable should appear in either the URL or the Data field, but not both. 

When both the URL and the Data fields in the ISE SMS HTTP API configuration contain the $message$ variable, two identical SMS messages are received by the user, despite only one registration attempt.