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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dial Queue Questions

Status
Not open for further replies.

Pandab2002

IS-IT--Management
Apr 16, 2003
47
US
Is there any way to have a script remove a non answering entry in a dialing queue? If so, is there a way to have the script create a text file with the removed entries and the reasons?

Thanks for any assistance
 
You will need to be more specific about what do you mean by a dialing queue. How are you selecting entries in the queue and how are you dialing the numbers?
 
You may be able to use the dialcancel command to remove the currently dialing entry from the dial queue, but I am not 100% certain on that (the help file is a little vague). I thought there was a system variable that displayed any messages from the modem after a dial attempt was made, but the only thing I saw was $CNCTMSG, which returns messages only for successful connections.


aspect@aspectscripting.com
 
Here is part of the script that I am trying to build. When I run this, it works fine, however there are over 200 entries in my dialing directory. What I'd like to do is have the dialing queue remove any failed connection attempt, whether busy or ring no answer. Normally if the call attempt fails, the entry is placed at the bottom of the list. That would be fine, but instead of hitting all the other entries, the queue will attempt to dial the failed entry every other time. I have tried using dialcancel and dialdelete, but they failed. If I can get the above portion to work, then I'd like to be able to tag the failed entries and place them in a text file with the reason it failed.

dial DATA GROUP "YO" CONNECTALL
while $DIALING
yield
endwhile
if $CARRIER
execute somescript

else
somehow remove this entry from the current dialing queue and send its name to a text file.
 
I was able to remove the failed entry by using the following:

set dial retries 1

this actually eliminates the retries altogether.

anyway, now if i can figure out the text file portion...

any help would be greatly appreciated.

Paul...
 
Using CONNECTALL forces aspect to continue dialing until all entries are successful. I do not know if there is any way that you can remove the entry from the queue.

Another alternative would be to count the group size and then sequentially handle each member of the group. See example below.

Code:
proc main
   string sEntName, sLogFile = "log.txt"
   integer iGroupSize, iCount
   dialcount DATA GROUP "YO" iGroupSize
   for iCount = 0 upto (iGroupSize - 1)
      dialname DATA GROUP "YO" iCount sEntName
      dial DATA sEntName
      while $DIALING
         yield
      endwhile
      if $CARRIER
         fopen 0 sLogFile append text
            fstrfmt 0 "%ld Connention to %s was successful.`r`n" $LTIME sEntName
         fclose 0      
         ; continue processing
         

      else
         fopen 0 sLogFile append text
            fstrfmt 0 "%ld Connention to %s failed.`r`n" $LTIME sEntName
         fclose 0
      endif
   endfor
endproc
 
Thanks so much for the quick response. I was able to figure out the retry issue. I really appreciate the help on the text file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top