Wiki - SwyxPEDIA

 

PBXScript.PreviousScriptsNot Rated Yet

This collection holds informations about all scripts that has been started for this call before the current script has been started. If a call is forwarded from a script with option "Proceed with destination's call routing", i.e. when PBXCall.ConnectToEx is called with bProceedWithDestinationScript set to true. Note that the standard redirection (immediate, delayed, busy) always set this flag.

The collection contains PreviousScript objects containing the following information for each previous script:

  • UserName
  • UserId
  • StartTime
  • EndTime

The follwowing example code lists all previous script information into the server trace file:

Dim PrevScripts
Set PrevScripts = PBXScript.PreviousScripts

PBXScript.OutputTrace "Number of previous scripts: " & PrevScripts.Count

Dim Script
For Each Script In PrevScripts
  PBXScript.OutputTrace "UserName:  " & Script.UserName
  PBXScript.OutputTrace "UserID:    " & Script.UserID
  PBXScript.OutputTrace "StartTime: " & Script.StartTime
  PBXScript.OutputTrace "EndTime:   " & Script.EndTime
End For

Please note that a previous script object does contain the username only, not any of his internal extensions.

A common usage for this collection is to check if the current call was originally meant for some other certain user.

 

Server Script API



 Rating
Rate This Page:PoorGreat  | Rate Content |
Average rating: No Ratings Yet   
Number of Ratings : 0
 Comments
Add Comment

No Comments Yet



 |   | View Topic History  |
Wiki Help
Sponsors
bluvo AG
logic-base GmbH
Swyx Solutions AG, Germany

 

Charity

German Aid for Afghan Children

Swyx Forum supports the German Aid for Afghan Children (Kinderhilfe Afghanistan)