Ajout des script pour asterisk
This commit is contained in:
parent
e9bae60ef9
commit
124d4a83e1
12 changed files with 286 additions and 0 deletions
4
sip/history_update.sh
Executable file
4
sip/history_update.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue