Stop Microsoft

Miscellaneous => Programming & Networking => Topic started by: choasforages on 30 September 2002, 07:13

Title: choas's app devolopment
Post by: choasforages on 30 September 2002, 07:13
ok, is there a c function that will dial the modem then hang up. or a combination of functions.
Title: choas's app devolopment
Post by: TheQuirk on 30 September 2002, 07:52
You should use ML instead.
Title: choas's app devolopment
Post by: voidmain on 30 September 2002, 07:57
In Linux? If so, and if it must be a C program, I would have the C program use the system command "chat" or the system command "wvdial":

system("chat -f chatscript -T 555-1212");

Do a "man chat" for more information on this modem utility.
Title: choas's app devolopment
Post by: TheQuirk on 30 September 2002, 08:05
http://www.ziron.com/links/netprog.htm (http://www.ziron.com/links/netprog.htm) has two or three links that are about modems, if you don't want to use an easier (but more system-hogging) way (the one VoidMain pointed out).
Title: choas's app devolopment
Post by: TheQuirk on 30 September 2002, 08:09
Actually, I don't think there's a universal library. Doesn't it depend on your OS and arch.?
Title: choas's app devolopment
Post by: choasforages on 2 October 2002, 21:13
yeah, but it has to hang up FAST. like our current setup. we pick up the phone. and tell the computer to dial. if its a bit slow, we could be hit with a telezapper. and our call doesn't go through.