in reply to Device::Modem Help

Update: Sigh. You'd think I would actually read your question. Sorry.

Have you tried using answer() or passing a timeout with your dial?


If you're using Device::Modem then I think that a simple hangup() method call will do:

hangup() Does what it is supposed to do. Hang up the phone thus terminating any active call. Usage:

$ok = $modem->hangup();

Welcome to the Monastery. You'll probably want to read up on a few of the tips for formatting questions, etc. It probably wouldn't hurt me to re-read those tips. :)


No good deed goes unpunished. -- (attributed to) Oscar Wilde

Replies are listed 'Best First'.
Re^2: Device::Modem Help
by strange1 (Initiate) on Apr 18, 2006 at 20:38 UTC
    Thanks for the reply and welcome.

    I don't think I have explained my problem very well.

    I would like to have the option to hangup the call by pressing a key while the modem is dialing.

    How do I interupt the  $modem->dial( $number); command and end it using the $modem->hangup(); command?

    I hope this explains it better?

    Thanks
      Hi

      I have used the timeout, however I would like to end the call with user interaction via the keyboard.