VoiceGuide IVR Software Main Page
Jump to content

Problem With Onnotconnected

Recommended Posts

I am using an XML file to send data to VoiceGuide but cannot get the OnNotConnected to run my vbs script. If I dial a number that is busy, it runs the Ans_Mach.vgs script.

 

Here is a copy of the XML file

 

<?xml version="1.0" encoding="UTF-8"?>

<dataroot xmlns:od="urn:schemas-microsoft-com:officedata">

<OutDialEntry>

<PhoneNumber>212-0239</PhoneNumber>

<DayTimeStart>0900</DayTimeStart>

<DayTimeStop>2300</DayTimeStop>

<DaysCallAllowed>MoTuWeThFrSa</DaysCallAllowed>

<LineSelection>dxxxB1C1</LineSelection>

<OnAnswer>C:\TeleCaller\VG\Human.vgs</OnAnswer>

<OnAnswerMachine>C:\TeleCaller\VG\Ans_Mach.vgs</OnAnswerMachine>

<CallRetries>2</CallRetries>

<RetryDelay>30</RetryDelay>

<RV>[RecordID]{10}[PatFirstName]{David}[ApptDate]{0516[ApptTime]{1025}</RV>

<OnNotConnected>C:\TeleCaller\VG\No_Answer.vgs $RV[RecordID]/OnNotConnected>

</OutDialEntry>

</dataroot>

 

Here is a copy of the No_Answer.vbs file

 

Const ForReading = 1

Const ForWriting = 2

Const ForAppending = 8

set fso = CreateObject("Scripting.FileSystemObject")

on error resume next

set tsFile = fso.OpenTextFile("C:\TeleCaller\LOG\LogNA.txt", ForAppending, True)

while err.number <> 0

Wscript.sleep 100 'pause here for a while before trying to open the file again.

err.clear

set tsFile = fso.OpenTextFile("C:\TeleCaller\LOG\LogNA.txt", ForAppending, True)

wend

tsFile.WriteLine "$RV[RecordId], $RV_STARTTIME, $RV[OutDial_RetriesLeft], $RV[OutDial_Result]"

tsFile.Close

set tsFile = Nothing

set fso = Nothing

 

I would really appreciate some help here.

Share this post


Link to post
I dial a number that is busy, it runs the Ans_Mach.vgs script.

You should set the busy tone definition correctly so that the busy tone is detected properly.

See the Dialogic TSP config or the ConfigLines.xml file.

Share this post


Link to post

I am a novice when it comes to this kind of setting. Is it possible for you to give me some more detailed information on how to make these settings

Share this post


Link to post

David, Did you copy and paste the text shown above? I see some typos and am wondering if that is really what you are running or if you just re-typed it here.

 

As an example here is a section of your code

 

<RV>[RecordID]{10}[PatFirstName]{David}[ApptDate]{0516[ApptTime]{1025}</RV>

<OnNotConnected>C:\TeleCaller\VG\No_Answer.vgs $RV[RecordID]/OnNotConnected>

</OutDialEntry>

 

The ApptDate variable is missing a bracket after the 0516 and your OnNotConnected entry says No_Answer.vgs instead of No_Answer.vbs and lastly the end of the OnNotConnected section is missing a "<" in front of it.

Share this post


Link to post

Sorry about the typing errors but my original in VoiceGuide was correct. I am still having the same problem. If the telephone number is busy it merely plays the OnAnswerMachine script.

 

Here is a good copy of my xml file

 

<?xml version="1.0" encoding="UTF-8"?>

<dataroot xmlns:od="urn:schemas-microsoft-com:officedata">

<OutDialEntry>

<PhoneNumber>212-0239</PhoneNumber>

<DayTimeStart>0900</DayTimeStart>

<DayTimeStop>2300</DayTimeStop>

<DaysCallAllowed>MoTuWeThFrSa</DaysCallAllowed>

<LineSelection>dxxxB1C1</LineSelection>

<OnAnswer>C:\TeleCaller\VG\Human.vgs</OnAnswer>

<OnAnswerMachine>C:\TeleCaller\VG\Ans_Mach.vgs</OnAnswerMachine>

<CallRetries>2</CallRetries>

<RetryDelay>30</RetryDelay>

<RV>[RecordID]{14}[PatFirstName]{Peter}[ApptDate]{0607}[ApptTime]{1145}</RV>

<OnNotConnected>C:\TeleCaller\VG\No_Answer.vb script:[C:\Telecaller\VG\DBAnsMac.vgs]

160921.08 0 Script Load C:\Telecaller\VG\DBAnsMac.vgs

160921.10 6 Loaded VbsAtHangup into:3

160921.12 6 tapi Reply (LineEvReply) ok 66050 0

160921.15 6 TimeoutClear

160921.16 6 [update Database] Running VB Script...

160921.17 6 RVreplace start (strlen>500)

160921.19 6 RVns [RecordID]{14}[PatFirstName]{Peter}[ApptDate]{0607}[ApptTime]{1145}[OutDial_Retr

esLeft]{2}[scriptEnd_Time]{5/18/2005 4:08:56 PM}[scriptEnd_Goto_Script]{C:\TeleCaller\VG\Ans_Mach.vgs}[scriptEnd_Goto_Module]{}[scriptStart_Time]{5/18/2005 4:08:56 PM}[scriptsPath]{C:\TeleCaller\VG\}[Hangup Time]{5/18/2005 4:09:20 PM}

160921.22 6 eng copy of script ran: vbs_6_1.vbs

160921.38 6 Run Script waiting... (shellid=2564, process=1844)

160921.39 6 TimeoutSet 1 EV_TIMEOUT_CHECKONSTATE

160922.32 6 Timer fired EV_TIMEOUT_CHECKONSTATE

160922.34 6 ScriptEventCode 9007 iLineState=1501

160922.36 6 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

160922.36 6 task completed (shellid=2564, process=1844)

160922.38 6 No information returned from program to VG (no VGRUNRESULT_6.TXT or SHLRESLT.TXT)

160922.39 6 rv add [Hangup Time]{5/18/2005 4:09:22 PM}

160922.41 6 Hanging up call... [WaitTillFinished - next module not specified]

160922.43 6 HangupCall_Common Mode=AfterHangupRun

160922.43 6 ReinitTelephony due to IDLE

160922.45 6 tapic lineDeallocateCall(MainCall:66015) 0

160922.82 6 lineOpen(6)=>

160922.84 6 Waiting for a call...

160922.86 6 LineHandle=65998

160922.88 6 TimeoutSet 3 EV_TIMEOUT_ATERIDLE_ALLOWOUT

160925.90 6 Timer fired EV_TIMEOUT_ATERIDLE_ALLOWOUT

160925.91 6 ScriptEventCode 9013 iLineState=900

 

I really would appreciate some help here.

Thank you

Share this post


Link to post
If the telephone number is busy it merely plays the OnAnswerMachine script.

Maybe you did not set the busy tone parameters properly and for some reason the Dialogic card decides that what it's hearing on the line is an answering machine.

 

What settings have you entered for busy tone definition? Does it match closely what is played on the line when destination number is busy?

 

In the trace you can see that VG records what it hears on the line to determine when the 'answering machine message' ends.

 

160845.04 6 dial awaiting end of answering machine message (lvl:10 for 20)

160845.16 6 RecSoundStart file[C:\Program Files\VoiceGuide\data\RecAm_6.wav] ok

 

Please .ZIP up and post this RecAm_6.wav file.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×