Asterisk SMS

configuration
Tags: #<Tag:0x00007fafd31582b0>

(Toure Amidou) #1

Hi
I’m trying to send SMSs using my freepbx/asterisk server.
On asterisk website I saw this solution : https://wiki.asterisk.org/wiki/display/AST/SMS
So I tried It but I got this error :

[2020-02-11 13:11:48] WARNING[2712]: pbx_spool.c:292 parse_line: Unknown keyword ‘action’ at line 1 of /var/spool/asterisk/outgoing/hello-world.call
[2020-02-11 13:11:48] WARNING[2712]: pbx_spool.c:292 parse_line: Unknown keyword ‘exten’ at line 3 of /var/spool/asterisk/outgoing/hello-world.call
[2020-02-11 13:11:48] WARNING[2712]: pbx_spool.c:329 apply_outgoing: At least on e of app or extension must be specified, along with tech and dest in file /var/s pool/asterisk/outgoing/hello-world.call
[2020-02-11 13:11:48] WARNING[2712]: pbx_spool.c:514 scan_service: Invalid file contents in /var/spool/asterisk/outgoing/hello-world.call, deleting

This is my original helloword.call file :
action: originate
callerid: Salut tout le monde
exten: to
channel: SIP/1900/53584523
context: smsdial
priority: 1


#2

That wiki is about sms over analog. If you’re using sip, look at the MessageSend() application instead.