Ajout des script pour asterisk
This commit is contained in:
parent
e9bae60ef9
commit
124d4a83e1
12 changed files with 286 additions and 0 deletions
13
sip/sms_delay.sh
Executable file
13
sip/sms_delay.sh
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
from="$1"
|
||||
to="$2"
|
||||
body="$3"
|
||||
user="$4"
|
||||
SMS_DIR="/var/spool/asterisk/sms/"
|
||||
|
||||
date=`date +%Y%m%d%H%M%S`
|
||||
|
||||
mkdir -p "${SMS_DIR}${user}/${date}"
|
||||
echo -n "$from" > "${SMS_DIR}${user}/${date}/from"
|
||||
echo -n "$to" > "${SMS_DIR}${user}/${date}/to"
|
||||
echo -n "$body" > "${SMS_DIR}${user}/${date}/body"
|
Loading…
Add table
Add a link
Reference in a new issue