Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dialing number

Status
Not open for further replies.

p3x250

Programmer
Oct 23, 2004
5
FR
Hi,

I want to dial PABX with Aspect script.
When I want to connect with Procom, it's ok.
But when I use my script I haven't carrier detected.

if not nullstr phone_number
dialnumber DATA phone_number
while $DIALING
yield
endwhile
if $CARRIER
usermsg "connected"
set port baudrate 9600
if FAILURE
usermsg "baudrate failure"
endif
set terminal keyboardfile "VT100.KBD"
else
usermsg "not connected"
endif
endif


Thanks for all.
 
When you dial manually, do you see the CD "modem light" at the bottom of the Procomm window turn red or not? If your modem does not report the CD signal or your modem cable does not contain this wire, then the value of $CARRIER may be incorrect.


aspect@aspectscripting.com
 
Hi knob, thanks for your answer.

When I dial manually, it's Ok
But with my script, the modem light turn red but i don't have the connection.
 
I see no error messages in the procomm.
The CD and CTS turn red together (but i'm not sure)


 
Although this shouldn't matter, what happens if you change this line:

if $CARRIER

to read:

if $CARRIER == 1

I can't think of a reason why the CD light would be lit in Procomm but $CARRIER would not be equal to 1. In that case, you might try using an if waitfor structure to look for a login prompt or other static piece of text that indicates you did connect to the system successfully.


aspect@aspectscripting.com
 
You might want to check what your $PWMODE is set to. I was having the same problem and discovered that after sending ProComm email from my script the pwmode stayed set to Mail instead of TERMINAL mode. I am having problems resetting it in my script at the beginning, but I can reset it in ProComm and the next time I run my script, it works just fine.
 
It's a problem of ProComm configuration of modem.
Now, the script run.

Thanks all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top