Ajout des script pour asterisk

This commit is contained in:
Valentin Samir 2013-03-15 22:53:43 +01:00
parent e9bae60ef9
commit 124d4a83e1
12 changed files with 286 additions and 0 deletions

13
sip/sms_delay.sh Executable file
View 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"