VGSM SMS

From VoiSmart Open Source Wiki

Jump to: navigation, search

Note: app_sms which is distributed in Asterisk is an internal Asterisk's application used for sending SMS over analog lines. It has nothing to do with the sending of SMSes on the GSM network.

Contents

SMS Reception

The SMS reception is accomplished throught an external spooler program.

In vgsm.conf you need to configure the path to an executable or a script which will be invoked for every received message.

If your spooler is /usr/sbin/sendmail, you have to put:

[general]
sms_spooler = /usr/sbin/sendmail
sms_spooler_pars = -it

Please refer to samples/etc_asterisk/vgsm.conf sample file for details on the meaning of each variable.

SMS Sending

SMSes can be sent or from Asterisk's CLI (Command Line Interface) or from AMI (Asterisk Manager Interface), the former is less powerful but interactive, the latter give full access to SMS parameters and error codes:

CLI Interface

To send a hello message to +39 335 12345567:

> vgsm send sms vodafone +393351234567 "hello world!"

You can force the usage of a SMS class by appending the class number after the message. Class 0 is used for flash SMSes.

> vgsm send sms vodafone +393351234567 "hello world, in a flash!" 0

Manager Interface

Please refer to the appropriate section in vGSM Manager Interface.

Personal tools