Brandon B.
2016-Nov-29 16:24 UTC
[asterisk-users] Asterisk compatibility with SMS services
Can anyone comment on using SMS in conjunction with VoIP service using one of these three VoIP providers: voip.ms, vitelity.com, flowroute.com? Are some SMS services more compatible with Asterisk (i.e. SMS over SIP works perfectly or not)? Is it best to use a different data channel for SMS messages (i.e. SMS via HTTP, SMS via XMPP) instead of Asterisk's built in SMS application MessageSend <http://www.anveo.com/faq.asp?code=sip_asterisk_sms>? In order to develop a web application for sending and receives SMS messages for business users, are there any pitfalls in using Asterisk to handle the message exchanges? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20161129/46be9ee9/attachment.html>
Sebastian Nielsen
2016-Nov-29 17:01 UTC
[asterisk-users] Asterisk compatibility with SMS services
Im using SMS successfully over VoIP. No problems at all. You however need to use a good codec. However, I don?t use the MessageSend application, instead I use the raw SMS() application. This works by the SMS centre calling my fixed landline from a specific number, I detect the callerid, initiate a SMS reception and then the SMS is in the spool files. If I want to send a outgoing SMS, I push a SMS file in the spool folder, then initate a call to the SMS centre. Ergo, incoming is like this (as early as possible in the dialplan): exten => s,[any],GotoIf($[${CALLERID(num)} = 07409400000]?recvsms,s,1) (where 07409400000 is your SMS centre number) Then at recvsms: [recvsms] exten => s,1,SMS(in-${clid},a) exten => s,2,System(/usr/sbin/mailbot sms ${clid}) exten => s,3,Hangup() (where /usr/sbin/mailbot is a script that reads /var/spool/asterisk/mtrx folder, and clid is a variable containing a random number) Outgoing is like this: Place a file named [RandomA].[RandomB] into /var/spool/asterisk/motx with the following content: da=[number you want to send to] ud=[text you want to send, only GSM alphabet supported, composite messages NOT supported] Then create the following file into /var/spool/asterisk/tmp: Channel: SIP/0740940000 at YOUROPERATOR Callerid: "[YOURNUM]" <[YOURNUM]> Application: SMS Data: [RandomA] (where 0740940000 is your SMS center) Move the file from tmp into /var/spool/asterisk/outgoing/ and the SMS will be sent. Fr?n: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] F?r Brandon B. Skickat: den 29 november 2016 17:25 Till: asterisk-users at lists.digium.com ?mne: [asterisk-users] Asterisk compatibility with SMS services Can anyone comment on using SMS in conjunction with VoIP service using one of these three VoIP providers: voip.ms, vitelity.com, flowroute.com? Are some SMS services more compatible with Asterisk (i.e. SMS over SIP works perfectly or not)? Is it best to use a different data channel for SMS messages (i.e. SMS via HTTP, SMS via XMPP) instead of Asterisk's built in SMS application MessageSend <http://www.anveo.com/faq.asp?code=sip_asterisk_sms> ? In order to develop a web application for sending and receives SMS messages for business users, are there any pitfalls in using Asterisk to handle the message exchanges? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20161129/ab971476/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6298 bytes Desc: S/MIME Cryptographic Signature URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20161129/ab971476/attachment.bin>
Brandon B.
2016-Nov-29 18:07 UTC
[asterisk-users] Asterisk compatibility with SMS services
> Can anyone comment on using SMS in conjunction with VoIP service using > one of these three VoIP providers: voip.ms, vitelity.com, > flowroute.com? Are some SMS services more compatible with Asterisk > (i.e. SMS over SIP works perfectly or not)? Is it best to use a > different data channel for SMS messages (i.e. SMS via HTTP, SMS via > XMPP) instead of Asterisk's built in SMS application MessageSend > <http://www.anveo.com/faq.asp?code=sip_asterisk_sms>? In order to > develop a web application for sending and receives SMS messages for > business users, are there any pitfalls in using Asterisk to handle the > message exchanges? >On 2016-11-29 09:01 AM, Sebastian Nielsen wrote:> > Im using SMS successfully over VoIP. No problems at all. You however > need to use a good codec. > > However, I don?t use the MessageSend application, instead I use the > raw SMS() application. > > This works by the SMS centre calling my fixed landline from a specific > number, I detect the callerid, initiate a SMS reception and then the > SMS is in the spool files. > > If I want to send a outgoing SMS, I push a SMS file in the spool > folder, then initate a call to the SMS centre. >That's pretty cool, thank you for the details. You are using the builtin SMS application that exchanges SMS data over SIP / PSTN connections. I don't believe I can get service like that in Canada. Does anyone use the SMS applications to send and receive SMS messages in North America? Who provides that service? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20161129/d7d02da5/attachment.html>