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!

9100/2100 scripting 1

Status
Not open for further replies.

OzzieGeorge

Programmer
Jan 14, 2005
2,603
AU
Just wondering if anyone knows or has documentation for script writing on these systems. I use scripts a lot on the 8300/9300 and I am now working on the smaller cousin and would like to put some scripts together but have not worked out the syntax yet. Any help would be appreciated.
 
Although PCPro has a "script" option at the top, according to NTAC it does not script. It is used by NEC. For what purpose, they would not say. We use grid view and excel to cut and paste.
 
Hi, Belvedere

The script does work, if you have a look in PCPro, there are initial set up scripts and you can run them manually. So it would just be a matter of working out the syntax. Which is what I am trying to do because I can create automatic scripts for things like SIP setup for a given carrier, you just feed in the credentials provided and it would then create the entire script. Also I can get the customer to fill out a data sheet and I can then generate a script to fill in things like extension names etc. It would save me heaps of time.
 
Ok so spent a little time on this today and have found some interesting things out. The screen says trunk one but the script uses 0 to address this Likewize one thing I often have to change is alarm 64 when the system is not connected to a network or you get an alarm as soon as you disconnect the laptop after programming however in order to change alarm 64 from a script, you have to change the value set to 63!

Also saving an excel worksheet to a tab separated file gets the wrong columns placed in quotation marks but that is fixable. So the upshot is that I now know how to add to the setup wizard to change commonly changed items and with some work may be able to make it so that I can send the customer a questionnaire spreadsheet to fill in that I can then automatically convert to a script that adds such things as names and even class of restriction and the likes.

More work required but I am getting there by trial and error!
 
Belvedere

There are scripts in PC Pro already. If you go to, C:\Program Files (x86)\NEC\SL2100 PC Pro\Pyxis\ENG\01_00 or wherever Your PC Pro is installed, you will find the set up scripts for each main region. My one line script for the alarms is,

SET 90-10 (63,0,0) “0”

and it is tab separated values, you can copy this into notepad, save as plain text and then change the file extension to .pcs

I am going to see what common changes I make and put a script together that works for all those. For example a common base install here is to have a night mode where the lines dil to a virtual that is permanently CFA to a VM box and this appears on the reception phone along with a night key. I should be able to write a script that sets all that up for me and the beauty of this is that I can use the install wizard to set the bulk of the system up and then run this script to finish it off as you can write the script to program all possible COTs and it just accepts the data for what is equipped
 
Another update, trial and error is a hard way to go about this, it would be so much easier if there was a manual. programming the inmail options was an eye opener but I am up to the point where I have a script that creates a virtual extn 250, sets a call forward all to voicemail and sets a group mailbox to belong to 250, it also sets all lines to DIL in mode 2 and sets the DIL destination to 250.

Still plenty to work on but I think this is a much cleaner option than having pre programmed templates as I can use the setup wizard to set all kinds of things and then tweak the resulting system using the script.

I would be interested in opinions of the benefits of this.
 
Thanks for the update. We use pre-programmed databases that we load into each system we sell, however scripts will allow us to expand our offerings into more specific customized settings.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top