[solved] How to dial numbers with laptop modem (analogue)?

Everything else that doesn't fall into one of the other PB categories.
User avatar
Kukulkan
Addict
Addict
Posts: 1422
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

[solved] How to dial numbers with laptop modem (analogue)?

Post by Kukulkan »

Hi,

I have to create a tool that dials numbers by using the laptop modem. Not phoning or data transmission, just dial a long list of numbers to my telephone system (to program it, RS232 interface is sadly out of order).

Idea:
* Pick up
* Dial about 200-300 numbers
* Drop

Is this something that can be done easily or is it a huge problem?

My Laptop has a dialup modem recognized and Hyperterminal works. But it is not what I need. I simply need to let it dial long numbers from a document that I can edit...

Kukulkan

[EDIT]Maybe by using AT codes or such?[/EDIT]
Last edited by Kukulkan on Wed Feb 12, 2014 4:32 pm, edited 1 time in total.
User avatar
TI-994A
Addict
Addict
Posts: 2791
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: How to dial numbers with laptop modem (analogue)?

Post by TI-994A »

Kukulkan wrote:I have to create a tool that dials numbers by using the laptop modem. Not phoning or data transmission, just dial a long list of numbers to my telephone system (to program it, RS232 interface is sadly out of order)...
Hi Kukulkan. On WinXP and earlier, there's a built-in phone dialler utility that detects any installed modems, and it can be programmed using TAPI functions; for example:

Code: Select all

tapiRequestMakeCall_("55551234", #NULL$, #NULL$, #NULL$)
Alternatively, if you could determine the virtual COM port that has been assigned to the laptop's built-in modem, you could also use PureBasic's OpenSerialPort() function to access it, and then use the WriteSerialPortXXX() functions to send the modem commands, ATH1, ATDT, ATH0, etc., directly.

Hope it helps. :)
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
User avatar
Kukulkan
Addict
Addict
Posts: 1422
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: How to dial numbers with laptop modem (analogue)?

Post by Kukulkan »

Hi,

thank you, the Serial way seems to be good for me. So I can use standard AT calls to let the modem dial numbers.

Great!

Kukulkan
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: How to dial numbers with laptop modem (analogue)?

Post by PB »

I'm pretty sure I used to do this over a decade ago with Visual Basic,
but I can't for the life of me remember how. I think it was to do with
sending serial commands as mentioned above. It's definitely possible.
I think I was opening "COM1:" or something at the time. Google it.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Kukulkan
Addict
Addict
Posts: 1422
Joined: Mon Jun 06, 2005 2:35 pm
Location: germany
Contact:

Re: [solved] How to dial numbers with laptop modem (analogue

Post by Kukulkan »

Thanks. Yes, I did it with AT commands using serial port communication. Works fine for me!

Kukulkan
Post Reply