Difference between revisions of "AlphaWeb Custom Scripts"
From Zenitel Wiki
(→Upload and Test Scripts) |
(→Upload and Test Scripts) |
||
Line 15: | Line 15: | ||
Here you can upload/download your own scripts, html documents and pictures for the documents if needed.<br> | Here you can upload/download your own scripts, html documents and pictures for the documents if needed.<br> | ||
− | A base script package is included in the release | + | A base script package is included in the release.<br> |
If you do a select on the script, a description and list of all possible URI parameters will appear (this is based on a header within the script) | If you do a select on the script, a description and list of all possible URI parameters will appear (this is based on a header within the script) | ||
+ | |||
+ | '''AlphaScript Header''' | ||
+ | |||
+ | This has to be put in the script within a comment block. AlphaWeb will parse this header and present when the script is selected. AlphaWeb will also generate a input form with all possible URI parametrs to help test the script. | ||
+ | |||
+ | /* <-AlphaScriptComment- | ||
+ | * --Description-- | ||
+ | * <b>This script do call handling on a sub-station.</b> | ||
+ | * All operations targets one station addressed by its directory number. | ||
+ | * | ||
+ | * Syntax examples: | ||
+ | * From station 101 to station 102: | ||
+ | * <b>call_handle.php?from=101&to=102</b><br> | ||
+ | * From station 1001 in node 1 to station 1001 in node 2: | ||
+ | * <b>call_handle.php?from=(1)1001&to=(2)1001</b><br> | ||
+ | * | ||
+ | * --URI_PARAM_1 name=from opt=required input=INT-- | ||
+ | * --URI_PARAM_2 name=to opt=optional input=INT-- | ||
+ | * --URI_PARAM_3 name=conf opt=optional input=INT-- | ||
+ | * --URI_PARAM_4 name=group opt=optional input=INT-- | ||
+ | * --URI_PARAM_5 name=mkey opt=optional input={PRESS,REL}-- | ||
+ | * --URI_PARAM_6 name=ckey opt=optional input=INT-- | ||
+ | * --URI_PARAM_7 name=dial_digit opt=optional input=INT(*INT*INT)-- | ||
+ | * --URI_PARAM_8 name=single_digit opt=optional input={P,R}INT(*INT*{P,R}INT)-- | ||
+ | * --URI_PARAM_9 name=dial_dak opt=optional input=INT-- | ||
+ | * --TEST_WINDOW width=600 hight=200-- | ||
+ | * | ||
+ | * -AlphaScriptComment-> | ||
+ | */ | ||
== Script Security Configuration == | == Script Security Configuration == |
Revision as of 12:09, 17 August 2007
The Custom Scripts allows end users to make and upload their own web pages and php scripts. These scripts will typically implement 'Click to Call' applications.
The Custom Script page is protected by a 'Custom Script User' which can access the Custom Scripts page as well as all Admin pages.
Default login:
User: scripter Passwd: alphascript
The Custom Script page has main views:
Upload and Test Scripts
Here you can upload/download your own scripts, html documents and pictures for the documents if needed.
A base script package is included in the release.
If you do a select on the script, a description and list of all possible URI parameters will appear (this is based on a header within the script)
AlphaScript Header
This has to be put in the script within a comment block. AlphaWeb will parse this header and present when the script is selected. AlphaWeb will also generate a input form with all possible URI parametrs to help test the script.
/* <-AlphaScriptComment- * --Description-- * This script do call handling on a sub-station. * All operations targets one station addressed by its directory number. * * Syntax examples: * From station 101 to station 102: * call_handle.php?from=101&to=102
* From station 1001 in node 1 to station 1001 in node 2: * call_handle.php?from=(1)1001&to=(2)1001
* * --URI_PARAM_1 name=from opt=required input=INT-- * --URI_PARAM_2 name=to opt=optional input=INT-- * --URI_PARAM_3 name=conf opt=optional input=INT-- * --URI_PARAM_4 name=group opt=optional input=INT-- * --URI_PARAM_5 name=mkey opt=optional input={PRESS,REL}-- * --URI_PARAM_6 name=ckey opt=optional input=INT-- * --URI_PARAM_7 name=dial_digit opt=optional input=INT(*INT*INT)-- * --URI_PARAM_8 name=single_digit opt=optional input={P,R}INT(*INT*{P,R}INT)-- * --URI_PARAM_9 name=dial_dak opt=optional input=INT-- * --TEST_WINDOW width=600 hight=200-- * * -AlphaScriptComment-> */