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

5
sip/history_add.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/bash
printf -v id "%q" "$1"
printf -v src "%q" "$2"
printf -v dst "%q" "$3"
psql -h pgsql.adm.crans.org -U crans django -c "INSERT INTO voip_history (uniq_id,src,dst) VALUES ('$id','$src','$dst')" >> /tmp/history