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

4
sip/history_update.sh Executable file
View file

@ -0,0 +1,4 @@
#!/bin/bash
printf -v id "%q" "$1"
printf -v duration "%q" "$2"
psql -h pgsql.adm.crans.org -U crans django -c "UPDATE voip_history SET duration='$duration' WHERE uniq_id='$id'" >> /tmp/history