In the UK this works (because SMSs come over landlines from 08005875290)

exten => _X./08005875290,1,SMS(01,a)
exten => _X./08005875290,2,System(smsq --process sendsms.sh --queue 01)
exten => _X./08005875290,3,Hangup()

and because smsq deletes the messages the script sendsms.sh is:
#!/bin/sh
fn=/var/spool/asterisk/sms/sent/$queue-$scts
email=`getemail 01`
echo SMS received from $oa  at $scts | sed -e 's/T/ /' > $fn
cat >> $fn <<m...@msg
$ud
m...@msg
sendmail $email <<EOF
To: $email
From: [email protected]
Subject: SMS message from $oa

$ud
EOF

and getemail is a little program written to find the email address required

I recently installed a junghanns quadgsm card with bristuff 0.4.0-RC3e (* 1.4.24.1) and was wondering what must be done in the dialplan to immediately handle an incoming
SMS.

( SMS from XXXXXX received on span 1. (Text: Ttttthhsjkuewn) (PDU: 0 ....)


_______________________________________________
Bristuff-users mailing list
[email protected]
http://lists.three-dimensional.net/mailman/listinfo/bristuff-users

Reply via email to