PDA

View Full Version : CTI Pegasus wont dial out



jolly1
July 31st, 2007, 10:41 AM
Hi,
Have picked up CTI pegasus Caller ID. Similar to the CTI Meteor. Except the Pegasus can make out going calls.

Have created plugin which does the following

Compare the incoming call with a list of known names and numbers if match then will display the name. Names and number in a seperate file
john,012345678

Creates incoming log of calls and whether they were answerd. Even if there is an answer machine present by setting ring counter to less the number of rings the answer machine picks up.

My problem the unit wont dial out
Will respond to ATH1: go on line, but wont dial any digits
Will go off line with ATHH0:

Should pick up and dial out using ATDT:1234 etc

tried ATH1:
wait 5 seconds
then
1234 etc
no good

tried ATH1:
wait 5 seconds
then
ATDT:1234 etc

The unit is working as I can dial out using software supplied.

setup as follows

BaudRate = 1200,
Parity = 0,
DataBits = 8,
StopBits = 0,
FlowControl = 'N',
CallbackType = serial.CB_FIXEDLENGTH,
ReceiveFixedLength = 100,

IncompleteResponseTimeout = 160,
NoResponseTimeout = 200,

I intailly started with CTI meteor plugin from the downloads.

As the unit works I think it is do with the something I missing on how to configure the plugin

Be most obliged for any help

regards John

jolly1
August 3rd, 2007, 08:22 AM
Well still major struggling, spoke to manufacturer he doesn't understand either
Like I say unit is working with the software, supplied must be something in LUA

regards John

Rob H
August 4th, 2007, 06:40 AM
What's your SendTerminator set to? Does the CTI require CR, LF, CRLF or nothing?

Do you have a link to the protocol? And can you post the whole serial device here?

jolly1
August 4th, 2007, 01:34 PM
Hi Rob
Nothing in the manual about a terminator

Other things I have tried the supplied software if a dial a number and pick up an extension line I can hear the tones being sent. When I try this expirement in with the script nothing.

Have attached the lua file and put commnents against the various send commands.

eg
ATH1: works fine goes on line
ATHHO: works fine goes off line

ATDT:07900163289 doesnt work according to the documentation should work

tried
ATH1:

then a couple seconds pause between each number dialed still no joy

Have attached the lua file also the the manual

Thanks for your help..... have no hair left....:rolleyes:

john

Rob H
August 5th, 2007, 02:45 AM
I can't see anything obviously wrong unfortunately.

What I would suggest is that you download Portmon from SysInternals - http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/Portmon.mspx

You can use that to monitor what happens when CTI's own software talks to the Pegasus and compare it with your serial device to see if you can work out what is different.

jolly1
August 5th, 2007, 07:35 AM
Hi,
I found the following differences

from the supplied software
21 0.00797138 Equinox.exe IOCTL_SERIAL_SET_HANDFLOW U2SPORT2 SUCCESS Shake:0 Replace:80000000 XonLimit:256 XoffLimit:256

from girder
15 0.00793445 girder.exe IOCTL_SERIAL_SET_HANDFLOW U2SPORT2 SUCCESS Shake:0 Replace:80000000 XonLimit:128 XoffLimit:128

I can't see anything in the girder docs to set this value

Another difference is the supplied software
sends ATH1 not ATH1: hva removed the colon no success.

Have attached two files one girder booting up and the dial ATDT07968...
one equinox booting up and dialing the same number.

the supplied software seems to carry more traffic.

DO think the differnce above could be the problem, if so is there a way to set this value.

Hair getting down to the scalp now:rolleyes:

regards John
ps thanks for the help

jolly1
August 5th, 2007, 08:05 AM
Hi further info when equinox send ATDT0790... etc there is a reply back success.
When girder sends there is no success reported back

Rob H
August 5th, 2007, 08:10 AM
I wouldn't expect the XOnLimit to have any effect.

However, I do note this line :-


59 0.00786323 Equinox.exe IRP_MJ_WRITE U2SPORT2 SUCCESS Length 16: ATDT07968163289.

It's clearly sending an extra character after the number - I can't remember whether you can set PortMon to report characters as hex values. I suspect that it's either a CR or LF though.

jolly1
August 5th, 2007, 08:32 AM
Hi Rob success it was in fact carriage return.
so self:SendCommand('ATDT07968163289\r') works just fine.

I can't thank you enough.

I was trying self:SendCommand('ATDT07968163289.')

Most kind of you to help

Rob H
August 5th, 2007, 09:08 AM
Great, glad it's working now.