Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Incoming call using Device:modem module

by Rahul Gupta (Sexton)
on Jul 02, 2013 at 06:05 UTC ( #1041957=perlquestion: print w/ replies, xml ) Need Help??
Rahul Gupta has asked for the wisdom of the Perl Monks concerning the following question:

Hi ,

I am using "Device::Modem" module to test the incoming Call alert.

here is my code:
use Device::Modem; my $Port = "COM7"; my $Modem = Device::Modem->new( port => $Port ); if ( !defined $Modem ) { die "Cannot Connect to Port '$Port'\n"; } if ( !$Modem->connect( baudrate => 9600 ) ) { die "Not Connected to '$Port'\n"; } my @attachArray = ( "ATI", "AT+CLIP=1"); for ( my $ii = 0 ; $ii <= $#attachArray ; $ii++ ) { print "Sending $attachArray[$ii]\n"; $Modem->atsend( "$attachArray[$ii]" . Device::Modem::CR ); my ( $status, @output ) = $Modem->parse_answer(); sleep(10); print "$status\n"; foreach(@output){ print "$_\n"; } }

can anyone help me to get the call alerts .

thanks in advance

Comment on Incoming call using Device:modem module
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1041957]
Approved by hdb
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2015-07-06 09:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (71 votes), past polls