summaryrefslogtreecommitdiff
path: root/vfg/src/Asterisk.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'vfg/src/Asterisk.cpp')
-rwxr-xr-xvfg/src/Asterisk.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/vfg/src/Asterisk.cpp b/vfg/src/Asterisk.cpp
index 9d94138..1152efa 100755
--- a/vfg/src/Asterisk.cpp
+++ b/vfg/src/Asterisk.cpp
@@ -30,11 +30,14 @@ gameQ has 1 calls (max unlimited) in 'rrmemory' strategy (8s holdtime, 50s talkt
Callers:
1. SIP/sip_proxy-00000045 (wait: 0:06, prio: 0)
*/
-
+int Asterisk::getUpdateTime(){
+ return ofGetElapsedTimeMillis()-cmdtime;
+}
void Asterisk::threadedFunction(){
while( isThreadRunning() != 0 ){
//if (lock()) {
+ cmdtime=ofGetElapsedTimeMillis();
FILE *f = popen("ssh 80.93.22.22 'sudo /usr/sbin/asterisk -rx \"queue show gameQ\"'", "re"); //e ??
int fn=fileno(f);
char buf[1000];
@@ -52,7 +55,8 @@ void Asterisk::threadedFunction(){
}
else {
printf("status err: %s\n",buf);
- }
+ }
+
//unlock();
//}