Sms web hook example to manage outgoing SMS messages via SIPStation

Hi,
Does anyone have an example script that intercepts and updates outbound SMS messages via SIPStation? I’m currently using the SMS Web Hook to catch incoming messages and send them via email to the appropriate user(s). I would like to intercept outgoing messages, specifically to append necessary 10DLC messaging, but also to potentially check to make sure an intented recipient has acknowledge SMS messaging.

Where do you setup that right now? Does SIPStation have an auto generated message or do you have to set that up yourself in their portal?

The only real thing you can do is delivery receipts, which is up to your provider to support and just means it was delivered to the other network, but the only way to know if they have acknowledged the message is for them to reply to it.

I don’t remember where or how, I want to say we added it in the SMS module but it does call a module hook. This isn’t used anywhere AFAIK so there is no examples to point to. It was added for one dangerous demo I did at Astricon where I tried to dump everyone in attendance in to a single conference room. It was both a spectacular failure and a learning moment where the Asterisk devs found a bug they wouldn’t have because nobody was stupid enough to try what I had…

The next year I did SMS text message to encrypted fax, again something nobody asked for lol. In anycase yeah the hook is there it just needs to be “discovered”… Side note anyone know about the konami code :wink: