Search code examples
smschatsipgatewayfreeswitch

Is there a way to bridge out SMS via gateway on FreeSWITCH?


I wonder if there is a way to send sms messages out from freeswitch box via a gateway just like bridge api in mod sofia for calls.

I can originate and receive calls from a sip provider via an external gateway on freeswitch. Now i need to do the same philosophy for chat using the same gateway.

If not, I would be greateful if you recommend an open source http to sip gateway as an alternative.

Thank you for any help.


Solution

  • The answer is indeed using chat application but a follows:

    • Assuming that I have an iptel gateway registered on my FreeSWITCH server "[email protected]" and that I have the following user registered on ipetl "sip:[email protected]"

    • To send an SMS to this user out from FreeSWITCH via the iptel gateway, I can do it from FreeSWITCH console as follows:

    chat sip|noreply@mydomain|external/sip:[email protected]|Hello It's working !

    • Or the api (with ESL for e.g.): api chat sip|noreply@mydomain|external/sip:[email protected]|Hello It's working !

    Of course you can replace the iptel gateway in this example with the gateway that your SIP provider gave you. Make sure that the Gateway supports chat using the SIP SIMPLE protocol.