A little help debugging a JTree

I'm pretty much a first time JTree maker, and I can't seem to find the error in my code keeping me from adding into my categories I was hopeing someone in here would help.
I have a vector containing objects constructed from a text file like so:
try
   *The job of this is to read a file to make items in the
   *categories below.
  fr = new FileReader (myfile);
  br = new BufferedReader (fr);
  line = br.readLine ();
  while (line != null)
   underWho = line;
   name = br.readLine ();
   desc = br.readLine ();
   img = br.readLine ();
   subInfo.addElement (new ProSubTools (underWho, name, desc, img));
   line = br.readLine ();
catch (IOException ioe)
   System.out.println (ioe);
}from here I use the following method to construct my nodes, the first set is made using a String array called categories. ProSubTools is basically a container class so that I can keep info like what node to put them under (underWho), their name and so on.
private void createNodes (DefaultMutableTreeNode top)
  DefaultMutableTreeNode category = null;
  DefaultMutableTreeNode item = null;
  for (int i = 0; i < categories.length; i++)
    category = new DefaultMutableTreeNode (categories );
for (int j = 0; j < subInfo.size (); j++)
{ /*I know the error is in here some where*/
/*This is supposed to make another node for the tree*/
ProSubTools temp = (ProSubTools)subInfo.elementAt (j);
item = new DefaultMutableTreeNode (temp.toString ());
/*fileTo () returns a String saying where to put this node*/
if(temp.fileTo ().equals (categories [i]))
category.add (item);
top.add (category);

Turns out there was nothing wrong, apparently I saved it as my text file as Unicode. sorry

Similar Messages

  • My drive recently had to be replaced with a new one installed by Apple they reinstalled all my stuff from my time machine. Most my programs had to be updated which I managed with a little help from my friends, but the last one that I can't solve is

    My IMAC OSX 10.6.8   2.8 GHz intelcore  2Duo 4GB 800 Mhz DDR2 SDRam recently had to have its hard drive replaced by apple thy actually had to give me a larger one because mine was no longer available,They also reinstalled all my programs and data from my 2 terrabite time machine back up. I got my system home and found that I had to upgrade most of my programs which I managed with a little help from my friends, but I still have one problem that I can't solve I have a Nikon Coolpix S6 that I have Been Syncing with my Iphoto since I've got it 3 years ago and now when I place it in the cradle the program reconizes it and says that it is going to start to import the new photos the little white wheel in the center of the screen starts spinning but nothing else happens. I checked all my connections and they are goog plus I even downloaded a nikon progam just to double check the camera & cradle and it works there but it wont pair off with my IPhoto.

    First go to iPhoto Preferences, look in both General and Advanced tabs to make sure that things are set to import from camera into iPhoto.
    Then if that doesn't help, connect the camera and open Image Capture in your Applications > Utilities folder and see if you can use Image Capture to reset the import path from the camera to iPhoto.
    Image Capture: Free import tool on Mac OS X - Macgasm
    Message was edited by: den.thed
    Sorry John, I didn't see your post when I clicked the reply button. Dennis

  • Need a little help new to mac

    Need a little help I'm new to Mac.. i have had my ibook for over a year now and i like it a lot, but some times my usb post dies on my for a couple days maybe weeks. Ill have my ipod connected and when i go to plug in a flash drive. It doesn't detect my ipod anymore and my usb port don't work. it says that they were "removed improperly" and now they are not working again..i have tried to reinstall the whole os again and that doesn't work i don't have the hardware test disk so i don't know what could be the problem i know its not the logic board is there any test i can do to it to find out the problem its an ibook late 2001... there is no reset button on it. i tried to hold in the space bar and now when i boot up i get prompt to this screen that shows the world and then a folder with a ? mark but then after a few sec it boots right up im a mess need some help

    +it says that they were "removed improperly"+
    You have to go to the iPod's icon on your computer (or the flash drive's icon), select it and eject it there before removing it. Otherwise, data can be corrupted and/or lost. Repeatedly removing it without ejecting it from the desktop can cause it not to be recognized any longer.
    If your iBook is a "late 2001" model. It should have a reset button. Check out the chart here to make sure which model iBook you have:
    http://support.apple.com/kb/HT1772?viewlocale=en_US
    +i get prompt to this screen that shows the world and then a folder with a ? mark but then after a few sec it boots right up+
    It's trying to find a network volume from which to boot.
    Once it's booted up, go to System Preferences > Startup Disk, and select your Mac OS X startup volume. Then close System Preferences. The next time you start up, it should start up without looking for a network volume.

  • Little help needed on utl_file

    Hi
    I am trying to write a small stored procedure for recording some information to a text file, and I need a little help. However, beforehand, let me give you what I have done:
    procedure create_record (order_id IN VARCHAR2) IS
    l_dir VARCHAR2(10) 'c:/orders';
    l_filename VARCHAR2(25) := 'orderlist';
    l_datetime DATE := sysdate;
    l_output utl_file.file_type;
    begin
    l_output := utl_file.fopen(l_dir, l_filename, 'w');
    if !utl_file.fopen(l_output) THEN
    utl_file.put_line(l_output, l_datetime || order_id);
    utl_file.fclose(l_output);
    else
    utl_file.fclose(l_output);
    l_output := utl_file.fopen(l_dir, l_filename, 'a');
    end if;
    end;
    Now for questions, firstly, I am not entirely sure that the if statement for checking to see if an existing text file exists is the correct way, and would welcome some help on this, and correction.
    Secondly, I need to add a second statement to the if, which if the file exists and the date on that file is the same as the system date, then to open and append some information to it, else create a new file.
    Unfortunately, for me, I am not sure how to do this.
    Can anyone show me how this can be done?
    Thanks

    Hope you can read my coding correctly.
    ps: not tested
    DECLARE
    myFileExist BOOLEAN;
    myFileLength NUMBER;
    myFileBlockSize BINARY_INTEGER;
    myText VARCHAR2(1000):= NULL;
    myInstr NUMBER;
    l_dir VARCHAR2(10) 'c:/orders';
    l_filename VARCHAR2(25) := 'orderlist';
    l_datetime DATE := trunc(sysdate);
    l_output utl_file.file_type;
    BEGIN
    utl_file.fgetattr(l_dir, l_filename, myFileExist, myFileLength, myFileBlockSize);
    if not myFileExist then -- file not exist
    <ul>l_output := utl_file.fopen(l_dir, l_filename, 'w');
    utl_file.put_line(l_output, l_datetime || order_id);</ul>
    else --file exist
    <ul>
    l_output := utl_file.fopen(l_dir, l_filename, 'r');
    LOOP
    <ul>
    --------------------------------------------------------------------start loop
    UTL_FILE.GET_LINE(l_output,myText) ;
    SELECT instr(UPPER(myText),UPPER(trunc(SYSDATE))) into myInstr FROM dual;
    IF myText IS NULL THEN
    <ul>
    EXIT;
    </ul>
    END IF;
    if myInstr > 0 then
    <ul>
    utl_file.fclose(l_output);
    l_output := utl_file.fopen(l_dir, l_filename, 'a');
    </ul>
    else
    <ul>
    utl_file.fclose(l_output);
    l_filename:='newfilename';
    l_output := utl_file.fopen(l_dir, l_filename, 'w');
    </ul>
    end if;
    --------------------------------------------------------------------end loop
    </ul>
    END loop;
    utl_file.put_line(l_output, l_datetime || order_id);
    </ul>
    end if;
    utl_file.fclose(l_output);
    END;
    Edited by: Lie Ching Te on 12-Feb-2010 12:34 PM
    Edited by: Lie Ching Te on 12-Feb-2010 1:01 PM

  • A little help needed in message mapping

    a little help needed in message mapping
    I have to map one of the idoc header segments as many times as it occurs to each Idoc when using the split message funcionality
    let us say we have the segment seg1 and there is a QUALF in it
    <seg1>
    <qualf>001</qualf>
    </seg1>
    <seg1>
    <qualf>002</qualf>
    </seg1>
    then we use the vbeln to split the idoc into 2.
    so if we have
    <vbeln> 1 </vbeln>
    and
    <vbeln>2 </vbeln>
    then 2 Idocs should be created like this
    <Idoc>
    <vbeln> 1 </vbeln>
    <seg1>
    <qualf>001</qualf>
    </seg1>
    <seg1>
    <qualf>002</qualf>
    </seg1>
    </Idoc>
    <Idoc>
    <vbeln> 2 </vbeln>
    <seg1>
    <qualf>001</qualf>
    </seg1>
    <seg1>
    <qualf>002</qualf>
    </seg1>
    </Idoc>
    it is easy to create the segment by using createif with the QUALF field but my problem how to map the qualf twice for each idoc
    Thanks.

    UseOneAsMany is the function you need to use.
    It takes three parameters:
    1 --- The node you want to duplicated
    2 --- How many times you want to duplicated
    3 --- The context you want to place for it.
    Regards
    Liang

  • Hi i keep downloading the same song twice on different things, these collections and regular albums are confusing...i lost all my media and trying to get it back and now 2 of the same song is up...why cant support be a little helpful?

    is Apple going bankrupt again, they seem to not wanna be bothered, is there a way to EMAIL, im not into calling and it says my calls have expired....why cant Apple be a little helpful, im a little upset with them and wanna throw my ipod touch across the room -  i dont want 2 of the same songs anymore, i dont wanna be charged twice these bands are making it very difficult to remember the last album i had this stuff on....i dont know my music anymore it keeps changing

    Perhaps, if you stop ranting - and stop typing in capitals (which is regarded as shouting), then you may get somewhere. But since I'm so nice...
    A good place to start for help is here, in these discussions and then proceed by explaining the probelm clearly.
    Let's start by crossing out anything that isn't relevant:
    is Apple going bankrupt again, they seem to not wanna be bothered, is there a way to EMAIL, im not into calling and it says my calls have expired....why cant Apple be a little helpful, im a little upset with them and wanna throw my ipod touch across the room - i dont want 2 of the same songs anymore, i dont wanna be charged twice these bands are making it very difficult to remember the last album i had this stuff on....i dont know my music anymore it keeps changing
    So, are we to assume that a band you like, produce albums with songs on them that you already have, on other albums?
    If so, that's down to the band, not Apple. The only answer to that is that you should check for yourself whether you already have a particular song and if you do, don't buy it again. However, you should also consider that buying the full album (with a song you don't want) may be cheaper than buying the individual songs that you do want.

  • Little help please with forwarding traffic to proxy server!

    hi all, little help please with this error message
    i got this when i ran my code and requested only the home page of the google at my client side !!
    GET / HTTP/1.1
    Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
    Accept-Language: en-us
    UA-CPU: x86
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727)
    Host: www.google.com
    Connection: Keep-Alive
    Cookie: PREF=ID=a21457942a93fc67:TB=2:TM=1212883502:LM=1213187620:GM=1:S=H1BYeDQt9622ONKF
    HTTP/1.0 200 OK
    Cache-Control: private, max-age=0
    Date: Fri, 20 Jun 2008 22:43:15 GMT
    Expires: -1
    Content-Type: text/html; charset=UTF-8
    Content-Encoding: gzip
    Server: gws
    Content-Length: 2649
    X-Cache: MISS from linux-e6p8
    X-Cache-Lookup: MISS from linux-e6p8:3128
    Via: 1.0
    Connection: keep-alive
    GET /8SE/11?MI=32d919696b43409cb90ec369fe7aab75&LV=3.1.0.146&AG=T14050&IS=0000&TE=1&TV=tmen-us%7Cts20080620224324%7Crf0%7Csq38%7Cwi133526%7Ceuhttp%3A%2F%2Fwww.google.com%2F HTTP/1.1
    User-Agent: MSN_SL/3.1 Microsoft-Windows/5.1
    Host: g.ceipmsn.com
    HTTP/1.0 403 Forbidden
    Server: squid/2.6.STABLE5
    Date: Sat, 21 Jun 2008 01:46:26 GMT
    Content-Type: text/html
    Content-Length: 1066
    Expires: Sat, 21 Jun 2008 01:46:26 GMT
    X-Squid-Error: ERR_ACCESS_DENIED 0
    X-Cache: MISS from linux-e6p8
    X-Cache-Lookup: NONE from linux-e6p8:3128
    Via: 1.0
    Connection: close
    java.net.SocketException: Broken pipe // this is the error message
    at java.net.SocketOutputStream.socketWrite0(Native Method)
    at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
    at java.net.SocketOutputStream.write(SocketOutputStream.java:115)
    at java.io.DataOutputStream.writeBytes(DataOutputStream.java:259)
    at SimpleHttpHandler.run(Test77.java:61)
    at java.lang.Thread.run(Thread.java:595)
    at Test77.main(Test77.java:13)

    please could just tell me what is wrong with my code ! this is the last idea in my G.p and am havin difficulties with that cuz this is the first time dealin with java :( the purpose of my code to forward the http traffic from client to Squid server ( proxy server ) then forward the response from squid server to the clients !
    thanx a lot,
    this is my code :
    import java.io.*;
    import java.net.*;
    public class Test7 {
    public static void main(String[] args) {
    try {
    ServerSocket serverSocket = new ServerSocket(1416);
    while(true){
    System.out.println("Waiting for request");
    Socket socket = serverSocket.accept();
    new Thread(new SimpleHttpHandler(socket)).run();
    socket.close();
    catch (Exception e) {
    e.printStackTrace();
    class SimpleHttpHandler implements Runnable{
    private final static String CLRF = "\r\n";
    private Socket client;
    private DataOutputStream writer;
    private DataOutputStream writer2;
    private BufferedReader reader;
    private BufferedReader reader2;
    public SimpleHttpHandler(Socket client){
    this.client = client;
    public void run(){
    try{
    this.reader = new BufferedReader(
    new InputStreamReader(
    this.client.getInputStream()
    InetAddress ipp=InetAddress.getByName("192.168.6.29"); \\ my squid server
    System.out.println(ipp);
    StringBuffer buffer = new StringBuffer();
    Socket ss=new Socket(ipp,3128);
    this.writer= new DataOutputStream(ss.getOutputStream());
    writer.writeBytes(this.read());
    this.reader2 = new BufferedReader(
    new InputStreamReader(
    ss.getInputStream()
    this.writer2= new DataOutputStream(this.client.getOutputStream());
    writer2.writeBytes(this.read2());
    this.writer2.close();
    this.writer.close();
    this.reader.close();
    this.reader2.close();
    this.client.close();
    catch(Exception e){
    e.printStackTrace();
    private String read() throws IOException{
    String in = "";
    StringBuffer buffer = new StringBuffer();
    while(!(in = this.reader.readLine()).trim().equals("")){
    buffer.append(in + "\n");
    buffer.append(in + "\n");
    System.out.println(buffer.toString());
    return buffer.toString();
    private String read2() throws IOException{
    String in = "";
    StringBuffer buffer = new StringBuffer();
    while(!(in = this.reader2.readLine()).trim().equals("")){
    buffer.append(in + "\n");
    System.out.println(buffer.toString());
    return buffer.toString();
    Edited by: Tareq85 on Jun 20, 2008 5:22 PM

  • Greetings,   I need a little help. I have a WRT54G Wirele...

    Greetings,
    I need a little help. I have a WRT54G Wireless Router, and it worked well for years with my Alcatel DSL Modem (Bellsouth/ATT).  The modem went out and it was replaced with Westell Modem.  When I bypass the router I have no problem connecting to the Internet, however when I connect the router--no connection.  I thought it would not be a problem swapping the modem out.  I am running XP with Norton Internet Security and Anti-virus.  I have disabled Norton and do not believe that to be the problem.  Do I have to reconfigure the router?  If so, can I do it with the original install CD?  (I am disabled and the original CD/instructions/box is in the attic and I cannot get it easily.)  I have read several different threads, but they do not specifically address my problem.  Any assistance is appreciated.  Eddy

    Many Westell modems are actually "modem-routers" and they use the same 192.168.1.1  address space as your WRT54G.  This is the root of your problems.
    Try the settings at this URL.
    http://www.dslreports.com/faq/6323
    Note that the "WAN" port on the BEFSR41 in the example is the same as the "Internet" port on your WRT54G.
    Please let me know whether or not this worked for you.

  • TS1372 I was just about to about to update my iPod nano 7 from 1.0.2 to 1.0.3 . And after the complete download of the software,it says "The firmware file could not be found"   A little help anyone!!!

    I was just about to about to update my iPod nano 7 from 1.0.2 to 1.0.3 . And after the complete download of the software,it says "The firmware file could not be found"   A little help anyone!!!

    Welcome to Apple Discussions!
    Take a look at these two articles. The error messages are not the same, but they may help...
    http://docs.info.apple.com/article.html?artnum=304309
    http://docs.info.apple.com/article.html?artnum=301267
    If not, post back.
    btabz

  • Help Debugging method

    Hi:
    Can someone help me debug and correct following program?
    The error message I receive is Exception in thread "main" java.lang.StringIndexOutOfBoundsException:
    String index out of range: 1
    at java.lang.String.charAt(String.java, Compiled Code)
    at RemoveDuplicates.key(RemoveDuplicates.java, Compiled Code)
    at RemoveDuplicates.main(RemoveDuplicates.java:12)
    The code is as follows:
    class RemoveDuplicates
    public static void main(String args[])
    String keyword = args[0];
    System.out.println(key(keyword));
    public static String key(String keyword)
    {String temp = "";
       for(int i = keyword.length()-1; i > -1 ; i--)
       if(i == keyword.indexOf(keyword.charAt(i)))
        temp = keyword.charAt(i)+ temp;
        keyword = temp;
    return keyword;
    If I change the code as follows it will run without error but I need to put the code in a method as part of a larger program.
    class RemoveDuplicates
    public static void main(String args[])
    String temp = "";
    String keyword = args[0];
    for(int i = keyword.length()-1; i > -1 ; i--)
    if(i == keyword.indexOf(keyword.charAt(i)))
    temp = keyword.charAt(i)+temp;
    keyword = temp;
    System.out.println(keyword);

A: Help Debugging method

Here's your method corrected - albeit with some renamed variables, a variable addition and some reformatting...
  public static String removeDuplicates(String s)
    String temp = "";
    for(int i = s.length()-1; i >= 0 ; i--)
      char c = s.charAt(i);
      if(i == s.indexOf(c))
        temp = c + temp;
    return temp;
  }The only functional change is the removal of the line in the if statement body of "s = temp"... This would cause the StringIndexOutOfBounds and would also lose the as yet unprocessed characters.
Here also is a version which trades off a higher memory usage to avoid creating a lot of Strings and rescanning the original String...
  public static String removeDuplicates(String s)
    boolean[] foundChars = new boolean[Character.MAX_VALUE+1];
    StringBuffer sb = new StringBuffer(s.length());
    for(int i = 0, j = s.length(); i < j; i++)
      char c = s.charAt(i);
      if(!foundChars[c])
        foundChars[c] = true;
        sb.append(c);
    return sb.toString();
  }Hopefully these both work...
Talden
PS: Don't forget those dukes...

Here's your method corrected - albeit with some renamed variables, a variable addition and some reformatting...
  public static String removeDuplicates(String s)
    String temp = "";
    for(int i = s.length()-1; i >= 0 ; i--)
      char c = s.charAt(i);
      if(i == s.indexOf(c))
        temp = c + temp;
    return temp;
  }The only functional change is the removal of the line in the if statement body of "s = temp"... This would cause the StringIndexOutOfBounds and would also lose the as yet unprocessed characters.
Here also is a version which trades off a higher memory usage to avoid creating a lot of Strings and rescanning the original String...
  public static String removeDuplicates(String s)
    boolean[] foundChars = new boolean[Character.MAX_VALUE+1];
    StringBuffer sb = new StringBuffer(s.length());
    for(int i = 0, j = s.length(); i < j; i++)
      char c = s.charAt(i);
      if(!foundChars[c])
        foundChars[c] = true;
        sb.append(c);
    return sb.toString();
  }Hopefully these both work...
Talden
PS: Don't forget those dukes...

  • Help debugging an Apache module compile

    Has anyone every had any experience adding in modules to apache that use openssl?
    We have had great luck installing this module in particular "mod_cosign" with Apache 1.3 standalone but we are having a heck of a time compiling it with OHS.
    The module we are using is from:
    http://webapps.itcs.umich.edu/cosign/index.php/Cosign_Wiki:Test_install_HOWTO#Compilation_and_Installation
    We are compiling this with openssl-0.9.7e
    And here is the error we get when we try to start apache
    .../Apache/Apache/bin/apachectl startssl: execing httpd
    Syntax error on line 245 of .../Apache/Apache/conf/httpd.conf:
    Cannot load .../Apache/Apache/libexec/mod_cosign.so into server: ld.so.1: .../Apac
    he/Apache/bin/httpd: fatal: relocation error: file .../Apache/Apache/libexec/mod_cosign.so: symbol RAND_bytes: referenc
    ed symbol not found
    I'm not sure what it is truly missing and why the "RAND_bytes" is missing. I know this is specific issue but I was hoping maybe somebody has some experience with other modules being compiled and help debugging them.
    Thanks,
    Justin

    You should try with the latest apache 1.3.x version rather than with the 2.x version. The mobile server module that has been shipped has been tested with 1.3.x version. Hi! Summit,
    Thanks for your good observation.
    I already figured that and tried on
    apache_1.3.27
    I went through all te trouble to compile a EAPI enabled
    Apache to fix the 'Symbol resolving problem'
    Now I have the EAPI enabled ( pretty much ssl enabled ) Apache_1.3.27
    Now when I load the module 'libwtgapach.so'
    I get the following log ERRO entry in Apache and it never comes up.
    Here is my ewrror log says.
    OUCH: nested memory code, to 1 levels.
    OUCH: nested memory code, to 1 levels.
    OUCH: nested memory code, to 1 levels.
    [Thu Nov  7 16:15:41 2002] [notice] Apache/1.3.27 (Unix) configured -- resuming normal operations
    [Thu Nov  7 16:15:41 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
    [Thu Nov  7 16:16:07 2002] [notice] caught SIGTERM, shutting down
    OUCH: nested memory code, to 1 levels.
    OUCH: nested memory code, to 1 levels.
    OUCH: nested memory code, to 1 levels.
    This could still be due to a problem in the Shared Object 'libwtgapach.so' as without it the EAPI enaled Apache works fine.
    This is very criutical for me to get the 'Mobile' project we are researching on to get going.
    Any help is deeply appreciated, I am trying ORACLE with not much help.
    One thing strange though, the olite_50200_linux.cpio distribution from ORACLE download page installation documentation does not even mention about the Apache Module Configuration detalis.
    I presume it is implied as trivial.
    OR
    IS IT REALY SUPPORTED ?
    -- ajith

  • Need a little help with dial setup on CME

    I've got a CME I'm using for testing and I think I need a little help figuring out the proper config to get the system to accept numbers I dial and have those numbers be passed on to an Avaya system (including the leading 9 for ARS in Avaya) via H.323 IP trunks.   I have it working well for internal 5 digit extension calls across the H.323 trunks and I also have it working well for some types of outside calls that gets passed on to the Avaya and then the Avaya dials the call out to the PSTN.   My only real problem is, I can't figure out how to correctly configure CME to examine the digits I'm dialing and only send the digits once I'm finished dialing....not as soon as it sees an initial match.
    What's happening is this.  I can dial local numbers in my area as 7 digits or 10 digits.  The phone company doesn't yet force us to dial area code and number for local calls (10 digits).  I can still dial 7 digits.   But...if I put an entry in CME that looks like this....
    (by the way, the 192.168.1.1 IP is not the real IP address, that's just an example, but the rest of this entry is what I really have entered in CME)
    dial-peer voice 9 voip
    description Outside 7 Dig Local Calls Via Avaya
    destination-pattern 9.......
    session target ipv4:192.168.1.1
    dtmf-relay h245-alphanumeric
    no vad
    ...Then it will always try to dial out immediately after seeing the first 8 digits I dial (9 plus the 7 digit number I called)...even though I have a speicifc entry in the system that accounts for calls to 9 plus area code 513.  I would have assumed that if I put the specific entry in for 9513....... it would see that and wait to see if I was actually dialing something to match 9513....... instead of 9.......   Understand what I mean?   Because 9513....... is more specific than 9....... but it still tries to send the call out immediately after seeing the first 8 digits I dialed.
    dial-peer voice 9513 voip
    description Outside 10 Dig Local Calls Via Avaya
    destination-pattern 9513.......
    session target ipv4:192.168.1.1
    dtmf-relay h245-alphanumeric
    no vad
    ...BUT...here's the interesting thing.  If I trace the 10 digit call in Avaya, I see that the number being presented to the Avaya PBX is only the first 7 digits of the number....not the full 10 digits...BUT I see a few more of the digits I dialed (like the 8th and 9th digits) after the call is already setup and sent to the PSTN.  It's like the CME is trying to send the rest of the 10 digits I dialed, but at that point it's already too late.   It setup the call as a 7 digit call (9 plus 7 digits), not 10 digit like I wanted.
    I'm more familiar with how to setup dialing in the Avaya via ARS.  My background is Avaya, not Cisco, so this dial-peer config is a little difficult for me until I understand the reasoning of how it examines the numbers and what I should do to make it wait for me to finish dialing....or to tell the system that what I'm dialing will be a minimum or a certain amount of digits and maximum of a certain amount of digits, like the Avaya does.  I just need some pointers and examples to look at :-)   I think I've almost got it....but I'm just missing something at the moment.
    Just so you understand, the call flow should be like this:  Cisco phone registered to CME > CME to Avaya via H.323 trunks > Avaya to PSTN via ISDN PRI trunks connected to Avaya.  I have to be sure I send the 9 to the Avaya also, because 9 triggers ARS in the Avaya. 
    Thanks for your help

    Here is a good document that explains how dial-peers are matched in the Cisco world:
    http://www.cisco.com/en/US/tech/tk652/tk90/technologies_tech_note09186a008010fed1.shtml#topic7
    In your case, it is variable length dial plan you are trying to implenent. To fix it, you need to add a T to force the system to wait for more digits to be entered if there is any.
    dial-peer voice 9 voip
    description Outside 7 Dig Local Calls Via Avaya
    destination-pattern 9.......T
    session target ipv4:192.168.1.1
    dtmf-relay h245-alphanumeric
    no vad
    dial-peer voice 9513 voip
    description Outside 10 Dig Local Calls Via Avaya
    destination-pattern 9513.......
    session target ipv4:192.168.1.1
    dtmf-relay h245-alphanumeric
    no vad
    You can also configure the inter-digits timeout using the command timeouts interdigit under telephony-service.
    Please rate helpful answers!

  • Need a little help.... not major....but am unsure I have...

    Need a little help.... not major....but am unsure I have the 2.4 GHz Wireless-G Broadband Router Model WRT54G version 2 I had bought some time ago (over year and a half) and never really had it hooked up since I have been moving from place to place. Now that I'm retired and staying in one place I'm ready to set up. I find myself having "several" power adaptors and not sure which is the correct one. Can anyone tell me if all the broadband routers had the Linksys name and/or logo on them? None of the adapters I have do. I want to use a proper adapter so as not to damage....are there any specs that would be helpful so that one of these adapters would work? Also I'm running WindowsXP Sorry to bother you folks with a dumb question as I'm sure there are others with far more important questions and concerns. Although I can't tell other than the end going into the unit fits, I do have one Class 2 Transformer which might be the one it's about 1 1/2 inches thick, about 2 inches tall with following written information: Model 49-12-1000D CUI Inc Input AC 120V 60Hz 20W Output DC12V 1000mA Appreciate any help you can give.....I believe my unit is an older one based on version so there may have been a "fatter" adapter then than now.

    The power adapter output should be 12V, 0.5A(so 6W power rating)

  • Need a little help please    Airport Express

    Need a little help please.
    I am trying to set up a wireless network at my home using Airport Express.
    I have a regular phone line running in to I assume the modem. From there, there is an Ethernet cable running from that box to the back of the PC. My question is, I think, which of those do I unplug and plug into the Airport Express, the one on the back of the PC or the one that is in the back of the modem, or is this totally wrong.
    Any help would be appreciated…
    Thanks
    In advance…
    PS I have the manual but to me it is not very clear…

    Your connection sequence would look like this:
    Internet > Modem > AirPort Express >>>wireless to your computers.
    This means that you would unplug the cable that is now connected at the back of your PC and move that connection to the AirPort Express.
    Open Macintosh HD > Applications > Utilities > AirPort Utility
    Click Continue to follow the guided setup. On the third page, you will choose the option to "Create a wireless network" and continue the setup.

  • Need a little Help with my new xfi titanium

    +Need a little Help with my new xfi titanium< A few questions here.
    st question? Im using opt out port on the xfi ti. card and using digital li've on a windows 7 64 bit system,? I would like to know why when i use 5. or 7. and i check to make sure each speakear is working the rear speakers wont sound off but the sr and sl will in replace of the rear speakers. I did a test tone on my sony amp and the speaker are wired correctly becasue the rear speakers and the surrond? left and right sound off when they suppose too. Also when i try to click on? the sl and sr in the sound blaster control panel they dont work but if i click on the rear speakers in the control panel the sl and sr sound off. Do anyone know how i can fix this? So i would like to know why my sl and sr act like rears when they are not?
    2nd question? How do i control the volume from my keyboard or from windows period when using opt out i was able to do so with my on board? sound max audio using spidf? Now i can only control the audio using the sony receiver.
    Thank you for any help..

    /Re: Need a little Help with my new xfi titanium? ?
    ZDragon wrote:
    I'm unsure about the first question. Do you even have a 7. system and receiver? If you just have 5., you should be able to remap the audio in the THX console.
    I do have a sony 7. reciever str de-995 its an older one but its only for my cpu. At first i didnt even have THX installed because it didnt come with the driver package for some reason until i downloaded the daniel_k support drivers and installed it. But it doesnt help in anyway.
    I have checked every where regarding the first question and alot of people are having problems getting sound out of there rear channels and the sound being re-mapped to the surround right and the surround left as if there rear left and rear right.
    I read somewhere that the daniel_k support drivers would fix this but it didnt for me and many others.
    For the second question i assumed it would be becasue of the spidf pass through and that my onboard sound card was inferior to the xfi titaniums. But i wasnt sure and i was hopeing that someone would have a solution for that problem because i miss controlling the volume with my keyboard.

  • Maybe you are looking for

    • OWB Support for Change Data Capture

      Hi All, Has anyone got OWB working with the Change Data Capture feature in the Oracle 9i database? I understand that CDC works by publishing changes through an advanced queue, which in theory OWB 9.0.4 upwards can have as a data source, but there doe

    • Trying to get EMAIL_ADDRESS attribute from the SECURITY_CONFIGURATION.

      I am currently editing an existing script that retrieves the list of administrators of a workspace in Oracle Content Services by using the SECURITY_CONFIGURATION and GRANTS attributes. I am trying to find the easiest way that I can retrieve the email

    • OSB SplitJoin editor too slow

      I've tried this on two different PCs and the problem is the same. When editing a splitjoin flow in workshop or OEPE, any task takes way too long to do. If I want to view the xquery statement behind an assign action, I click the link next to Expressio

    • [CS3] Stroke Type of an page item?

      Hello! Does anybody know how to get the stroke type of an page item? There are so many possibilities. Thanks, Alois Blaimer

    • CS4 PRO -Encoding

      I exported my project then encoded it.  Once it was finished I could not turn it into a DVD as it was a musical file (icon with musical note). I used MPEG2/DVD and Custom.  Where did I go wrong?