You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nigel Metheringham edited this page Nov 25, 2012
·
1 revision
Here is presented an example router an transport for redirecting mail
addressed to e.g. user@07123456789.sms to the Kannel SMS gateway.
We have a workflow system that generates event driven emails, so it was
a natural choice to use Exim for SMS integration, especially after
having already configured Hylafax.
The Ericsson F251m is a FCT (Fixed Cellular GSM Terminal), sometimes
known as a "Premicell", that additionally has a RS-232 serial port
allowing it to be controlled by Kannel
http://www.kannel.org/.
Your Exim routers section will require something like this:
sms:
driver = manualroute
transport = sms
route_list ="*.sms"
Transports will require:
sms:
driver = pipe
group = exim
user = exim
command = "/usr/bin/lynx -dump \"http://localhost:13013/cgi-bin/sendsms?username=userxxx&password=passzzz&to=${extract{1}{.}{$domain}}&text=${tr{$header_subject:}{ }{+}}\""
this is a simple replace of spaces with "+" though given a little more
time there should be a full URL encoding of the message text (which
comes from the subject line only). A URLEncode expansion operator would
be useful.
Only the subject line is relayed as a SMS. This was for convenience and
compatiblity of being able to already send SMS to some Orange mobile
users through the Orange email to text facility, which similarly
displays the subject line as the SMS text message.