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
Recommended
Recent Questions
- Asterisk Release 21.1.0
- Asterisk Release 20.6.0
- Asterisk Release 18.21.0
- Mailing List Shutdown Reminder
- Aeap Wss Connection
- SIP_HEADER GET_TRANSFERRER_DATA Chan_pjsip
- Chan_iax2.c:4739 __auto_congest: Auto-congesting Call Due To Slow Response
- Asterisk Release 21.0.2
- Asterisk Release 20.5.2
- Asterisk Release 18.20.2
Frequent Terms
AMI
Anyone
app
application
asterisk
Asterisk Development Team
call
caller
callerid
chan
cli
com
connection
Dahdi
default
Digium
dtmf
error
exten
extension
file
google
hangup
IAX
incoming calls
linkedin
linux
message
module
pbx
phone
port
PRI
PSTN
queue
realtime
sip
sip phone
source
support
system
thanks in advance
time
trunk
www api
Categories
- Advanced Dialplan
- Asterisk Announces
- Asterisk System Management
- Asterisk Tips
- Asterisk Tutorial
- Asterisk Users
- Book Reviews
- Dialplan Basics
- General
- Initial Configuration of Asterisk
- Installing Asterisk
- IT Jobs
- Java News
- Off Topic News
- Preparing a System for Asterisk
- programming
- Technical News
- Uncategorized
- VoIP News
FAQs Archive
- January 2024 (7)
- December 2023 (12)
- November 2023 (6)
- October 2023 (5)
- September 2023 (7)
- August 2023 (13)
- July 2023 (23)
- June 2023 (17)
- May 2023 (18)
- April 2023 (15)
- March 2023 (5)
- February 2023 (8)
- January 2023 (10)
- December 2022 (9)
- November 2022 (13)
- October 2022 (14)
- September 2022 (10)
- August 2022 (15)
- July 2022 (14)
- June 2022 (7)
- May 2022 (17)
- April 2022 (9)
- March 2022 (14)
- February 2022 (14)
- January 2022 (10)
- December 2021 (15)
- November 2021 (23)
- October 2021 (18)
- September 2021 (12)
- August 2021 (13)
- July 2021 (11)
- June 2021 (13)
- May 2021 (16)
- April 2021 (8)
- March 2021 (11)
- February 2021 (11)
- January 2021 (26)
- December 2020 (36)
- November 2020 (14)
- October 2020 (25)
- September 2020 (21)
- August 2020 (10)
- July 2020 (20)
- June 2020 (37)
- May 2020 (30)
- April 2020 (22)
- March 2020 (22)
- February 2020 (26)
- January 2020 (24)
- December 2019 (26)
- November 2019 (38)
- October 2019 (32)
- September 2019 (23)
- August 2019 (15)
- July 2019 (32)
- June 2019 (20)
- May 2019 (19)
- April 2019 (22)
- March 2019 (31)
- February 2019 (35)
- January 2019 (49)
- December 2018 (35)
- November 2018 (21)
- October 2018 (36)
- September 2018 (18)
- August 2018 (26)
- July 2018 (34)
- June 2018 (34)
- May 2018 (29)
- April 2018 (24)
- March 2018 (31)
- February 2018 (46)
- January 2018 (31)
- December 2017 (39)
- November 2017 (38)
- October 2017 (29)
- September 2017 (28)
- August 2017 (25)
- July 2017 (30)
- June 2017 (43)
- May 2017 (37)
- April 2017 (49)
- March 2017 (36)
- February 2017 (37)
- January 2017 (32)
- December 2016 (45)
- November 2016 (68)
- October 2016 (67)
- September 2016 (65)
- August 2016 (54)
- July 2016 (44)
- June 2016 (59)
- May 2016 (71)
- April 2016 (55)
- March 2016 (77)
- February 2016 (83)
- January 2016 (55)
- December 2015 (44)
- November 2015 (37)
- October 2015 (65)
- September 2015 (68)
- August 2015 (54)
- July 2015 (68)
- June 2015 (78)
- May 2015 (69)
- April 2015 (83)
- March 2015 (113)
- February 2015 (55)
- January 2015 (70)
- December 2014 (68)
- November 2014 (61)
- October 2014 (85)
- September 2014 (72)
- April 2014 (45)
- March 2014 (95)
- February 2014 (72)
- January 2014 (101)
- December 2013 (3)
- November 2013 (1)
- May 2013 (3)
- March 2013 (2)
- February 2013 (1)
- December 2012 (9)
- November 2012 (1)
- October 2012 (2)
- September 2012 (1)
- August 2012 (2)
- July 2012 (3)
- June 2012 (2)
- April 2012 (7)
- March 2012 (5)
- February 2012 (9)
- January 2012 (6)
- December 2011 (11)
- November 2011 (5)
- October 2011 (18)
- September 2011 (12)
- August 2011 (4)
- July 2011 (18)
- June 2011 (5)
- May 2011 (1)
- March 2011 (1)
- February 2011 (2)
- January 2011 (1)
- December 2010 (3)
- November 2010 (3)
- October 2010 (2)
- September 2010 (2)
- August 2010 (1)
Recommended
Frequent Terms
AMI
Anyone
app
application
asterisk
Asterisk Development Team
call
caller
callerid
chan
cli
com
connection
Dahdi
default
Digium
dtmf
error
exten
extension
file
google
hangup
IAX
incoming calls
linkedin
linux
message
module
pbx
phone
port
PRI
PSTN
queue
realtime
sip
sip phone
source
support
system
thanks in advance
time
trunk
www api
Recent Questions
- Asterisk Release 21.1.0
- Asterisk Release 20.6.0
- Asterisk Release 18.21.0
- Mailing List Shutdown Reminder
- Aeap Wss Connection
- SIP_HEADER GET_TRANSFERRER_DATA Chan_pjsip
- Chan_iax2.c:4739 __auto_congest: Auto-congesting Call Due To Slow Response
- Asterisk Release 21.0.2
- Asterisk Release 20.5.2
- Asterisk Release 18.20.2
Categories
- Advanced Dialplan
- Asterisk Announces
- Asterisk System Management
- Asterisk Tips
- Asterisk Tutorial
- Asterisk Users
- Book Reviews
- Dialplan Basics
- General
- Initial Configuration of Asterisk
- Installing Asterisk
- IT Jobs
- Java News
- Off Topic News
- Preparing a System for Asterisk
- programming
- Technical News
- Uncategorized
- VoIP News
FAQs Archive
- January 2024 (7)
- December 2023 (12)
- November 2023 (6)
- October 2023 (5)
- September 2023 (7)
- August 2023 (13)
- July 2023 (23)
- June 2023 (17)
- May 2023 (18)
- April 2023 (15)
- March 2023 (5)
- February 2023 (8)
- January 2023 (10)
- December 2022 (9)
- November 2022 (13)
- October 2022 (14)
- September 2022 (10)
- August 2022 (15)
- July 2022 (14)
- June 2022 (7)
- May 2022 (17)
- April 2022 (9)
- March 2022 (14)
- February 2022 (14)
- January 2022 (10)
- December 2021 (15)
- November 2021 (23)
- October 2021 (18)
- September 2021 (12)
- August 2021 (13)
- July 2021 (11)
- June 2021 (13)
- May 2021 (16)
- April 2021 (8)
- March 2021 (11)
- February 2021 (11)
- January 2021 (26)
- December 2020 (36)
- November 2020 (14)
- October 2020 (25)
- September 2020 (21)
- August 2020 (10)
- July 2020 (20)
- June 2020 (37)
- May 2020 (30)
- April 2020 (22)
- March 2020 (22)
- February 2020 (26)
- January 2020 (24)
- December 2019 (26)
- November 2019 (38)
- October 2019 (32)
- September 2019 (23)
- August 2019 (15)
- July 2019 (32)
- June 2019 (20)
- May 2019 (19)
- April 2019 (22)
- March 2019 (31)
- February 2019 (35)
- January 2019 (49)
- December 2018 (35)
- November 2018 (21)
- October 2018 (36)
- September 2018 (18)
- August 2018 (26)
- July 2018 (34)
- June 2018 (34)
- May 2018 (29)
- April 2018 (24)
- March 2018 (31)
- February 2018 (46)
- January 2018 (31)
- December 2017 (39)
- November 2017 (38)
- October 2017 (29)
- September 2017 (28)
- August 2017 (25)
- July 2017 (30)
- June 2017 (43)
- May 2017 (37)
- April 2017 (49)
- March 2017 (36)
- February 2017 (37)
- January 2017 (32)
- December 2016 (45)
- November 2016 (68)
- October 2016 (67)
- September 2016 (65)
- August 2016 (54)
- July 2016 (44)
- June 2016 (59)
- May 2016 (71)
- April 2016 (55)
- March 2016 (77)
- February 2016 (83)
- January 2016 (55)
- December 2015 (44)
- November 2015 (37)
- October 2015 (65)
- September 2015 (68)
- August 2015 (54)
- July 2015 (68)
- June 2015 (78)
- May 2015 (69)
- April 2015 (83)
- March 2015 (113)
- February 2015 (55)
- January 2015 (70)
- December 2014 (68)
- November 2014 (61)
- October 2014 (85)
- September 2014 (72)
- April 2014 (45)
- March 2014 (95)
- February 2014 (72)
- January 2014 (101)
- December 2013 (3)
- November 2013 (1)
- May 2013 (3)
- March 2013 (2)
- February 2013 (1)
- December 2012 (9)
- November 2012 (1)
- October 2012 (2)
- September 2012 (1)
- August 2012 (2)
- July 2012 (3)
- June 2012 (2)
- April 2012 (7)
- March 2012 (5)
- February 2012 (9)
- January 2012 (6)
- December 2011 (11)
- November 2011 (5)
- October 2011 (18)
- September 2011 (12)
- August 2011 (4)
- July 2011 (18)
- June 2011 (5)
- May 2011 (1)
- March 2011 (1)
- February 2011 (2)
- January 2011 (1)
- December 2010 (3)
- November 2010 (3)
- October 2010 (2)
- September 2010 (2)
- August 2010 (1)
4 thoughts on - Asterisk Compatibility With SMS Services
This is a multipart message in MIME format.
——=_NextPart_000_0036_01D24A6A.965AAF40
Content-Type: text/plain;
charset=”utf-8″
Content-Transfer-Encoding: quoted-printable
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@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@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] För Brandon B. Skickat: den 29 november 2016 17:25
Till: asterisk-users@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?
——=_NextPart_000_0036_01D24A6A.965AAF40
Content-Type: text/html;
charset=”utf-8″
Content-Transfer-Encoding: quoted-printable
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?
i’m using gammu[1] with a 3g dongle and my own chip with my preffer provider. It can send over 700 every our and receive to. I don’t know if you need asterisk and sms in the same way but with this tool you can make everything. It has python tools to.
Best regards.
Emiliano.
[1] https://wammu.eu/gammu/
I’ve used that, with an old pre-smartphone mobile as a GSM modem. It has the usual GUI frontend and scriptable backend. But it is separate from Asterisk.
I have also used the OpenVox G400P/E in the past, which integrates beautifully with Asterisk (incoming text messages, successfully sent outgoing messages and failed sent outgoing messages trigger extensions in the dialplan); but this card has been “no longer recommended for new designs” for some time now
(chan_extra won’t even build against recent kernel or Asterisk versions).
Be aware that if you send too many text messages in too short a timespan, your telco might deem that to be in excess of their “fair use policy” — although the exact dividing line between fair and unfair use seems to be a jealously-
guarded secret. The only way to find out for sure is to cross it …..