TCL newbie: it works in TCLSH, how to invoke from a button?

I've gotten a couple of simple TCL scripts to work as intended from the IOS TCL shell using:
ccme(tcl)#source flash:scriptname
I'd like to associate each script call with a (different) DN.
I've tried:
application
service servicename flash:scriptname
param service-name servicename
Then
dial-peer voice 9980 voip
service servicename
incoming called-number 9980
dtmf-relay h245-alphanumeric
codec g711ulaw
no vad
dial-peer voice 9981 voip
service servicename
destination-pattern 9980
session target ipv4:192.168.60.1
dtmf-relay h245-alphanumeric
codec g711ulaw
no vad
What am I missing? Any assistance or pointers welcome.

By the way, I'm getting:
%CALL_CONTROL-6-APP_NOT_FOUND: Application servicename in dial-peer 9980 not found. Handing callid 17 to the alternate app .

Similar Messages

  • How to exit from the button test in diagnostic mode

    Hi,
    I am having some trouble with my ipod 7th gen.
    First my lightning cable wont be recognize. show the error Accesory incompatible.
    I try to solve the problem cleaning the golden pins in the cable and in the ipod. Don't work
    I enter in diagnostic mode in my ipod and I get stucked in the button counter test..
    In the screen appear a mesage 'Please reset the unit to end'. I don't know how to reset the unit
    I press any button and only increase the counter for every button.
    First how acan exit from the button counter test and how can fix the issue with the lightning cable

    Your problem is that you are trapped inside an event case. It is not a good idea to run extended code inside event cases, else the event structure cannot service other events.
    Why don't you use the outer loop for everything? Now things don't step on each others toes. What good is an event structure if it cannot react at all times???
    Message Edited by altenbach on 07-25-2008 12:26 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    event_problemMOD.vi ‏17 KB

  • How to display method result invoke from toolbar button on ADF

    Hi,
    I don't know how to display a message error or result, it is return from the method that is invoke from de toolbar button.
    thank for your help,
    Alex

    What type of UI? Swing? JSF? What is the method you are invoking ? a backing bean method? A method in an AM? How are you binding the button to the method?
    You might want to read this first:
    http://blogs.oracle.com/shay/2007/03/02

  • My prog's work fine. How to call from the file system?

    Hi,
    I currently have an application that works great. Its all javabeans and its called from a JSP page. My question is, I call like this:
    <%= MyJavabean.DoIT()%>....Is there a way to call this from the command line on unix

    OK...This is an example. If I can get this to work, Im good to go.
    I call this via:
    java BatchServlet
    and I get
    Exception in thread "main" java.lang.NoClassDefFoundError: BatchServlet (wrong n
    ame: wch/util/BatchServlet)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    package wch.util;
    import java.io.IOException;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class BatchServlet extends HttpServlet implements Runnable{
    static Thread t = null;
    public void init(ServletConfig c) throws ServletException{
    super.init(c);
    if (t==null){
    t = new Thread(this);
    t.start();
    public void run(){
    while (true){
    try{
    Thread.sleep(5000);
    }catch (InterruptedException ie){
    ie.printStackTrace();
    System.out.println("Wake up");

  • How get information from radio button into a textfile,

    ok, Here's my code. The point of the system is to write information from the booking form, onto the textfile named "something.txt"
    write code;
    public void write() {
    String fullfile = "something.txt";
    try {
    BufferedWriter out = new BufferedWriter(new FileWriter(fullfile));
    out.write("");
    out.write("HOLIDAY BOOKING SYSTE,");
    out.write("");
    out.write("SECTION 4.0 DESITNATION");
    out.write("");
    out.write("Holiday Destination: " + list.getSelectedValue());
    out.write("Duration of holiday: ");
    out.write("");
    out.write("SECTION 5.0 TRAVEL RESERVATION DETAILS");
    out.write("Airport for depature and return");
    out.write("Depature Date: " + txtDateD.getText());
    out.write("Depature Time: " + txtTimeD.getText());
    out.write("Arrival Date: " + txtDateA.getText());
    out.write("Arrival Time: " + txtDateA.getText());
    out.write("Holiday Destination: " + txtbookingno.getText());
    out.write("Customer Booking Information");
    out.close();
    } catch (IOException f) {
    //end of file writer
    The code below is for the radio buttons, The choice is to either pay for an "Economic" ticket, or a "First Class" ticket. If a customer selects the economic ticket radio button, what line of coding do i add to the write method above, to show "Economic ticket"
    JRadioButton EconomyButton = new JRadioButton(EconomyString);
    EconomyButton.setMnemonic(KeyEvent.VK_C);
    EconomyButton.setActionCommand(EconomyString);
    constraints.gridx=0;
    constraints.gridy=27;
    constraints.insets = new Insets (0,0,0,0);
    EconomyButton.setFont(new Font("palatino linotype", Font.PLAIN,13));
    gridbag.setConstraints(EconomyButton,constraints);
    c.add(EconomyButton);
    JRadioButton FirstClassButton = new JRadioButton(FirstClassString);
    FirstClassButton.setMnemonic(KeyEvent.VK_C);
    FirstClassButton.setActionCommand(FirstClassString);
    constraints.gridx=1;
    constraints.gridy=27;
    constraints.insets = new Insets (0,0,0,0);
    FirstClassButton.setFont(new Font("palatino linotype", Font.PLAIN,13));
    gridbag.setConstraints(FirstClassButton,constraints);
    c.add(FirstClassButton);
    Also i ran into another slight problem, theres a textbox called "Fine" in another form called "page1", how do i call it's value i.e. what line of code do i place for it in the method above? Help,

    Try to use the "[ code][ code]" tags, it makes your code much easier to read! :)
    If you want a method, such as write() to be able to get text from a radio button, such as EconomyButton, make sure to declare it higher in your code and public, so you can use the method:EcononomyButton.getText()Also note, you may find it easier if you rename your variables to lower case, such as "economyButton", and your classes upper case.
    For more information on ways to get information out of a button you've created, check out the javadocs:
    http://www.google.com/search?&q=java+5+jradiobutton
    Note, if you scroll down, you'll see a bunch of "Methods Inherited By" stuff. You can use them too!
    -FBL
    (This is your code, using the code tags)
              /* Write code */
         public void write() {
              String fullfile = "something.txt";
              try {
                   BufferedWriter out = new BufferedWriter(new FileWriter(fullfile));
                   out.write("");
                   out.write("HOLIDAY BOOKING SYSTE,");
                   out.write("");
                   out.write("SECTION 4.0 DESITNATION");
                   out.write("");
                   out.write("Holiday Destination: " + list.getSelectedValue());
                   out.write("Duration of holiday: ");
                   out.write("");
                   out.write("SECTION 5.0 TRAVEL RESERVATION DETAILS");
                   out.write("Airport for depature and return");
                   out.write("Depature Date: " + txtDateD.getText());
                   out.write("Depature Time: " + txtTimeD.getText());
                   out.write("Arrival Date: " + txtDateA.getText());
                   out.write("Arrival Time: " + txtDateA.getText());
                   out.write("Holiday Destination: " + txtbookingno.getText());
                   out.write("Customer Booking Information");
                   out.close();
              catch (IOException f) {
              //end of file writer
                        /* Radio buttons */
         JRadioButton EconomyButton = new JRadioButton(EconomyString);
         EconomyButton.setMnemonic(KeyEvent.VK_C);
         EconomyButton.setActionCommand(EconomyString);
         constraints.gridx=0;
         constraints.gridy=27;
         constraints.insets = new Insets (0,0,0,0);
         EconomyButton.setFont(new Font("palatino linotype", Font.PLAIN,13));
         gridbag.setConstraints(EconomyButton,constraints);
         c.add(EconomyButton);
         JRadioButton FirstClassButton = new JRadioButton(FirstClassString);
         FirstClassButton.setMnemonic(KeyEvent.VK_C);
         FirstClassButton.setActionCommand(FirstClassString);
         constraints.gridx=1;
         constraints.gridy=27;
         constraints.insets = new Insets (0,0,0,0);
         FirstClassButton.setFont(new Font("palatino linotype", Font.PLAIN,13));
         gridbag.setConstraints(FirstClassButton,constraints);
         c.add(FirstClassButton);
         

  • How to invoke from UNIX script and pass back return code?

    Though I am an experienced developer, I am new to java. I created a class containing a single method. I have performed my testing by running the class class.method from the command line in a UNIX (Solaris) environment. Now, I would like to have the class.method invoked from a UNIX shell script, and to return a success/failure indicator from the method, to the UNIX script. I modified the method to make it return char, rather than being defined as void. Within the class and method, I declared and initialized a char variable. I added a finally clause which contains a single return statement, returning the char return code variable. Within my UNIX script, I invoke the class/method as follows:
    return_code = java myClass
    This does not seem to be invoking the method however. Can someone please tell me what I am doing wrong? Or is more information needed in order for someone to help me out.
    Please let me know.
    Thanks.
    Brad

    stdunbar,
    Using your suggestion of System.exit(retVal); seems to allow the java method to be performed successfully (Thank You). But I am still having a problem with the value being recognized by the shell script.
    In my script, I'm doing the following:
    java MyClass inputparameter > return_code
    export return_code
    echo $return_code
    But return_code does not seem to contain a value. Just before the System.exit(retVal); I added System.out.println("return code = " + retVal ); and I can see that retVal. When I run the java method outside of the UNIX shell script, I can see that retVal does indeed contain a value. So I think my problem might actually be the code in the UNIX script.
    Thanks again.
    Brad

  • HT5622 my apple id is not working when i sign in from my laptop it works but when i sign in from my iphone4 then its not working it gives the message of "your aapleid or password is incorrect"? how can i solve this problem please help

    my apple id is not working when i sign in from my laptop it works but when i sign in from my iphone4 then its not working it gives the message of "your aapleid or password is incorrect"? how can i solve this problem please help

    Hey nocillado,
    Thanks for using Apple Support Communities.
    It sounds like you have 2 things you want to address. These articles can help you use iCloud with your existing Apple ID.
    Get help activating your iPhone
    http://support.apple.com/kb/ts3424
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Using the same Apple ID for Store purchases and iCloud (recommended)
    Have a nice day,
    Mario

  • I have an iphone 4. I disconnected it from my iTunes account but I am still using the iphone and the Apple ID. If I make a purchase will it work? Also, how can I reconnect my iphone to my Apple ID?

    I have an iphone 4.
    I disconnected it from my iTunes account but I am still using the iphone and the Apple ID.
    If I make a purchase will it work?
    Also, how can I reconnect my iphone to my Apple ID?

    Do you mean that you removed the phone from the 'manage devices' section of your iTunes account ? If you do then that won't stop you being able to purchase items on your phone - you only need to be logged into an account to be able to purchase with it.
    If you do mean the 'manage devices' section then you can associate, or re-associate, a device (or computer) by using iTunes Match, or automatic downloads, or redownloading past purchases on it : http://support.apple.com/kb/HT4627

  • I cannot locate my cs6 redemption code and I just purchased a new computer because my old one doesn't work anymore. How can I get my photoshop on this computer? All my other products are registerd with a serial number

    I cannot locate my cs6 redemption code and I just purchased a new computer because my old one doesn't work anymore. How can I get my photoshop on this computer? All my other products are registerd with a serial number

    The activation servers for CS and CS2 stopped working and were taken down. You'll need to take a look at this link for your issue: https://helpx.adobe.com/x-productkb/policy-pricing/creative-suite-2-activation-end-life.ht ml
    Benjamin

  • I see people from different ages at my work and every month I need to count how many people from each age I've seen that month. How can I do to give the entries to numbers in a single cell and make numbers count them for me?

    I see people from different ages at my work and every month I need to count how many people from each age I've seen that month. How can I do to give the entries to numbers in a single cell and make numbers count them for me? The final result would be a spreadsheet telling there were 8 people from 20 to 39 years old, 14 peolple from 40 to 59 and so on...

    jpqcampos wrote:
    This appears to be an 'input form' using 'Radio Buttons' to select the category. Neither of these features are supported in Numbers '09.
    You can input the data on one table and summarize it on a second table, but the input table will continue to hold data for each event.
    And by using the Reorganize button, you can hide all but two rows of that table to approximate the appearance and performance of an input form.
    Here are the two tables, Data on the left and Summary on the right. Notes below.
    The grey-filled columns in both tables are 'working' columns, and may be hidden (as shown in the image below).
    Data table:
    D1 contains the word "TRUE" (in capital letters). (This row is always shown.)
    D2 is empty, or may contain any value except "TRUE" (This row is always hidden under the Reorganize rule.)The rest of Row 2 of this table requires the data shown: a number outside the range to be counted (999), and two checkboxes, both checked.
    D3 (and filled down the rest of column D):   =AND(OR(B2,C2),NOT(OR(B3,C3)))
    The formula returns TRUE only for the first unused row in the table (ie. the first row for which neither checkbox has been checked)
    Summary table:
    Column A contains labels for the age ranges to be counted.
    Column B contains the same information in the form necessary for the formulas in columns C and D. They need a numeric value, and that value must be the largest acceptable value in the range to be counted.
    C2 (and filled right to column D, then both filled down to row 5):
        =COUNTIFS(Data :: $A,"<="&$B,Data :: B,TRUE)-SUM(C$1:C1)
    Two changes from the previous example:
    COUNTIFS is used to separate the Native and Foreign counts as well as the age range to be counted.
    The amount subtracted from each result is the SUM of the earlier results, and includes the text value in the first cell of the column (which is interpreted by SUM as a zero).
    See note below regarding my earlier formula.
    When the greyed columns are hidden and the checkbox in the Reorganize pane is checked, the two tables will appear as shown below:
    Close the reorganize pane, and the 'data entry form' is ready to use.
    To use, enter the age first, then check one of the boxes.
    As soon as one box is checked, the row will be hidden, and the next (unused) row will be shown.
    Regards,
    Barry
    Note regarding formula in my earlier post:
    The earlier formula will give erroneous results as it subtracts only the count directly above it from its count of persons in the age range 0-n.
    In E2 of that table, replace "-E1" with "-SUM(E1:E$1)
    Fill down to E8.
    Ignore the instructions (in that post) following "Fill down to E8."
    B

  • I have created a Blog in iWeb and uploaded it to an FTP server.   It works fine, except that the 'Comments' facility is missing.   When I upload the blog to MobileMe   the 'Comments' facility is there and working great.   How can I solve the problem on th

    I have created a Blog in iWeb and uploaded it to an FTP server.   It works fine, except that the 'Comments' facility is missing.   When I upload the blog to MobileMe   the 'Comments' facility is there and working great.   How can I solve the problem on the FTP server Blog.

    You haven't a problem. You simply did not read the iWeb Help :

  • My camera is working but does not work on skype how do I turn the camera on for Skype

    My camer is working but does not work on skype how do I turn the camera on.

    See this thread:
    https://discussions.apple.com/thread/5306216?tstart=0
    FIX: 
    1. You need Time Machine
    2. Go to folder /Library/CoreMediaIO/Plug-Ins/DAL/
    3. Copy AppleCamera.plugin to good place (usb memory stick is the best place).
    4. Go to Time machine in date that skype work fine.
    5. Change AppleCamera.plugin with file from Time Machine
    6. Restart system, Now skype need to work with camera.
    If that doesnt pass,
    Suggest looking here, much success has been found:
    http://community.skype.com/t5/Mac/OS-X-10-8-5-broke-Video-on-MacBook-Air/td-p/18 91729/page/4

  • Before I upgraded my iPad mini, you could turn off apps to save battery power by double clicking the control button and then holding your finger on the app button until the minus sign appeared.  That doesn't work anymore.  How do you turn off the apps wit

    Before I upgraded my iPad mini, you could turn off apps to save battery power by double clicking the control button and then holding your finger on the app button until the minus sign appeared.  That doesn't work anymore.  How do you turn off the apps with ios7

    Now you swipe downward, the app will appear and you delete, keep scolling to the right as in the past.  With the new operating system you also swipe downward to get the search bar to find an app

  • I turned my iMessages off and now it won't turn back on and asks for mobile data or wifi to be on but my mobile data works fine! How do I get iMessages to turn on again?

    I Turned my iMessages off and now it won't turn on again without saying that wifi or mobile data must be turned on, however my mobile data works fine. How do I get iMessages to turn on again?

    I had a similar issue with my phone.....it just shut off and wouldn't come back on even thought it was charged.  My daughter toggled the mute switch several times and then she pressed and held down the home and lock buttons.  It worked......would be worth a shot.

  • I have to reinstall Mail as it's not working well. How can I make a back up of my emails so as not to lose them all?

    I have to reinstall Mail as it's not working well. How can I make a back up of my emails so as not to lose them all?

    Thank you for your time Woody. Recently the Mac seems to freeze a lot, seemingly due to a problem with the airport, especially if the computer is inactive for anything more than a few minutes. Then yesterday I suddenly couldn't send or receive messages so I got in touch with my server and they reconfigured the mail account. I can now receive messages but can't send them, always getting a timed out message when I try to send an email. I phoned the server again and they said it must be a problem with Mail as we tried sending a message online from the server's webpage and it worked fine, so they suggested I reinstall Mail. So hence my original question. Sorry for the rambling! I'm not very computer minded.

Maybe you are looking for

  • Flashing v2.2 to Flame doesn't work: Pushing Gecko to device failed.

    My Flame does not want to take production build 2.2: https://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/latest-mozilla-b2g37_v2_2-flame-kk/ Before attempting to flash, I installed base image v188. I repeated the entire process several times, with th

  • SQ01 ALV DISPLAY WHEN USING LOGOCAL DATABASE

    Dear All, I'm using a logical database (EMM) to build a query in SQ01, I need an ALV display. If I use only three tables of the logical database hierarchy it works fine, but as soon as I try to use a fourth one, then the ALV display does not work any

  • X does not start

    Hello everybody. Can't start X. I'm using VirtualBox on WindowsXP host. I installed all packages needed such as libgl, xorg, mesa, vesa driver. Then configured xorg.conf and tried to X -config /etc/X11/xorg/conf But nothing happens. More exactly the

  • Unable Sync Organizer Data To New Phone

    Purchased a Torch 9800 today and have been trying to transfer my contact list from my prior device. I had a Curve 8310 previously but lost it over the weekend. However, I backed my device up right before the weekend. I still can not figure out how to

  • ADF 11g Row Selection in a Table with radio button

    Hi there, I need to select one row with a radio button and then take some action on those rows via command buttons. I need to use a Radio Button and not the table property rowSelection provided with the latest features of ADF 11g. In ADF 10g you can