gcc484ntopperl-5.22
Last change
on this file since c5c522c was
c5c522c,
checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago
|
initial commit, transferred from cleaned syn3 svn tree
|
-
Property mode set to
100755
|
File size:
586 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | cp faxtest.tif /tmp || exit 1 |
---|
3 | |
---|
4 | TO=$1 |
---|
5 | EMAIL=$2 |
---|
6 | |
---|
7 | if [ "$TO" == "" ]; then |
---|
8 | echo "Usage: $0 <phonenumber> <email>" |
---|
9 | exit 1 |
---|
10 | |
---|
11 | fi |
---|
12 | |
---|
13 | echo "Faxing to $TO, mailing $EMAIL" |
---|
14 | |
---|
15 | #Channel: mISDN/g:trunk_m1/$TO |
---|
16 | #Channel: sip/0858784323/$TO |
---|
17 | |
---|
18 | cat > /var/spool/asterisk/outgoing/faxtest.$$ <<EOF |
---|
19 | Channel: sip/0858784323/$TO |
---|
20 | MaxRetries: 3 |
---|
21 | RetryTime: 300 |
---|
22 | WaitTime: 60 |
---|
23 | Context: faxsend |
---|
24 | Extension: s |
---|
25 | Priority: 1 |
---|
26 | Set: FILENAME=/tmp/faxtest.tif |
---|
27 | Set: STATIONID= |
---|
28 | Set: CONFSUCCESS=0 |
---|
29 | Set: EMAILADDR=$EMAIL |
---|
30 | Set: REMOTENUMBER=0591631586 |
---|
31 | EOF |
---|
32 | |
---|
33 | chown nobody /var/spool/asterisk/outgoing/faxtest.$$ || exit 1 |
---|
34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.