proc main
while $carrier ; execute while call is connected
when quiet 300 call done ; Waits for line to be quiet for 600 seconds to call done
endwhile
endproc
proc done
transmit "OFF^M" ; Transmit a hangup call.
hangup ; Hang up the phone line.
endproc
I'm trying to hang up if the call is inactive for specific time and stop the script if the call is disconnected. I know there should be an easy way to do this. I keep getting "Error 3: Insufficient memory" at source "when quiet 300 call done"
We were using this first which worked but continued to run after call was disconnected.
proc main
waitquiet 600 FOREVER ; Wait until the line is quiet for 600 seconds.
transmit "OFF^M" ; Transmit a hangup call.
hangup ; Hang up the phone line.
endproc
any solutions? "Be all and you'll be to end all.
Life can be a real ball.
State of mind!"
while $carrier ; execute while call is connected
when quiet 300 call done ; Waits for line to be quiet for 600 seconds to call done
endwhile
endproc
proc done
transmit "OFF^M" ; Transmit a hangup call.
hangup ; Hang up the phone line.
endproc
I'm trying to hang up if the call is inactive for specific time and stop the script if the call is disconnected. I know there should be an easy way to do this. I keep getting "Error 3: Insufficient memory" at source "when quiet 300 call done"
We were using this first which worked but continued to run after call was disconnected.
proc main
waitquiet 600 FOREVER ; Wait until the line is quiet for 600 seconds.
transmit "OFF^M" ; Transmit a hangup call.
hangup ; Hang up the phone line.
endproc
any solutions? "Be all and you'll be to end all.
Life can be a real ball.
State of mind!"