I have a perl script that I use to dial phone numbers. I use the code below to dial the number:
$modem->dial( $number )
Which is fine, howeve I would like to have the ability to press a key to hangup the call when it is dialing or ringing. What would be the best way to achieve this?
Note: I'm a novice when it comes to programming and perl is the only Language I have had any success in using.
I know the code to make the modem hang up:
$modem->hangup();
However I don't know how to execute "$modem->hangup();" when the perl scripts is busy executing "$modem->dial( $number )"
Thanks