View Single Post
Posts: 155 | Thanked: 61 times | Joined on Nov 2009
#4
Originally Posted by karimko View Post
Thanks for taking intrest qwerty12!

Perhaps if I explain the purpose of my request things might become more clear.
I'm making a python script, which works on creating a missed call for the other party.
That is, it dials a number, waits for a "valid" dial tone to beep for say 2 seconds, then hangs up.

I got all the mechanics of creating the call and hanging it up and running.
The only problem is, how to distinguish between dialtones (Busy, No Service, etc...)?

Thanks again!
It's been a while, but can you not open the modem device, send "AT DT <number>" then wait for two "RING"s before sending a <CR> to end the call.
 

The Following 2 Users Say Thank You to phedders For This Useful Post: