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

Reading vector variable from external application

Status
Not open for further replies.

gacmb5

Technical User
Apr 12, 2010
11
NL
We use vector variables to route calls in vectors. Users can set the variables with a speed dial button, but are unable to check the value.
Is there a way to get the variable value (for example with a SNMP call, command line function etc.) so we can use it to display the status on a webpage for the end users?

(S8500 release 5)

WB
 
i'm almost 100% positive there is no OID for that. I just spent a lot of time combing through the MIB file working on setting up an NMS for my PBX network, and I did not see anything related to vectors.

The Avaya MIB is just awful.
 
side note: a lot of the mib file is built off G3R architecture =/ I wish they would bring it into the modern era.
 
The S8500 is a Linux machine which you can log-in to. Is there a place on the server where this info is stored? Can a shell script be build to extract the values? Maybe create some sort of chat script that logs in to the server, gets the value and logs out.

The question is, where is this info stored?
 
I wouldn't call it a linux machine.. it's a very stripped down redhat kernal. It may not even have Bash on it.
 
I've done something like this. I have it working 2 ways. One is web based. User can goto a web page and select the vector, and change the variable. Second way is TUI. User can dial an extension see what the variable is set to and then is given options to change. The 2nd way is by far easier.
 
@phoneguy55: I'm interested in your first method, are you just connecting via SSH running commands and capturing data? Or is there something i'm missing here?
 
Hi phoneguy55,

Can you share a little more info on how you accomplished this?
I'm especially interested in how you can get/set variables from a web page.
Thanks!
 
If you do Display Variables it shows the current value under Assignment.
I know this doesn't give you the answer but it might point you in the right direction.
I'm also interested on how this is manipulated from a web-page.

_______________________________________________________________
I stay away from the telephone if at all possible.
Lee Trevino
 
Yes, I know. But I don't want to use ASA or autosat (which seems to be a bunch of links that in the end point to an executable named sat) by hand but want to use it from within a script or something so we can build an application around it.

 
@gacmb5 my best guess would be to run a linux machine(real linux say CentOS, Suse, Debian, etc). Then have the web page SSH to the Avaya Gateway run your commands capture data and display it in a web page.. and then reverse the process to submit data.

I'm doing something like this for monitoring and getting information so I can monitor my PRI's up and down and alarm when a PRI goes down(since Avaya doesn't actually alarm!)
 
The front end of my application uses php running on an apache server. Very simple, a drop down with all the variables and then a box to enter what you want the variable to be set to. If you want to get more complex, you might want to create some back check to prevent someone from say entering 2 digits when the variable is only 1 in length.

The backend uses a telnet or ssh script to the PBX and makes the change. Its necessary to use OSSI for this. Then take the output from OSSI and display it on a new page.
 
fluffheadsr/phoneguy55,

Thanks for the input. I'm familiar with Linux, Apache, PHP, ssh... but I'm new to the Avaya Voip part. OSSI is new to me as well. I will need the dive into ossis terminal type.
I think I need to open my telnet session to 5023 instead of the default telnet port and type ossis when I get the terminal type choice right?
 
Thanks for your pointers.

Here is a simple solution that can be extended with more sophisticated stuff:

php file to generate simple webpage:

<html>
<head><title>status page</title><head>
<body>
<?php
$telstatus=exec('./getvar.sh');
echo "$telstatus";
?>
</body>
</html>

getvar.sh script
#!/bin/sh
./vectorvar | tr -d '\n\t'|sed 's/.*\(.\)VV5.*/\1/'

(this script deletes all new lines and tabs, and gets the value for VV5)

we use an expect script to 'drive' the telnet session:

#!/usr/bin/expect
spawn telnet your_ip_address_here 5023
expect "login: "
send "youradminlogin\n"
expect "Password: "
send "youradminpassword\n"
expect "Terminal Type"
send "ossis\n"
expect "t"
send "cdisplay variables\n"
send "t\n"
expect "t"
send "CTRL]"
send "quit\n
 
Set the ASAIUUI with the variable value and give the stations the asai info button. I use this to automatically display info on the soft clients.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top