Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Telnet in UCCX script


I have a requirement from a customer that requires that user enters his account information, and then script uses this account information as telnet option.

Is there a possibility to start telnet (or SSH) from script automatically and then in telnet session use user provided information?

After that I should get response (over telnet) from remote server and save this information in some kind of variable field.

Does anyone know how to accomplish this?

Thank you in advance!

Best regards,



Re: Telnet in UCCX script


I made a script earlier this year which telnet into a Voice Gateway, send command "show voice call summary" and retrieve and parse the response. This script is used to determine if one or more FXO ports are busy or not.

In order to do that, I built a custom Java class. Within this class I used the Apache Commons Net library.

This library provides all the TCP network communication you may need.

So, within the script, I instantiate the custom class and then I instruct it to telnet, send and retrieve. The result is then pass back to the script and I can do whatever I want.

Hope that help.



Re: Telnet in UCCX script

Good programming. I like to see the programmers coming in and making these systems sit up and beg, rather than just connecting the dots and following the party line.



New Member

Re: Telnet in UCCX script

Would you be willing to post the script, and everthing needed to make this work. I would be interested in seeing how this works.


Re: Telnet in UCCX script

Yeah, me too. Sounds like a very cool way to leverage the IVR to do things out of the ordinary.



Re: Telnet in UCCX script

I did this project to solve a problem with a Valcom paging system. This paging system is use with an IPCelerate server in order to provide paging for more than one port (zone) at a time. The problem was that when a user dials a multi-zone extension number, he doesn't know if one of the port associate with the multi-zone is busy or not. So, his call goes through but the page is then heard only in the zone where the ports are idle.

So, I made this script in order to verify the ports state prior to forward the call to the IPCelerate server. If one or more ports within the multi-zone is busy then a busy signal is played.

I attached the custom Java class and a jpg of the script.