diff options
| author | Comment <tim@gray.(none)> | 2012-12-12 10:57:40 +0000 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2012-12-12 10:57:40 +0000 |
| commit | 19c84c74efd5b8ffd1fb8184037910c831990d2e (patch) | |
| tree | 19032ce28fed70a58ae95cc9937c50681e978b50 /vfg/src/Asterisk.cpp | |
| parent | 1db97e28061caec0b3e8ce998b92e1936edbf2e5 (diff) | |
version for galway gig
Diffstat (limited to 'vfg/src/Asterisk.cpp')
| -rwxr-xr-x | vfg/src/Asterisk.cpp | 8 |
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(); //}
|
