CME 3.2 - appending digits

All -
Have a CME 3.2 deployment with the following trunks on FXO ports.
1. Tellular device (GSM cell phone)
2. Tellular device (CDMA cell phone)
3. GSP-2900LP (GlobalStar Sat phone)
4. GSP-2900LP (GlobalStar Sat phone)
5. Analog B1 (traditional 2-wire)
6. Analog B1 (traditional 2-wire)
7. Analog B1 (traditional 2-wire)
8. Analog B1 (traditional 2-wire)
Plus on certain occasions (when our Internet Access is up and running, we will have 4 additional trunks via SIP services.
Trunks 5-8 (the analog B1s) are the least likely trunks to actually be used as this deployment is on a vehicle.
All inbound connections will be directed to the AA.
Now - the question is regarding writing the translation rules - especially as they pertain to outbound calls routed through the Sat Phones (trunks 3&4). The service provider requires a # digit to be sent at the end of the digit string.
Does anyone have any config examples or suggestions on how to accomplish the appending of the # to the dialed string when these trunks are to be used?

All -
Have a CME 3.2 deployment with the following trunks on FXO ports.
1. Tellular device (GSM cell phone)
2. Tellular device (CDMA cell phone)
3. GSP-2900LP (GlobalStar Sat phone)
4. GSP-2900LP (GlobalStar Sat phone)
5. Analog B1 (traditional 2-wire)
6. Analog B1 (traditional 2-wire)
7. Analog B1 (traditional 2-wire)
8. Analog B1 (traditional 2-wire)
Plus on certain occasions (when our Internet Access is up and running, we will have 4 additional trunks via SIP services.
Trunks 5-8 (the analog B1s) are the least likely trunks to actually be used as this deployment is on a vehicle.
All inbound connections will be directed to the AA.
Now - the question is regarding writing the translation rules - especially as they pertain to outbound calls routed through the Sat Phones (trunks 3&4). The service provider requires a # digit to be sent at the end of the digit string.
Does anyone have any config examples or suggestions on how to accomplish the appending of the # to the dialed string when these trunks are to be used?

Similar Messages

  • 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!

  • Hiow to build digital waveform with transition values bigger U32?

    Greetings!
    Is that possible to build digital data with transitions values represented bigger than U32 values? (It seems to me that Labview 8.0 cannot accept U64. See attachment.)
    What do you recommend? I cannot change dt, so scaling does not work. This is because, the record length could be very long...and the waveform should be connected to a digital waveform graph.
    Thanks in advance!
    Attachments:
    ReplaceTransitionValues.jpg ‏21 KB

    Hello Dawid,
    Thank you for the answer.
    Yes, I'd like to build a big array, which although would not be so big... I have not so many samples (just a few thousands) but the samples could be very far from each other. That's why I need U64.
    I'm using compressed digital waveform to transport and display the samples, where the transition value functions as an offset (counted in dt) from the first sample.
    For example, to store a 1Hz signal  with sampling rate 100MHz the transitions will accumulate by 50M. If the record has 1000 samples then the last transition value will reach 50G which is much bigger than a U32 can store.
    You might ask why so high the sampling rate for a 1Hz signal... The signal is stochastic, could be faster, and I would like to keep tha fast pulses also.
    I dig into the "Append digital samples.vi" (see attachment) and I found the transition array is build by U32... I hope I did not misunderstand you, but I think it does not help. I suspect even the Digital Waveform Graph itself is not able to accept values over the U32 range, however, I should try that.
    Best Regards,
    Lamaze
    Attachments:
    AppendSamples.jpg ‏155 KB

  • How to make one file?

    I have basically 2 problems here
    a)When I do generate a signature using the enduser's privatekey,,I will be ending up with two files one signature file and other the original document,,I need one file which contains the signature as well as the original doc in readable format and also i can authenticate doc using the same signature presemt in that file.
    b)In PKI scenario shud i encrypt the doc(data) without signature or shud i encrypt the doc as well as the signature also?
    c)If i have the signature as separate entity how can i find out publickey attributes or any information of the public key using the signature that is there?
    Plz do repond asap with exaples if possible,
    thnx in advnce
    Subhash

    Yup...I need one more help i.e I was able to encrypt/decrypt using assymtric and symetric,,the flow was like this...I had a key pair...
    I generate a DES key then I create a cipher by the data string,,then i used to encrypt the des key and store it in the database...then again at the server i used to decrypt the symmetric key using the private key from the key pair and then descrypt the data...it was all well and fine..
    now instaed of string i tried MSword of MSEXCELL i wasnt able to do at ll..some suggested to do padding so i tried des/cbc/pkcs5padding...it was encryting well but again i was stuck while decrypting,,it was asking for IV parametr and all,,i tried a lot but wasnt out of it...
    now my question is shud i include the getIv byte even in the encrypted file also...???
    i wud like to paste the code,,plz help me...
    encryption part is
    import java.io.*;
    import java.security.*;
    import java.security.spec.*;
    import java.security.spec.X509EncodedKeySpec;
    import java.security.interfaces.RSAPrivateKey;
    import java.security.interfaces.RSAPrivateCrtKey;
    import java.security.interfaces.RSAKey;
    import java.io.*;
    import java.util.*;
    import java.io.BufferedInputStream;
    import java.io.DataInputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.sql.*;
    import java.math.BigInteger;
    import java.security.cert.CertificateFactory;
    import java.security.cert.X509Certificate;
    import java.security.interfaces.RSAPrivateKey;
    import java.security.interfaces.RSAPublicKey;
    import java.security.Key;
    import java.security.KeyFactory;
    import java.security.Security;
    import java.security.spec.KeySpec;
    import java.security.spec.PKCS8EncodedKeySpec;
    import javax.crypto.Cipher;
    import javax.crypto.KeyGenerator;
    import javax.crypto.SecretKey;
    import javax.crypto.SecretKeyFactory;
    import javax.crypto.spec.DESKeySpec;
    import org.bouncycastle.jce.provider.BouncyCastleProvider;
    public class FileEncrypt
    byte[] encryptedDESKey;
    // encryptPart variables
    KeyGenerator kg;
    Key key;
    Cipher cipher;
    RSAPublicKey rsaPublicKey;
    Cipher encryptCipher;
    // decryptedPart variables
    RSAPrivateKey priv;
    Cipher decryptCipher;
    byte[] decryptedDESKey;
    SecretKeyFactory skf;
    DESKeySpec desKeySpec;
    SecretKey sk;
    Cipher desCipher;
    public static void main(String args[]){
         String path = "C://USB//test.doc";
         String fileName = "C://USB//ENCtest.doc";
    FileEncrypt pk1 = new FileEncrypt();
    String encryptedPassword = pk1.encryptPart(path,fileName);
         Connection con = null;
    Statement stmt = null;
    ResultSet rs = null;
    //XlEncrypt tt = new XlEncrypt();
    TxtFile profile = new TxtFile();
    try{
    DriverManager.registerDriver (profile.getDriver());
    con =DriverManager.getConnection (profile.getURLName(), profile.getUserName(), profile.getPassword());
    stmt = con.createStatement();
    con =DriverManager.getConnection (profile.getURLName(), profile.getUserName(), profile.getPassword());
    stmt = con.createStatement();
    stmt.executeUpdate("insert into test (pki) values('"+encryptedPassword+"')");
    }catch (SQLException e) {
    System.out.println (e.getMessage() + "Problem in getting connections");
    private String encryptPart(String path,String fileName){   
    Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
    try{
    // create des key
    kg = KeyGenerator.getInstance("DES");
    key = kg.generateKey();
    // encrypt some data
    //cipher = Cipher.getInstance("DES/ECB/PKCS5Padding");
    cipher = Cipher.getInstance("DES");
    cipher.init(Cipher.ENCRYPT_MODE,key);
    //read in cert from file and get public key and decrypt des key
    rsaPublicKey = getRSAPublicKey("buyer");
    encryptCipher= Cipher.getInstance("RSA","BC");
    encryptCipher.init(Cipher.ENCRYPT_MODE,rsaPublicKey);
    encryptedDESKey = encryptCipher.doFinal(key.getEncoded());
         FileEncrypt tt = new FileEncrypt();
    String sd = tt.hexEncode(encryptedDESKey);
    int c;
    FileInputStream fis = new FileInputStream(path);
    StringBuffer fileBuffer = new StringBuffer();
    while((c=fis.read())!=-1){
    fileBuffer.append((char)c);
    String fileString = fileBuffer.toString();
    byte[] encword = cipher.doFinal(fileString.getBytes());
    String outFile = tt.hexEncode(encword);
    DataOutputStream out2 = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(fileName)));
    out2.writeBytes(outFile);
    out2.close();
    return sd;
    }catch(Exception e)
    System.out.println("<ERROR>\nIn encryptPart\n"+e.toString()+"\n</ERROR>");
    return null;
    /** This array is used to convert from bytes to hexadecimal numbers */
    static final char[] digits = { '0', '1', '2', '3', '4', '5', '6', '7',
    '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
    * A convenience method to convert an array of bytes to a String. We do
    * this simply by converting each byte to two hexadecimal digits. Something
    * like Base 64 encoding is more compact, but harder to encode.
    public static String hexEncode(byte[] bytes) {
    StringBuffer s = new StringBuffer(bytes.length * 2);
    for(int i = 0; i < bytes.length; i++) {
    byte b = bytes;
    s.append(digits[(b & 0xf0) >> 4]);
    s.append(digits[b & 0x0f]);
    return s.toString();
    * A convenience method to convert in the other direction, from a string
    * of hexadecimal digits to an array of bytes.
    public static byte[] hexDecode(String s) throws IllegalArgumentException {
    try {
    int len = s.length();
    byte[] r = new byte[len/2];
    for(int i = 0; i < r.length; i++) {
    int digit1 = s.charAt(i*2), digit2 = s.charAt(i*2 + 1);
    if ((digit1 >= '0') && (digit1 <= '9')) digit1 -= '0';
    else if ((digit1 >= 'a') && (digit1 <= 'f')) digit1 -= 'a' - 10;
    if ((digit2 >= '0') && (digit2 <= '9')) digit2 -= '0';
    else if ((digit2 >= 'a') && (digit2 <= 'f')) digit2 -= 'a' - 10;
    r[i] = (byte)((digit1 << 4) + digit2);
    return r;
    catch (Exception e) {
    throw new IllegalArgumentException("hexDecode(): invalid input");
    // encryptPart private method
    private RSAPublicKey getRSAPublicKey(String userName){
    try{
    FileInputStream fis = new FileInputStream("C:/certificates/buyer/buyer.crt");
    BufferedInputStream bis = new BufferedInputStream(fis);
    CertificateFactory cf = CertificateFactory.getInstance("X.509");
    X509Certificate cert = null;
    while(bis.available() > 0){
    cert = (X509Certificate)cf.generateCertificate(bis);
    return (RSAPublicKey)cert.getPublicKey();
    catch(Exception e){
    System.out.println("<ERROR>\nTrying to get Public Key from cert\n"+e.toString()+"\n</ERROR>");
    return null;
    decryption part is
    import java.io.*;
    import java.security.*;
    import java.security.spec.*;
    import java.security.spec.X509EncodedKeySpec;
    import java.security.interfaces.RSAPrivateKey;
    import java.security.interfaces.RSAPrivateCrtKey;
    import java.security.interfaces.RSAKey;
    import java.io.*;
    import java.util.*;
    import java.io.BufferedInputStream;
    import java.io.DataInputStream;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.sql.*;
    import java.math.BigInteger;
    import java.security.cert.CertificateFactory;
    import java.security.cert.X509Certificate;
    import java.security.interfaces.RSAPrivateKey;
    import java.security.interfaces.RSAPublicKey;
    import java.security.Key;
    import java.security.KeyFactory;
    import java.security.Security;
    import java.security.spec.KeySpec;
    import java.security.spec.PKCS8EncodedKeySpec;
    import javax.crypto.Cipher;
    import javax.crypto.KeyGenerator;
    import javax.crypto.SecretKey;
    import javax.crypto.SecretKeyFactory;
    import javax.crypto.spec.DESKeySpec;
    import java.io.*;
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import java.security.*;
    import java.security.spec.*;
    import org.bouncycastle.jce.provider.BouncyCastleProvider;
    public class FileDecrypt
    byte[] encryptedDESKey;
    // encryptPart variables
    KeyGenerator kg;
    Key key;
    Cipher cipher;
    RSAPublicKey rsaPublicKey;
    Cipher encryptCipher;
    // decryptedPart variables
    RSAPrivateKey priv;
    Cipher decryptCipher;
    byte[] decryptedDESKey;
    SecretKeyFactory skf;
    DESKeySpec desKeySpec;
    SecretKey sk;
    Cipher desCipher;
    public static void main(String args[]){
         String inputFile = "C://Usb//ENCtest.doc";
         Connection con = null;
    Statement stmt = null;
    ResultSet rs = null;
         TxtFile profile = new TxtFile();
         String var="";
         try {
    DriverManager.registerDriver (profile.getDriver());
    con =DriverManager.getConnection (profile.getURLName(), profile.getUserName(), profile.getPassword());
    stmt = con.createStatement();
    con =DriverManager.getConnection (profile.getURLName(), profile.getUserName(), profile.getPassword());
    stmt = con.createStatement();
    rs = stmt.executeQuery("select pki from test");
    if(rs.next()){
    var = rs.getString("pki");
    }catch (SQLException e) {
    System.out.println (e.getMessage() + "Problem in getting connections");
         System.out.println(var);
         String encSymKey = var;
         FileDecrypt tpk = new FileDecrypt();
    String decryptedPassword = tpk.decryptPart(inputFile,encSymKey);
    //return decryptedPassword;     
    private String decryptPart(String inputFile,String encSymKey)
    try{   
    // get private key from file
    priv = getRSAPrivateKey();
    // decrypted des key
    int c;
    Security.addProvider(new BouncyCastleProvider());
    FileDecrypt t1 = new FileDecrypt();
    byte[] encryptedDESKey1 = t1.hexDecode(encSymKey);
    decryptCipher = Cipher.getInstance("RSA","BC");
    decryptCipher.init(Cipher.DECRYPT_MODE,priv);
    decryptedDESKey = decryptCipher.doFinal(encryptedDESKey1);
    // convert bytes back to des key
    skf = SecretKeyFactory.getInstance("DES");
    desKeySpec = new DESKeySpec(decryptedDESKey);
    sk = skf.generateSecret(desKeySpec);
    // decrypt the encrypted password
    //desCipher = desCipher.getInstance("DES/ECB/PKCS5Padding");
    desCipher = desCipher.getInstance("DES");
                   desCipher.init(Cipher.DECRYPT_MODE,sk);     
    //desCipher.init(Cipher.DECRYPT_MODE,sk);
    FileDecrypt obj1 = new FileDecrypt();
    FileInputStream fis = new FileInputStream(inputFile);
    StringBuffer encryptedFile = new StringBuffer();
    while((c=fis.read())!=-1){
    encryptedFile.append((char)c);
    String encFile = encryptedFile.toString();
    System.out.println(encFile);
    byte[] jk =obj1.hexDecode(encFile);
    String encVar = new String(desCipher.doFinal(jk));
    //String encVar = new String(desCipher.doFinal(jk));
    DataOutputStream out2 = new DataOutputStream(new BufferedOutputStream(new FileOutputStream("C:/usb/dectest.doc")));
    out2.writeBytes(encVar);
    out2.close();
    //System.out.println(new String(desCipher.doFinal(jk)));
    return new String("subhash");
    }catch(Exception e){
    System.out.println("<ERROR>\nIn decryptPart\n"+e.toString()+"\n</ERROR>");
    return null;
    // decryptPart private method
    private RSAPrivateKey getRSAPrivateKey()
    try{
    File keyFile = new File("C:/certificates/buyer/buyerkey.der");
    DataInputStream in = new DataInputStream(new FileInputStream(keyFile));
    byte [] fileBytes = new byte[(int) keyFile.length()];
    in.readFully(fileBytes);
    in.close();
    KeyFactory kf = KeyFactory.getInstance("RSA");
    KeySpec ks = new PKCS8EncodedKeySpec(fileBytes);
    return (RSAPrivateKey)kf.generatePrivate(ks);
    }catch(Exception e){
    System.out.println("<ERROR>\nTrying to get Private Key from file\n"+e.toString()+"\n</ERROR>");
    return null;
    /** This array is used to convert from bytes to hexadecimal numbers */
    static final char[] digits = { '0', '1', '2', '3', '4', '5', '6', '7',
    '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
    * A convenience method to convert an array of bytes to a String. We do
    * this simply by converting each byte to two hexadecimal digits. Something
    * like Base 64 encoding is more compact, but harder to encode.
    public static String hexEncode(byte[] bytes) {
    StringBuffer s = new StringBuffer(bytes.length * 2);
    for(int i = 0; i < bytes.length; i++) {
    byte b = bytes[i];
    s.append(digits[(b & 0xf0) >> 4]);
    s.append(digits[b & 0x0f]);
    return s.toString();
    * A convenience method to convert in the other direction, from a string
    * of hexadecimal digits to an array of bytes.
    public static byte[] hexDecode(String s) throws IllegalArgumentException {
    try {
    int len = s.length();
    byte[] r = new byte[len/2];
    for(int i = 0; i < r.length; i++) {
    int digit1 = s.charAt(i*2), digit2 = s.charAt(i*2 + 1);
    if ((digit1 >= '0') && (digit1 <= '9')) digit1 -= '0';
    else if ((digit1 >= 'a') && (digit1 <= 'f')) digit1 -= 'a' - 10;
    if ((digit2 >= '0') && (digit2 <= '9')) digit2 -= '0';
    else if ((digit2 >= 'a') && (digit2 <= 'f')) digit2 -= 'a' - 10;
    r[i] = (byte)((digit1 << 4) + digit2);
    return r;
    }catch (Exception e) {
    throw new IllegalArgumentException("hexDecode(): invalid input");
    plz do reply asap,,
    bye
    Subhash

  • Authenticating a user using JCO

    Hi,
    I was authenticating a user in SAP using the following code:
       System.out.println("\n\nVersion of the JCO-library:\n" + "----
    \n"
                        + JCO.getMiddlewareVersion());
                Properties props = new Properties();
                props.put("jco.client.client", "800");
                props.put("jco.client.user", "gk1");
                props.put("jco.client.passwd", "password");
                props.put("jco.client.lang", "EN");
                props.put("jco.client.sysnr", "01");
                props.put("jco.client.ashost", "172...*");
                client = JCO.createClient(props);
                // Open the connection
                client.connect();
    Here, the password for the "gk1" user is "password". Now if I update the password to be "password1" in the code - the user is still authenticated. No matter how many times I add digits towards the end of the password for this user, it still gets authenticated. Any ideas?
    Thanks

    Hi Gaurav,
    In SAP R/3 system, it takes only 8 digit password for any user. So, it checks upto 8 characters only. No metter how much digits or characters you have appended.
    Try to give some other password instead of just appending digits or characters behing "password".
    Regards,
    Bhavik

  • Need help with SHA1

    Hi
    I have a string that is passed to the SHA-1 encryption algorithm and returns a key. This key will be matched with a key generated from a PHP application which also uses SHA-1. I am sure my code is correct and the encryption works because i compared the key produced for the text "e" and it matched exactly the same key someone had displayed on this forum. However when i append some characters (i must append these characters to my text) to be encrypted, the key fails to match the PHP key.
    I think its to do with the encoding of the string but i tried converting it to UTF-8, ASCII etc. when converting it to bytes (when passing it to the encryption algorithm) but no luck. Check out the variable bold"append"*bold* below. Those are the characters i need to append to my text and I believe that is causing the problem. The PHP version does not escape the "\" but i obviously have to. Could that be the cause? Any ideas?
    String text= new String("san100200");
    String append = "sans)3_J-M?9L7\\D6_DV_^1z\\_QX^SWW$_0N_A\\�EYz"; // this is what i think is causing the problem
    text = text + append;
    char[] DIGITS = {
        '0', '1', '2', '3', '4', '5', '6', '7',
           '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'
    java.security.MessageDigest d =null;
    try {
    d = java.security.MessageDigest.getInstance("SHA-1");
    } catch (NoSuchAlgorithmException e) {
         // TODO Auto-generated catch block
         e.printStackTrace();
    d.reset();
    d.update(text.getBytes());
    byte[] hashBytes = d.digest();
    int l = hashBytes.length;
    StringBuffer s = new StringBuffer();
    // two characters form the hex value.
    for (int i = 0; i < l; i++) {
        s.append(DIGITS[(0xF0 & hashBytes) >>> 4 ]);
    s.append(DIGITS[ 0x0F & hashBytes[i] ]);
    System.out.println(s.toString());

    You need to compare the bytes of your 'append' with the bytes of the 'append' used in PHP and make sure they are EXACTLY the same. Print out the byte values both in Java and PHP and do a comparison.
    P.S. You don't actually need to perform the append as a String concatenation. You can use two update() calls. First on the bytes of your text and next on the bytes of the append string.
    P.P.S. Replace String text= new String("san100200"); with String text= "san100200"; It will not fix your problem but ...

  • How do I concatenate 2 HWS files or 2 WDT waveforms?

    In SignalExpress, I would like the generated data AND the acquired data in the same HWS file.  I tried to do 2 'Save to HWS' steps, the first with the outputs, the second with the inputs. SignalExpress will not allow me to do this since it cannot write to a file that's already opened.
    I thought LabVIEW could help me. I would like to take the WDT from the generate file and the WDT resulting from the acquire process and combine them before saving them. Any ideas?

    You can only combine samples within a single HWS file. HWS does not support the concatenation of signals in a digital waveform datatype.
    It is easy in LabVIEW to do this before saving your data to HWS.  There is a built in digital waveform datatype VI called "Append Digital Signals.vi". This VI takes two waveforms as input, and concatenates the signals together into a new waveform. For instance, if waveform A had 4 signals and 1000 samples, and waveform B had 12 signals with 1000 samples, the resulting waveform will be 16 signals with 1000 samples.  I think this is what you are looking for.
    To find this VI in the palettes, go to the Waveforms palette, then click the Digital Waveform palette. The VI will be in the Digital Waveform palette.

  • Add PXI 6508 to existing Cont Acq to file (binary)

    I currently run LV Rt on a PXI chassis that has a PXI 6030E card installed. I have modified the example vi: "Cont acq to file (binary).vi" that NI provides as a DAQ example , to acquire 6 analog channels. I now want to append digital data to the binary stream and save to disk. I'll be reading in 50 digital lines using the PXI-6508 card.
    I'd like to know how I might add the digital data acquisition inside my existing loop, make sure that the digital lines are appended to teh analog data, and if possible, I'd like to use a digital signal coming into te PXI 6508 to trigger data acquisition (rather than jhust running at the 240S/s that i currently run).
    I have attached my existing code for the data acquisition.
    Basically this code controls the release of a sled chair in which a human subject sits. the subject initiates release of the chair by a joystick, a laser fixation point is turned on and off at various times, and data from the joystick as well as various linear acclerometers is acquired. The data acquistion loop is in frame three of the main sequence. You'll notice that i am using some of the digital lines of the PXI-6030E but want to include many more digital lines by using the 6058
    cheers
    stu
    Attachments:
    PXI_collect.vi ‏308 KB

    Hello,
    You would just need additional port configs and some port reads for the ports on the 6508 you are using. Appending this data to the end of the analog data is fine. When writing binary data, the only thing that is important about the formatting is that you read it back in the same format you wrote it. You might look at some of the digital-only examples as well as some of the analog input with start trigger examples to combine some of these concepts.
    Also, if you have more questions about this, you might try positing this question to the general data acquisition group. This sort of operation would behave the same way in Windows as it would in RT, and you would get a larger audience there for more possible responses.

  • Digital signature/appending question

    Got a question for y'all. I work with a medical practice who just started using Acrobat 9 to affix digital signatures to their documents. Using Acrobat, they've created a page that can be filled in with information about a patient, and then digitally signed by the doctor.
    Here's the thing. We just got done scanning all of the patient charts for this practice and converting then to PDFs. So now, all the charts are electronic. Each chart is divided into seperate tabs (Patient Info, Treatment Plan, etc.). After a doctor fills out the page they've created and then digitally signs it, we would then like to save it and then append it to the corresponding tab in that patient's chart (in this case, Pateint Info). Using Acrobat, filling it out, signing it and saving it is no problm, it's when we append it that the problem surfaces.
    After it's appended, the signature goes away! What can we do about this? Obviously, we don't want that signature going anywhere. Any ideas? Please help, we'd like to get this solved ASAP!

    Thanks for the link! However, there is something new that has recently arisen:
    Every time a patient comes into the office for an appointment, a new page is added to certain parts of the chart (such as Progress Notes) detailing their last visit. Now that all the charts are electronic, this can be done on a computer. So, for a section like, say, Progress Notes, there's all the old charts organized with the most recent one on top. However, that's not the very first page-the very first page is a blank progress note, ready for the patient's next visit.
    All they want to be able to do when they fill out a chart is, after it's saved, have it go on top of the chart (as it's now the most recent page) and have a new blank page appear, ready for the next visit. It's like inserting a blank page, but they don't want to do that-they simply want a new blank page to appear and move to the front on top of the most recent page.
    Does this make sense? I really could use some help ASAP!

  • CONNECTING CME 8.6 WITH NORTAL DIGITAL PBX

    hi,
    How  to integrate CME 8.6 with Nortal Digital PBX. What are the requirement to connect Nortal PBX to CME.

    Hi Shaik,
    In addition to the great tips from Adrian (+5 "A")
    I thought the CME Inter-op guides might be helpful as well;
    http://www.cisco.com/en/US/solutions/ns340/ns414/ns728/networking_solutions_products_genericcontent0900aecd805bd0ac.html
    Cheers!
    Rob
    "Show a little faith, there's magic in the night" - Springsteen

  • Issue with LPCOR on CME 10.5

    Dear All,
    I am facing issues with LPCOR configuration on CME 10.5. For International calls the Authentication Prompts triggers some times and some times doen not.
    Also when a local call is dialed the Authentication Prompt is triggered some times.Below is the config and debug logs. Need your help to resolve this.
    voice lpcor enable
    voice lpcor custom
     group 10 endusers
     group 11 pstn
    voice lpcor policy endusers
     service fac
     accept endusers fac
     accept pstn fac
    voice lpcor policy pstn
     service fac
     accept endusers fac
     accept pstn fac
    application
     package auth
      param passwd-prompt flash:enter_pin.au
      param max-retries 0
      param abort-digit *
      param term-digit #
      param user-prompt flash:enter_account.au
      param passwd 12345
      param max-digits 32
    interface GigabitEthernet0/1.1
     encapsulation dot1Q 1 native
     ip address 10.25.76.1 255.255.255.0
    interface GigabitEthernet0/1.201
     encapsulation dot1Q 201
     ip address 10.25.77.1 255.255.255.0
    voice-port 0/0/0
     lpcor outgoing pstn
     trunk-group ALL_FXO 1
     supervisory disconnect dualtone mid-call
     supervisory custom-cptone 2n-gsm
     no battery-reversal
     input gain -6
     output attenuation -3
     cptone SA
     timeouts call-disconnect 1
     timeouts wait-release 1
     timing sup-disconnect 50
     connection plar 5040
     caller-id enable
     cable-detect
    dial-peer cor custom
     name local
     name longdistance
     name 911
     name Internal
     name fac-int
     name user-fac
    dial-peer cor list local
     member local
    dial-peer cor list call-local
     member local
    dial-peer cor list call-longdistance
     member longdistance
    dial-peer cor list user1
     member local
     member 911
    dial-peer cor list user2
     member local
     member longdistance
     member 911
     member user-fac
    dial-peer cor list user3
     member 911
    dial-peer cor list call-911
     member 911
    dial-peer cor list call-internal
     member Internal
    dial-peer cor list fac-int
     member local
     member 911
     member fac-int
    dial-peer cor list user-fac
     member user-fac
    dial-peer voice 96 pots
     trunkgroup ALL_FXO
     corlist outgoing call-911
     destination-pattern 9[2-6]......
     forward-digits 7
    dial-peer voice 901 pots
     trunkgroup ALL_FXO
     corlist outgoing call-911
     destination-pattern 901[2-4,6-8].......
     forward-digits 10
    dial-peer voice 800 pots
     trunkgroup ALL_FXO
     destination-pattern 9800T
     prefix 800
    dial-peer voice 900 pots
     destination-pattern 9T
     port 0/0/3
     prefix 9
    dial-peer voice 11 pots
     destination-pattern 901........
     port 0/0/3
     forward-digits 10
    dial-peer voice 9051 pots
     trunkgroup ALL_FXO
     corlist outgoing call-local
     destination-pattern 905........
     forward-digits 10
    dial-peer voice 19 pots
     trunkgroup ALL_FXO
     corlist outgoing fac-int
     destination-pattern 900T
     translate-outgoing called 1
     forward-digits all
    dial-peer voice 20 voip
     description International calling
     service clid_authen_collect
     destination-pattern 900T
     lpcor outgoing pstn
     session target ipv4:10.25.76.1
     incoming called-number 9T
     dtmf-relay h245-alphanumeric
     codec g711ulaw
     no vad
    ephone-dn  1
     number 4121
     name John
     corlist incoming fac-int
    ephone  1
     lpcor type local
     lpcor incoming endusers
     mac-address E0D1.730A.21DE
     ephone-template 2
     type 7942
     button  1:1
    voice register dn  33
     number 4163
     call-forward b2bua busy 5000 
     call-forward b2bua noan 5000 timeout 20
     call-forward b2bua unregistered 5000 
     allow watch
     name Joseph
     mwi
    voice register pool  33
     busy-trigger-per-button 4
     id mac BC67.1C31.C8AA
     type 7821
     number 1 dn 33
     cor incoming fac-int 1 4163
     dtmf-relay rtp-nte
     codec g711ulaw
     transfer max-length 4
    Debug Logs
    DAMAC-CME-ANOUD#DEBUg VOIce lpcor all
    voip lpcor all debugging is on
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#term
    DAMAC-CME-ANOUD#terminal i
    DAMAC-CME-ANOUD#terminal i
    Apr 12 16:22:39.825: %VOIPAAA-5-VOIP_CALL_HISTORY: CallLegType 1, ConnectionId F692C420E06611E4BB0CE7FDC5486EA5, SetupTime 16:22:35.615 UTC Sun Apr 12 2015, PeerAddress 4130, PeerSubAddress , DisconnectCause 10  , DisconnectText normal call clearing (16), ConnectTime 16:22:39.825 UTC Sun Apr 12 2015, DisconnectTime 16:22:39.825 UTC Sun Apr 12 2015, CallOrigin 2, ChargedUnits 0, InfoType 2, TransmitPackets 0, TransmitBytes 0, ReceivePackets 0, ReceiveBytes 0
    Apr 12 16:22:39.825: %VOIPAAA-5-VOIP_FEAT_HISTORY: FEAT_VSA=fn:TWC,ft:04/12/2015 16:22:35.609,cgn:4130,cdn:,frs:0,fid:2599,fcid:F692C420E06611E4BB0CE7FDC5486EA5,legID:284C,bguid:F692C420E06611E4BB0CE7FDC5486EA5mon
    DAMAC-CME-ANOUD#terminal imon
                              ^
    % Invalid input detected at '^' marker.
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    Apr 12 16:22:44.089: //-1/xxxxxxxxxxxx/LPCOR/lpcor_get_index_by_name:
       lpcor endusers
    Apr 12 16:22:44.089: //-1/xxxxxxxxxxxx/LPCOR/lpcor_get_index_by_name:
       lpcor endusers index 10
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#show debug
    VOIP LPCOR:
      debug voip lpcor error call is ON (filter is OFF)
      debug voip lpcor error call informational is ON (filter is OFF)
      debug voip lpcor error software is ON
      debug voip lpcor error software informational is ON
      debug voip lpcor detail is ON (filter is OFF)
      debug voip lpcor function is ON (filter is OFF)
      debug voip lpcor inout is ON (filter is OFF)
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    Apr 12 16:23:22.889: %VOIPAAA-5-VOIP_CALL_HISTORY: CallLegType 1, ConnectionId FBA1532AE06611E4BB10E7FDC5486EA5, SetupTime 16:22:44.089 UTC Sun Apr 12 2015, PeerAddress 4130, PeerSubAddress , DisconnectCause 10  , DisconnectText normal call clearing (16), ConnectTime 16:23:02.009 UTC Sun Apr 12 2015, DisconnectTime 16:23:22.889 UTC Sun Apr 12 2015, CallOrigin 2, ChargedUnits 0, InfoType 2, TransmitPackets 0, TransmitBytes 0, ReceivePackets 1038, ReceiveBytes 166080
    Apr 12 16:23:22.889: %VOIPAAA-5-VOIP_FEAT_HISTORY: FEAT_VSA=fn:TWC,ft:04/12/2015 16:22:44.093,cgn:4130,cdn:,frs:0,fid:2600,fcid:FBA1532AE06611E4BB10E7FDC5486EA5,legID:284D,bguid:FBA1532AE06611E4BB10E7FDC5486EA5
    Apr 12 16:23:22.905: %VOIPAAA-5-VOIP_CALL_HISTORY: CallLegType 1, ConnectionId FBA1532AE06611E4BB10E7FDC5486EA5, SetupTime 16:22:57.795 UTC Sun Apr 12 2015, PeerAddress 0097150107659, PeerSubAddress , DisconnectCause 10  , DisconnectText normal call clearing (16), ConnectTime 16:23:02.015 UTC Sun Apr 12 2015, DisconnectTime 16:23:22.905 UTC Sun Apr 12 2015, CallOrigin 1, ChargedUnits 0, InfoType 2, TransmitPackets 1038, TransmitBytes 174384, ReceivePackets 1043, ReceiveBytes 166880
    Apr 12 16:23:22.905: %VOIPAAA-5-VOIP_FEAT_HISTORY: FEAT_VSA=fn:TWC,ft:04/12/2015 16:22:57.785,cgn:4130,cdn:0097150107659,frs:0,fid:2601,fcid:FBA1532AE06611E4BB10E7FDC5486EA5,legID:284E,bguid:FBA1532AE06611E4BB10E7FDC5486EA5
    Apr 12 16:23:25.317: //-1/xxxxxxxxxxxx/LPCOR/lpcor_get_index_by_name:
       lpcor endusers
    Apr 12 16:23:25.317: //-1/xxxxxxxxxxxx/LPCOR/lpcor_get_index_by_name:
       lpcor endusers index 10
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#un all
    All possible debugging has been turned off
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#
    DAMAC-CME-ANOUD#!ok just send me these logs
    DAMAC-CME-ANOUD#!i have to move from here
    Apr 12 16:24:02.153: %VOIPAAA-5-VOIP_CALL_HISTORY: CallLegType 1, ConnectionId 14343755E06711E4BB16E7FDC5486EA5, SetupTime 16:23:25.323 UTC Sun Apr 12 2015, PeerAddress 4130, PeerSubAddress , DisconnectCause 10  , DisconnectText normal call clearing (16), ConnectTime 16:23:43.393 UTC Sun Apr 12 2015, DisconnectTime 16:24:02.153 UTC Sun Apr 12 2015, CallOrigin 2, ChargedUnits 0, InfoType 2, TransmitPackets 0, TransmitBytes 0, ReceivePackets 930, ReceiveBytes 148800
    Apr 12 16:24:02.153: %VOIPAAA-5-VOIP_FEAT_HISTORY: FEAT_VSA=fn:Tnow
    DAMAC-CME-ANOUD#\WC,ft:04/12/2015 16:23:25.321,cgn:4130,cdn:,frs:0,fid:2602,fcid:14343755E06711E4BB16E7FDC5486EA5,legID:2850,bguid:14343755E06711E4BB16E7FDC5486EA5
    Apr 12 16:24:02.169: %VOIPAAA-5-VOIP_CALL_HISTORY: CallLegType 1, ConnectionId 14343755E06711E4BB16E7FDC5486EA5, SetupTime 16:23:39.169 UTC Sun Apr 12 2015, PeerAddress 0097150107659, PeerSubAddress , DisconnectCause 10  , DisconnectText normal call clearing (16), ConnectTime 16:23:43.389 UTC Sun Apr 12 2015, DisconnectTime 16:24:02.169 UTC Sun Apr 12 2015, CallOrigin 1, ChargedUnits 0, InfoType 2, TransmitPackets 930, TransmitBytes 156240, ReceivePackets 937, ReceiveBytes 149920
    Apr 12 16:24:02.169: %VOIPAAA-5-VOIP_FEAT_HISTORY: FEAT_VSA=fn:TWC,ft:04/12/2015 16:23:39.169,cgn:4130,cdn:0097150107659,frs:0,fid:2603,fcid:14343755E06711E4BB16E7FDC5486EA5,legID:2851,bguid:14343755E06711E4BB16E7FDC5486EA5

    We have come across this issue today in 10.9.5 (so affects 10.9.4 as well) but it was occurring in Sydney as well with a client and for me in Melbourne.

  • One E1 for voice and digital modem...

    Hello All!!!
    My question is about remote access and Ip-telephony ...
    I use cisco3825 with PVDM2-12DM NM-1CE1T1-PRI cards installed.
    I have only one E1 channel.
    Can I install on router IOS with CCME support and use this E1 for voice too?
    How I can detect what call should be forwarded to CME or Digital modem?
    Thank you very much...

    You can't do that with the hardware that you have now.
    I recommend you get the following:
    one VWIC or VWIC2, with two ports.
    and
    one HWIC-1CE1T1-PRI that supports the DMs,
    and
    one PVDM2-64. (you cannot use the -32 because you have two ports)
    and
    IOS 12.4(11)XW6
    see:
    http://cisco.com/en/US/prod/collateral/modules/ps2797/product_data_sheet0900aecd80710c88.html
    and
    http://cisco.com/en/US/docs/ios/12_4t/12_4t11/htpvdm2.html
    and
    http://cisco.com/en/US/tech/tk652/tk653/technologies_tech_note09186a00804794c6.shtml
    One the VWIC one port you connect to telco. the other using with a crossed cable, you connect to the HWIC.
    You route voice calls to the HWIC based on calling or called number. Automatic recognition of modem/voice calls is not supported.
    Hope this helps, please rate post if it does!

  • How can i transfer a call from SIP 9971 to PBX system on CME router

    hello everybody,
       I have a critical problem about interaction of transfering feature between CME router and pbx panasonic system in some status. let me explain more detail about this issue..i have a SIP 9971(CP-9971) registered on CME at the one site and a voice gateway that is connect with PBX system through a E1 pri trunk connection at the other site. totally the integration between CME and PBX is ok and there is no problem in two direction, i mean i can call pbx system from cp-9971 and vise versa but when i call from a phone  which is registered on PBX site to SIP 9971 which is registered on cisco CME call is connected,then when i try to transfer that call to another phone at PBX site, the session is open between two panasonic phones but no audio transmited in two direction. in addition every thing works fine about SCCP phones(transfer feature works fine). here is my configuration file. i hope someone could help me because i've searched a lot but no result help help help plz....
    cme router 3845 configuration
    VOIP-3845#show running-config
    Building configuration...
    Current configuration : 12657 bytes
    ! Last configuration change at 11:44:01 UTC Mon Oct 31 2011 by admin
    ! NVRAM config last updated at 11:44:02 UTC Mon Oct 31 2011 by admin
    ! NVRAM config last updated at 11:44:02 UTC Mon Oct 31 2011 by admin
    version 15.1
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    hostname VOIP-3845
    boot-start-marker
    boot-end-marker
    no aaa new-model
    clock calendar-valid
    dot11 syslog
    ip source-route
    ip cef
    no ipv6 cef
    multilink bundle-name authenticated
    voice-card 0
    voice service voip
    allow-connections h323 to h323
    allow-connections h323 to sip
    allow-connections sip to h323
    allow-connections sip to sip
    supplementary-service h450.12
    sip
      bind control source-interface Loopback10
      bind media source-interface Loopback10
      registrar server
    voice register global
    mode cme
    source-address 192.168.2.1 port 5060
    max-dn 720
    max-pool 262
    load 9971 sip9971.9-1-1SR1.loads
    authenticate register
    authenticate realm cisco.com
    tftp-path flash:
    file text
    create profile sync 0063544528862458
    camera
    video
    voice register dn  1
    number 500
    voice register dn  2
    number 600
    voice register dn  3
    number 700
    name test
    voice register template  1
    softkeys idle  Newcall Redial Cfwdall
    softkeys connected  Confrn Endcall Hold Trnsfer
    voice register pool  1
    id mac B8BE.BF23.5242
    type 9971
    number 1 dn 1
    template 1
    username test password test
    camera
    video
    blf-speed-dial 4 600 label "test"
    voice register pool  2
    id mac B8BE.BF9C.5476
    type 9971
    number 1 dn 2
    template 1
    username bank password bank
    camera
    video
    voice register pool  3
    id mac B8BE.BF9C.51D4
    type 9971
    number 1 dn 3
    template 1
    username test1 password test1
    camera
    video
    voice register pool  4
    id mac B8BE.BF9C.4FA2
    number 1 dn 1
    camera
    video
    crypto pki token default removal timeout 0
    crypto pki trustpoint TP-self-signed-1576175886
    enrollment selfsigned
    subject-name cn=IOS-Self-Signed-Certificate-1576175886
    revocation-check none
    rsakeypair TP-self-signed-1576175886
    crypto pki certificate chain TP-self-signed-1576175886
    certificate self-signed 01
      30820241 308201AA A0030201 02020101 300D0609 2A864886 F70D0101 04050030
      31312F30 2D060355 04031326 494F532D 53656C66 2D536967 6E65642D 43657274
      69666963 6174652D 31353736 31373538 3836301E 170D3131 31303038 30393034
      34365A17 0D323030 31303130 30303030 305A3031 312F302D 06035504 03132649
      4F532D53 656C662D 5369676E 65642D43 65727469 66696361 74652D31 35373631
      37353838 3630819F 300D0609 2A864886 F70D0101 01050003 818D0030 81890281
      8100D6EC 47BCDC3C 82F43FF3 23522678 2616868D 9910DCD2 E36016B3 D7B40DA7
      53A6E339 4978D451 21F051BE B21F8AD5 86B952DC 1ECCE371 3E094B54 26A41E14
      A3055C06 AE860756 425E5C50 E62B3287 631B1E87 9BAC2E39 2810E120 DA3BF823
      947EA591 81CA5489 1B868239 E835EC7C 0AA7651A 22D6E47F 545EBEF3 A172C9A3
      5A0D0203 010001A3 69306730 0F060355 1D130101 FF040530 030101FF 30140603
      551D1104 0D300B82 09564F49 502D3338 3435301F 0603551D 23041830 1680146C
      934AD072 99DDC600 ECD6F389 8F71E0C2 18EC2E30 1D060355 1D0E0416 04146C93
      4AD07299 DDC600EC D6F3898F 71E0C218 EC2E300D 06092A86 4886F70D 01010405
      00038181 000E82F6 5FBB847C 49226955 6F7DECE7 0B093513 D57C35D5 4CD22FA7
      8144A080 B0D56C8D 86AF8156 0152443A A3FBE59F B1AEFFBC BEB43E09 35757BAD
      4C06FC4A 0F3695E0 B00FBD30 4E8F36CE 7748F39C F9602650 7A1D2D48 DBC31237
      AE3D63CE 593D31F5 62E4916F D20E30E8 30DC55C0 120FBD26 D2768DBC A67DDC34
      5BDB66B1 E3
            quit
    license udi pid CISCO3845-MB sn FOC14421Q1Y
    archive
    log config
      hidekeys
    username admin privilege 15 secret 5 $1$Zf7j$P93opukmmEBIioVpjmHB3.
    redundancy
    interface Loopback10
    ip address 192.168.2.1 255.255.255.0
    interface Tunnel1
    ip address 172.25.10.1 255.255.255.0
    no ip redirects
    ip nhrp map multicast dynamic
    ip nhrp network-id 10
    tunnel source GigabitEthernet0/1.1
    tunnel mode gre multipoint
    tunnel key 100
    interface Tunnel2
    ip address 172.25.11.1 255.255.255.0
    no ip redirects
    ip nhrp map multicast dynamic
    ip nhrp network-id 20
    tunnel source GigabitEthernet0/1.2
    tunnel mode gre multipoint
    interface Tunnel14
    ip address 192.168.13.129 255.255.255.252
    tunnel source GigabitEthernet0/1.1
    tunnel destination 10.2.68.25
    interface Tunnel18
    ip address 192.168.13.137 255.255.255.252
    tunnel source GigabitEthernet0/1.1
    tunnel destination 10.9.160.236
    interface GigabitEthernet0/0
    no ip address
    shutdown
    duplex auto
    speed auto
    media-type rj45
    interface GigabitEthernet0/1
    no ip address
    duplex auto
    speed auto
    media-type rj45
    interface GigabitEthernet0/1.1
    encapsulation dot1Q 10
    ip address 10.9.160.25 255.255.255.0
    interface GigabitEthernet0/1.2
    encapsulation dot1Q 50
    ip address 10.10.9.25 255.255.255.0
    router eigrp 202
    network 172.25.11.0 0.0.0.255
    network 192.168.2.0 0.0.0.15
    redistribute static route-map MYMAP1
    router eigrp 201
    network 172.25.10.0 0.0.0.255
    network 192.168.2.0 0.0.0.15
    redistribute static route-map MYMAP1
    ip forward-protocol nd
    ip http server
    ip http secure-server
    ip http path flash:/gui
    ip route 10.2.68.0 255.255.255.0 10.9.160.1
    ip route 10.10.0.0 255.255.0.0 10.10.9.1
    ip route 10.64.164.30 255.255.255.255 10.9.160.1
    ip route 192.168.14.0 255.255.255.0 192.168.13.130
    ip route 192.168.17.0 255.255.255.0 Tunnel18
    ip access-list standard REDIS1
    permit 192.168.14.0
    permit 192.168.17.0
    route-map MYMAP1 permit 10
    match ip address REDIS1
    snmp-server community test RO
    tftp-server flash:term11.default.loads
    tftp-server flash:dkern9971.100609R2-9-0-3.sebn
    tftp-server flash:kern9971.9-0-3.sebn
    tftp-server flash:rootfs9971.9-0-3.sebn
    tftp-server flash:sboot9971.111909R1-9-0-3.sebn
    tftp-server flash:sip9971.9-0-3.loads
    tftp-server flash:skern9971.022809R2-9-0-3.sebn
    tftp-server flash:sccp11.9-0-2sr1s
    tftp-server flash:SCCP11.9-1-1SR1S.loads
    tftp-server flash:apps11.9-1-1TH1-16.sbn
    tftp-server flash:cnu11.9-1-1TH1-16.sbn
    tftp-server flash:cvm11sccp.9-1-1TH1-16.sbn
    tftp-server flash:dsp11.9-1-1TH1-16.sbn
    tftp-server flash:jar11sccp.9-1-1TH1-16.sbn
    tftp-server flash:term06.default.loads
    tftp-server flash:sip9971.9-1-1SR1.loads
    tftp-server system:cme/sipphone
    tftp-server flash:Desktops/320x212x12/NantucketFlowers.png
    tftp-server flash:Desktops/320x212x12/TN-CampusNight.png
    tftp-server flash:Desktops/320x212x12/TN-CiscoFountain.png
    tftp-server flash:Desktops/320x212x12/TN-Fountain.png
    tftp-server flash:Desktops/320x212x12/TN-MorroRock.png
    tftp-server flash:Desktops/320x212x12/TN-NantucketFlowers.png
    tftp-server flash:Desktops/320x212x12/Fountain.png
    tftp-server flash:Desktops/320x212x12/CiscoLogo.png
    tftp-server flash:Desktops/320x212x12/TN-CiscoLogo.png
    tftp-server flash:Desktops/320x212x12/List.xml
    tftp-server flash:Desktops/320x216x16/List.xml
    tftp-server flash:Desktops/320x212x16/List.xml
    tftp-server flash:gui/admin_user.html
    tftp-server flash:gui/admin_user.js
    tftp-server flash:gui/CiscoLogo.gif
    tftp-server flash:gui/Delete.gif
    tftp-server flash:gui/dom.js
    tftp-server flash:gui/downarrow.gif
    tftp-server flash:gui/ephone_admin.html
    tftp-server flash:gui/logohome.gif
    tftp-server flash:gui/normal_user.html
    tftp-server flash:gui/normal_user.js
    tftp-server flash:gui/Plus.gif
    tftp-server flash:gui/sxiconad.gif
    tftp-server flash:gui/Tab.gif
    tftp-server flash:gui/telephony_service.html
    tftp-server flash:gui/uparrow.gif
    tftp-server flash:gui/xml-test.html
    tftp-server flash:gui/xml.template
    tftp-server flash:ringtones/Analog1.raw
    tftp-server flash:ringtones/Analog2.raw
    tftp-server flash:ringtones/AreYouThere.raw
    tftp-server flash:ringtones/AreYouThereF.raw
    tftp-server flash:ringtones/Bass.raw
    tftp-server flash:ringtones/CallBack.raw
    tftp-server flash:ringtones/Chime.raw
    tftp-server flash:ringtones/Classic1.raw
    tftp-server flash:ringtones/Classic2.raw
    tftp-server flash:ringtones/ClockShop.raw
    tftp-server flash:ringtones/DistinctiveRingList.xml
    tftp-server flash:ringtones/Drums1.raw
    tftp-server flash:ringtones/Drums2.raw
    tftp-server flash:ringtones/FilmScore.raw
    tftp-server flash:ringtones/HarpSynth.raw
    tftp-server flash:ringtones/Jamaica.raw
    tftp-server flash:ringtones/KotoEffect.raw
    tftp-server flash:ringtones/MusicBox.raw
    tftp-server flash:ringtones/Piano1.raw
    tftp-server flash:ringtones/Piano2.raw
    tftp-server flash:ringtones/Pop.raw
    tftp-server flash:ringtones/Pulse1.raw
    tftp-server flash:ringtones/Ring1.raw
    tftp-server flash:ringtones/Ring2.raw
    tftp-server flash:ringtones/Ring3.raw
    tftp-server flash:ringtones/Ring4.raw
    tftp-server flash:ringtones/Ring5.raw
    tftp-server flash:ringtones/Ring6.raw
    tftp-server flash:ringtones/Ring7.raw
    tftp-server flash:ringtones/RingList.xml
    tftp-server flash:ringtones/Sax1.raw
    tftp-server flash:ringtones/Sax2.raw
    tftp-server flash:ringtones/Vibe.raw
    tftp-server flash:APPS-1.2.1.SBN
    tftp-server flash:SYS-1.2.1.SBN
    tftp-server flash:GUI-1.2.1.SBN
    tftp-server flash:CP7921G-1.2.1.LOADS
    tftp-server flash:TNUX-1.2.1.SBN
    tftp-server flash:TNUXR-1.2.1.SBN
    tftp-server flash:WLAN-1.2.1.SBN
    tftp-server flash:apps37sccp.1-2-1-0.bin
    tftp-server flash:APPSH-1.3.1.SBN
    tftp-server flash:GUIH-1.3.1.SBN
    tftp-server flash:CP7925G-1.3.1.LOADS
    tftp-server flash:SYSH-1.3.1.SBN
    tftp-server flash:TNUXH-1.3.1.SBN
    tftp-server flash:WLANH-1.3.1.SBN
    tftp-server flash:SCCP11.9-2-1S.loads
    tftp-server flash:Desktops/320x212x12/CampusNight.png
    tftp-server flash:Desktops/320x212x12/CiscoFountain.png
    tftp-server flash:Desktops/320x212x12/MorroRock.png
    tftp-server flash:skern9971.022809R2-9-2-1.sebn
    tftp-server flash:sip9971.9-2-1.loads
    tftp-server flash:sboot9971.031610R1-9-2-1.sebn
    tftp-server flash:rootfs9971.9-2-1.sebn
    tftp-server flash:dkern9971.100609R2-9-2-1.sebn
    tftp-server flash:kern9971.9-2-1.sebn
    tftp-server flash:United_States/g4-tones.xml
    tftp-server flash:English_United_States/gd-sip.jar
    tftp-server flash:sboot9971.031610R1-9-1-1SR1.sebn alias sboot9971.031610R1-9-1-1SR1.sebn
    tftp-server flash:rootfs9971.9-1-1SR1.sebn alias rootfs9971.9-1-1SR1.sebn
    tftp-server flash:kern9971.9-1-1SR1.sebn alias kern9971.9-1-1SR1.sebn
    tftp-server flash:dkern9971.100609R2-9-1-1SR1.sebn alias dkern9971.100609R2-9-1-1SR1.sebn
    tftp-server flash:skern9971.022809R2-9-1-1SR1.sebn alias skern9971.022809R2-9-1-1SR1.sebn
    control-plane
    mgcp profile default
    dial-peer voice 1 voip
    description connection-trough-PBX
    destination-pattern 0....
    session target ipv4:192.168.13.130
    dtmf-relay h245-alphanumeric
    no vad
    dial-peer voice 100 voip
    description K
    destination-pattern 9T
    session target ipv4:192.168.13.130
    dtmf-relay h245-alphanumeric
    no vad
    dial-peer voice 5 voip
    shutdown
    destination-pattern *3709
    session protocol sipv2
    session target ipv4:192.168.13.130
    session transport tcp
    dtmf-relay h245-alphanumeric
    codec g711ulaw
    no vad
    dial-peer voice 2 pots
    incoming called-number .
    dial-peer voice 10 voip
    gatekeeper
    shutdown
    telephony-service
    em logout 0:0 0:0 0:0
    max-ephones 262
    max-dn 400
    ip source-address 192.168.2.1 port 2000
    load 7911 SCCP11.9-2-1S
    max-conferences 12 gain -6
    web admin system name admin secret 5 $1$IKnn$tyKyuBcGqXFl6nhxCSu.z0
    dn-webedit
    time-webedit
    transfer-system full-consult
    transfer-pattern .T
    create cnf-files version-stamp 7960 Oct 29 2011 12:39:25
    ephone-template  1
    softkeys connected  Confrn Endcall Trnsfer Hold
    keep-conference endcall
    ephone-dn  1  dual-line
    number 200
    label test
    name test
    ephone-dn  2  dual-line
    number 300
    label Sepahbod
    name Sepahbod
    ephone-dn  4  dual-line
    number 666
    ephone-dn  5  dual-line
    number 660
    ephone-dn  6  dual-line
    number 670
    ephone-dn  7  dual-line
    number 770
    ephone-dn  8  dual-line
    number 770
    ephone-dn  9  dual-line
    number 999
    ephone  1
    device-security-mode none
    mac-address 18EF.639F.BCB0
    keep-conference endcall
    button  1:1
    ephone  2
    device-security-mode none
    mac-address 0025.8418.B017
    ephone-template 1
    keep-conference endcall
    button  1:2
    ephone  3
    device-security-mode none
    mac-address F04D.A243.3154
    keep-conference endcall
    button  1:4
    ephone  4
    device-security-mode none
    mac-address 6CF0.496A.69E9
    button  1:4
    ephone  5
    device-security-mode none
    mac-address 0015.E987.345F
    keep-conference endcall
    button  1:5
    ephone  6
    device-security-mode none
    mac-address 0024.1DEA.614A
    keep-conference endcall
    button  1:6
    ephone  9
    device-security-mode none
    mac-address 001D.7D4D.4DCB
    button  1:9
    line con 0
    line aux 0
    line vty 0 4
    login local
    transport input telnet
    scheduler allocate 20000 1000
    end
    and Voice Gateway connected two PBX system configuration
    Current configuration : 3486 bytes
    version 15.1
    service timestamps debug datetime msec
    service timestamps log datetime msec
    no service password-encryption
    hostname Voice-GW
    boot-start-marker
    boot-end-marker
    card type e1 0 2
    no aaa new-model
    network-clock-participate wic 2
    dot11 syslog
    ip source-route
    ip cef
    no ipv6 cef
    multilink bundle-name authenticated
    isdn switch-type primary-net5
    voice service voip
    allow-connections h323 to h323
    allow-connections h323 to sip
    allow-connections sip to h323
    allow-connections sip to sip
    h323
    voice-card 0
    crypto pki token default removal timeout 0
    license udi pid CISCO2811 sn FHK1352F0E9
    username admin privilege 15 secret 5 $1$O6AN$1kvvqiLdIl3/ZTHoyYRy0/
    redundancy
    controller E1 0/2/0
    framing NO-CRC4
    pri-group timeslots 1-31
    controller E1 0/2/1
    interface Tunnel14
    ip address 192.168.13.130 255.255.255.252
    tunnel source FastEthernet0/1
    tunnel destination 10.9.160.25
    interface Tunnel17
    ip address 192.168.13.134 255.255.255.252
    tunnel source FastEthernet0/1
    tunnel destination 10.9.160.25
    interface FastEthernet0/0
    ip address 192.168.14.252 255.255.255.0
    duplex auto
    speed auto
    interface FastEthernet0/1
    ip address 10.2.68.25 255.255.255.0
    duplex auto
    speed auto
    interface Serial0/2/0:15
    no ip address
    encapsulation hdlc
    isdn switch-type primary-net5
    isdn overlap-receiving
    isdn incoming-voice voice
    no cdp enable
    router eigrp 201
    network 172.25.10.0 0.0.0.255
    network 192.168.14.0
    ip forward-protocol nd
    no ip http server
    no ip http secure-server
    ip route 10.9.160.0 255.255.255.0 10.2.68.1
    ip route 10.128.0.69 255.255.255.255 Tunnel14
    ip route 192.168.2.1 255.255.255.255 192.168.13.129
    ip route 192.168.17.0 255.255.255.0 Tunnel14
    tftp-server flash:SCCP11.9-2-1S.loads
    tftp-server flash:jar11sccp.9-2-1TH1-13.sbn
    tftp-server flash:dsp11.9-2-1TH1-13.sbn
    tftp-server flash:cvm11sccp.9-2-1TH1-13.sbn
    tftp-server flash:cnu11.9-2-1TH1-13.sbn
    tftp-server flash:apps11.9-2-1TH1-13.sbn
    control-plane
    voice-port 0/0/0
    caller-id enable
    voice-port 0/0/1
    voice-port 0/0/2
    supervisory disconnect dualtone mid-call
    dial-type pulse
    disc_pi_off
    output attenuation 1
    echo-cancel coverage 32
    timeouts call-disconnect 5
    timeouts wait-release 1
    timing hookflash-out 50
    timing sup-disconnect 50
    connection plar 600
    caller-id enable
    voice-port 0/0/3
    caller-id enable
    voice-port 0/2/0:15
    mgcp profile default
    dial-peer voice 1 pots
    description connection-to-PBX
    destination-pattern 0....
    direct-inward-dial
    port 0/2/0:15
    forward-digits 4
    dial-peer voice 10 voip
    destination-pattern ...
    session target ipv4:192.168.13.129
    dtmf-relay h245-alphanumeric
    no vad
    dial-peer voice 20 pots
    description FXO-K
    destination-pattern 9T
    progress_ind alert enable 8
    progress_ind progress enable 8
    progress_ind connect enable 8
    direct-inward-dial
    port 0/0/2
    prefix 9
    dial-peer voice 30 pots
    description FXO-K2
    destination-pattern 9T
    direct-inward-dial
    port 0/0/1
    prefix 9
    telephony-service
    max-ephones 20
    max-dn 100
    ip source-address 192.168.14.252 port 2000
    cnf-file location flash:
    load 7911 term11.default.loads
    max-conferences 8 gain -6
    transfer-system full-consult
    create cnf-files version-stamp Jan 01 2002 00:00:00
    ephone-dn  1
    number 770
    line con 0
    line aux 0
    line 1/0 1/15
    line vty 0 4
    login local
    transport input telnet
    scheduler allocate 20000 1000
    end

    Having looked at your spreadsheet I see you're failing H323 transfers back to your ISDN system, but only under certain circumstances. Quite why, I'm not sure, possibly because you haven't codec defined on your H323 dial peers. or it could be something else
    I think you may be able to work around the problem by adding
    " supplementary-service h450.12 " under voice service voip on your CME router as a quick fix.
    reference
    http://www.cisco.com/en/US/docs/voice_ip_comm/cucme/admin/configuration/guide/cmetrans.html#wpxref44614
    worth a try
    Adam

  • Direct Outward Dial on CME 3.1

    I am at a complete loss. Cisco want 800 USD to help me.
    I need to setup Direct Outward Dial on my CME 3.1 (3725). I need to have one of my two POTS lines show up on the telephones mapped to a button.
    I have searched for quite a while, and tried most everything I can think of. I have failed.
    Any help is appreciated!

    It is not clear to me what you are trying to accomplish, but it sounds like a scenerio I deploy on a regular basis.
    If you want to force a particular DN to use a specific analog fxo line for outbound calls, simply create a translation pattern and apply it to the ephone-dn. Basically, you will be prepending a '1#' to the dialed phone number and have a specific dial-peer matching 1# using the fxo voice port as a destination. For example:
    translation-rule 1
    Rule 0 ^.* 1#
    translation-rule 2
    Rule 0 ^.* 2#
    dial-peer voice 100 pots
    destination-pattern 1#0
    port 1/0/0
    forward-digits 1
    dial-peer voice 101 pots
    destination-pattern 1#1..........
    port 1/0/0
    forward-digits 11
    dial-peer voice 102 pots
    destination-pattern 1#[2-9]......
    port 1/0/0
    forward-digits 7
    dial-peer voice 103 pots
    destination-pattern 1#[4,9]11
    port 1/0/0
    forward-digits 3
    dial-peer voice 200 pots
    destination-pattern 2#0
    port 1/0/1
    forward-digits 1
    dial-peer voice 201 pots
    destination-pattern 2#1..........
    fax rate disable
    port 1/0/1
    forward-digits 11
    dial-peer voice 202 pots
    destination-pattern 2#[2-9]......
    port 1/0/1
    forward-digits 7
    dial-peer voice 203 pots
    destination-pattern 2#[4,9]11
    port 1/0/1
    forward-digits 3
    ephone-dn 1
    number 1001
    label Line 1
    description 555-1212
    name Line 1
    call-forward busy 7000
    call-forward noan 7000 timeout 15
    translate called 1
    hold-alert 120 idle
    ephone-dn 2
    number 1002
    label Line 2
    description 555-1213
    name Line 2
    call-forward busy 7000
    call-forward noan 7000 timeout 15
    translate called 2
    hold-alert 120 shared
    In addition, when you do this you usually want to do the same in reverse: a specific fxo port to ring a specific line when an inbound call comes in, you do this with the connection plar-opx command on the fxo voice port, for example:
    voice-port 1/0/0
    input gain 10
    no comfort-noise
    connection plar opx 1001
    caller-id enable type 1
    voice-port 1/0/1
    input gain 10
    no comfort-noise
    connection plar opx 1002
    caller-id enable type 1
    Let me know if I'm on the right track...
    /Rick

  • Find the number of consecutive numeric digits in string

    I am trying to see if a string has say 9 consecutive numeric digits in it but it will only work if the long string of numbers is the first string of numbers.
    e.g.
    This would recongnise the following string (if p_len = 9)
    Tel number 20 20 30 369 for 2nd meeting
         but would not recongnise the following
    For 2nd meeting tel 20 20 30 369
    Could anyone give guidance on how to proceed / a better way of find consecutive numbers in a string?
    Thanks
    Simon
    Code sample -
        LOOP AT TLINETAB.
    Remove blank spaces
          CONDENSE TLINETAB-TDLINE NO-GAPS.
    Find first number and its position *
          IF TLINETAB-TDLINE CA '0123456789'.
            pos = sy-fdpos.
    Does the next x characters contain only numbers?
            IF TLINETAB-TDLINE+pos(p_len) CO '0123456789'.
              append i_report.
            endif.
          ENDIF.
        ENDLOOP.

    Dear Simon,
    you want to check for consecutive numbers in a string. Then you may do the following -
    1. Get all the numbers in the given string into a table in a sequencial order, that is the order in which they appear in the string
    2. Once you have all the numbers you may find out if the numbers are consecutive or not. The following is the code which is not tested
    lv_len = 1.
    lv_pos = 1.
    lv_strlen = strlen ( lv_str ).
    do lv_strlen times.
      lv_alpha = lv_str+lv_pos(lv_len).
      if lv_alpha co '0123456789'.
       append lv_alpha to lt_number.
      endif.
      lv_pos = lv_pos + 1.
    enddo.
    loop at lt_number into ls_number.
      if lv_no is initial.
       lv_no = ls_number.
       lv_no = lv_no + 1.
      else.
       if ls_number eq lv_no and
          lv_consec is initial.
        lv_consec = c_x.
       else.
        clear lv_consec.
       endif.
      endif.
    endloop.
    if lv_consec eq c_x.
    *  !!! string has consecutive numbers
    endif.
    Hope it helps. Thank you.
    Regards,
    kartik

Maybe you are looking for