WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Serial
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Paging and pPutLine

Keywords: 	  pPutLine

Question:

I am writing a program that will page me when my server has errors. I can get the modem to dial the pager company but I can not get the program to send the pin number and then the number to dial.
AddExtender("wwser34i.dll")
CommPort="COM3"
PhoneNumber="9,1234567"
PinNumber = "98765"
NumToDial = "1112222"

port=pComOpen(CommPort,0,57600,"8N1","RTSRTS")

BoxText("Resetting Modem")
pModemCommand(port,"ATZ") 
pModemInit(port) 

BoxText("Dialing - %PhoneNumber%")
pModemDial(port,1,PhoneNumber)

TimeDelay(15)

pModemDial(port,1,PinNumber)

TimeDelay(15)

pModemDial(port,1,NumToDial)

TimeDelay(15)


pModemHangup(port)
pComClose(port,0)
Message("Finished","Page sent")

Answer:

Try not using the modem commands at all.

So something like a:

 
pPutLine(port,"atdt1234567,,,,,34343,,,,,,343434")
and see if that helps.

The modem commands are trying to make a modem to modem data connection and would be getting in your way. The pPutline may be what you need to deal with the modem directly.


Article ID:   W15091
File Created: 2002:09:05:13:49:30
Last Updated: 2002:09:05:13:49:30