Understanding the translation-rule

hi
i need some help uderstanding the translation profile. you we have a siemens ipbx on one side and a cisco 28xx on the other.
i wanted to create a dial code of 4+xxx (xxx for the extension number of the remote site, since we have overlapping numbers) but i would like the cisco equipment to strip off the 4 and leave just the 3 extension number.
for incoming calls as well, i would like the cisco to strip off the 4 and leave just the 3 numbers before routing to the ext. this is all voip calls
would this be correct:
translation profile to be used in dial plan
/4.../ /.../ for outgoing calls
/4.../ /.../ for incoming calls.
thanks in advance.

thanks for the reply. it works for outgoing calls.
this is my config for incoming
translation-rule 20
rule 1 /^4\(...$\)/ /\1/
translation-profile incoming-ho
translate calling 20
i apply this to the dial-peer, but its not working. the incoming ipbx is a siemens. i talked to the siemens guys they say that siemens sends all the digits.
dial-peer voice 4000 voip
translation-profile incoming incoming-ho
translation-profile outgoing gdp-in
destination-pattern 4...
session protocol sipv2
session target ipv4:192.168.128.100
codec g711alaw
do i need to specify any other config for it to translate the incoming call.
thanks in advance.

Similar Messages

  • How to collect the attempts of calls after translation rule applied?

    Hi,
    We applied the following translation rules on our voice gateways in order to block malicious incoming calls.
    "voice translation-profile call_block
    translate incoming 1
    voice translation-rule 1
    rule 1 reject /##########/
    rule 2 reject /##########/
    dial-peer voice 1 voip
    call-block translation-profile call_block"
    My questions is - Is there any way to collect the number of those calls hitting our voicegateways?
    By the way, the version of gateways is 12.4 (13D)
    Thanks,
    Jessica

    You can route them to a service that announces not to call anymore, using CDR you would also record calling number and time of call.
    Note however that usually, after a while malicious callers learn how to hide calling number, thing against which you've no remedy.

  • ANYBODY used the Currrency Conversion / Translation Rules Table yet???  Thx

    hi guys,
    we are working on the BUSINESS RULE: CURRENCY CONVERSION TABLE.
    here we have a easy three row table:
    Account Rate Type: AVG; Formula: [AVG]
    Account Rate Type: END; Formula: [END]
    Line 3: Account Rate Type: TRANS: Destination Account: XYZ;  >> Formula:[END]-[AVG]
    this works fine and great!!!!! differences within accounts of AVG and accounts of END between AVG to END rate are being posted in Account XYZ.
    here the is the requirement we trying to establish:
    for Line 3: using the AVG (of ACTUALS) and the AVG (of BUDGET) ... so different VERSIONS of the SAME ACCOUNT_1. We like to have the same differences (but differen versions) posted to XYZ account.
    what calculation do i put in the Formula field in the chart???
    anybody done this? got an idea? -
    thanks a lot, max  (BPC 7.0 NW)
    Edited by: Maximilian Weisheit on Jun 10, 2009 10:43 PM
    Edited by: Maximilian Weisheit on Jun 10, 2009 10:47 PM

    Thanks Ethans that was good explanation. So, we stayed within the version and the calculation worked fine. However, now I am wondering about the following:
    We take the [END]-[AVG] and we get the wanted result. let's say 1.5 - 1.3 = 0.2 ... So desitnation account will post 0.2. - Correct!
    Now if i run Currency Conversion / FX Trans again. it again takes 1.5 - 1.3 = 0.2 and it adds this 0.2 to the already noted 0.2 in the account = 0.4 in total. Run CC again an addiotional difference of 0.2 to the already there 0.4 which equals 0.6 total; and so on. It is adding on top what has been posted, not continiously just showing the difference in accounts.
    How do i modify that it is NOT adding, but everytime ONLY finding the difference?
    Thanks a lot, Max
    PS: Also I am wondering if anybody has detailed information on the Business Rule Table for Currency Conversion. - The BPC NW Help is rather light on the TABLE information.
    Edited by: Maximilian Weisheit on Jun 15, 2009 11:44 PM

  • Translation rule question - multiple matches

    Hi,
    I have a translation rule
    translation-rule 5000
    Rule 1 5000 600
    Rule 2 5000 601
    Rule 3 5000 602
    im trying to understand what will happen here with the rules matching the same digits. Unable to find any documentation at this stage. Will it know if it has been through the first rule or performs a round robin?
    Thanks

    Hi
    I believe the rule will match the first rule in the list - i.e. like an access-list.
    You can test it using
    test translation-rule 5000 5000
    Where the first 5000 specifies rule 5000, and the second it the input number.
    Regards
    Aaron
    Please rate helpful posts...

  • Where can I get info on translation rule semantics?

    I am looking for a comprehensive list of translation-pattern rule operators. I understand that they don't support wildcards. I have seen some examples with the "^" and others, but have never found any syntax related info.
    Can anyone help?

    Well here is a page that explains it somewhat:
    http://cisco.com/en/US/partner/tech/tk652/tk90/technologies_configuration_example09186a0080094681.shtml
    Here is a table of the supported characters:
    http://www.cisco.com/en/US/products/sw/iosswrel/ps5207/products_command_reference_chapter09186a00801a7f32.html#2036716
    use the 'test translation-rule' command to check that your translations are doing what you want them to. Hope this helps....

  • BW3.5: Error message when trying to activate the transfer rule

    When I was trying to activate the transfer rule for one info object( charateristic with master data) , I got the following error  in [[  ]]
    Error when creating transfer structure /BIC/CCPIZGR00CC_ATTR in source system CI2220
    Diagnosis
    An error occurred when creating transfer structure /BIC/CCPIZGR00CC_ATTR as an IDoc segment in source system CI2220 .
    System response
    The action was terminated. No data was changed.
    Procedure
    Use the generation log in source system CI2220 to identify the error, and remove the cause.
    CI2220 is the backend R/3 system, I had no issue in replicating the data source etc. this error occurred while trying to activate the transfer rule after assigning the info source to the replicated datasource in BW.
    Can anybody tell me how to view( what transaction etc) the generation log to understand the issue?
    Thanks in advance
    Arunabha

    Hi Roberto,
      Thanks for yoyur prompt reply, I would try to follow the instruction, but at the same time please note that previously we had no issue in activating the transfer structure. I would like to see the log in the source system, but don't know how to and which transaction to use etc. any help would be appreciated.
      Thanks
    ARUN

  • A few moments after I open my hotmail, firefox tells me the site isn't safe and it doesn't give me the option to "understand the risks".

    I just got a new harddrive installed in my laptop so I had to reinstall all my programs, including firefox. Everything was good until I tried to check my e-mail. I go to the sign in page for hotmail and log on, everything goes well until that. But after a few moments, directly when I try and send an e-mail or forward something it says "Kan op dit moment geen verbinding maken met outlook.com. Probeer later opnieuw" which translated in English means something like "You can't make a connection to outlook.com at this time. Try again later". When I try and refesh it brings me to the "This connection is not safe" page and I don't get the option to "Understand the risks". I am looking for a job, so at this time not being able to use mail is pretty bad. I can still use internet explorer, but you know... I'd rather not. English is not my native language so excuse potential spelling an grammar mistakes.

    You can try these steps in case of issues with web pages:
    You can reload web page(s) and bypass the cache to refresh possibly outdated or corrupted files.
    *Hold down the Shift key and left-click the Reload button
    *Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    *Press "Command + Shift + R" (Mac)
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Test voice-translation rule not working properly

    Hi all,
    I have a 15.4(1T) image I'm trying to test a voice tranlation-rule on.
    If I put in a number that doesn't match, it tells me so.  However, if I test a string that does match, I get no results at all. 
    I know the rule works as this is from our production phone system. 
    voice translation-rule 1
    rule 1 /^9\([2-9]..[2-9]......\)/ /\1/
    CTHA_2901#test voice translation-rule 1 2488900
    2488900 Didn't match with any of rules
    CTHA_2901#test voice translation-rule 1 92488900
    CTHA_2901#
    CTHA_2901#
    Has anyone run across this?  Perhaps I'm doing something wrong, or there's a software bug in this image?
    Thanks,
    Brian

    Hi Jaime,
    I hadn't, and that certainly does work.  I guess I thought I'd see a no-match message in that scenario too, but never tried it.  Thanks!

  • How to append calling and called number with translation rules?

    Hello,
    I have one question about digit manipulations.
    How to append calling number and called number with IOS commands?
    For example, when 123 dials 45678, translations have to be performed and the new called number to be 12345678.
    Thank you,
    I will vote this conversation.

    It is not possible with translation rules.
    However, you can do that with a TCL/IVR script.

  • Problem in understanding the code

    this particular code is given as stadard example in sap unicode conversion
    this particular code is replcement for 'translate code page syntax'
    this code describes  how to use particular cl_abap_conv_in_ce classs
    i cannot understand the   'buffer'  field in this code
    can any one tell me what is the meaning of buffer = '41424320' from where did he get this value?
      DATA:
        text(100) TYPE c,
        int TYPE i,
        buffer(4) TYPE x,
        conv TYPE REF TO cl_abap_conv_in_ce.
      conv = cl_abap_conv_in_ce=>create(
              encoding = 'UTF-8'
              endian = 'L' ).
      buffer = '41424320'.
      conv->convert(
        EXPORTING input = buffer
        IMPORTING data = text ).
      buffer = '02010000'.
      conv->convert(
        EXPORTING input = buffer
        IMPORTING data = int ).

    thank you mahmet i also want to check weather  i am doing the  code correct or not
    i have old syntax in my program like    'TRANSLATE header-id FROM CODE PAGE file_tab-codepage'.
    i am replacing the above syntax with the follwing code and can u correct me if  i am wrong
    data:
    buffer1 type xstring,
    conv type ref to cl_abap_conv_in_ce,
    int type i.
    conv = cl_abap_conv_in_ce=>create(
              encoding = 'file_tab-codepage'
              endian = 'L' ).
      buffer1 = '41424320'.
      conv->convert(
        exporting input = buffer1
        importing data = header-id ).

  • Help in understanding the MouseRotate Source code.(Source code attached)

    Hi
    I am trying to understand the code here in the class below. The description says MouseTranslate is a Java3D behavior object that lets users control the
    translation (X, Y) of an object via a mouse drag motion with the third mouse button (alt-click on PC). See MouseRotate for similar usage info I was able to locate the isAltDown() and isMetaDown conditions. But could not figure out where is the condition (evt.getButton() == MouseEvent.Button1) is being checked.
    I have spent too much time on this, any help is greatly appreciated.
    Thanking you
    Venkat
    package com.sun.j3d.utils.behaviors.mouse;
    * MouseTranslate is a Java3D behavior object that lets users control the
    * translation (X, Y) of an object via a mouse drag motion with the third
    * mouse button (alt-click on PC). See MouseRotate for similar usage info.
    public class MouseTranslate extends MouseBehavior {
        double x_factor = .02;
        double y_factor = .02;
        Vector3d translation = new Vector3d();
        private MouseBehaviorCallback callback = null;
         * Creates a mouse translate behavior given the transform group.
         * @param transformGroup The transformGroup to operate on.
        public MouseTranslate(TransformGroup transformGroup) {
         super(transformGroup);
         * Creates a default translate behavior.
        public MouseTranslate(){
         super(0);
         * Creates a translate behavior.
         * Note that this behavior still needs a transform
         * group to work on (use setTransformGroup(tg)) and
         * the transform group must add this behavior.
         * @param flags
        public MouseTranslate(int flags) {
         super(flags);
         * Creates a translate behavior that uses AWT listeners and behavior
         * posts rather than WakeupOnAWTEvent.  The behavior is added to the
         * specified Component. A null component can be passed to specify
         * the behavior should use listeners.  Components can then be added
         * to the behavior with the addListener(Component c) method.
         * @param c The Component to add the MouseListener
         * and MouseMotionListener to.
         * @since Java 3D 1.2.1
        public MouseTranslate(Component c) {
         super(c, 0);
         * Creates a translate behavior that uses AWT listeners and behavior
         * posts rather than WakeupOnAWTEvent.  The behaviors is added to
         * the specified Component and works on the given TransformGroup.
         * A null component can be passed to specify the behavior should use
         * listeners.  Components can then be added to the behavior with the
         * addListener(Component c) method.
         * @param c The Component to add the MouseListener and
         * MouseMotionListener to.
         * @param transformGroup The TransformGroup to operate on.
         * @since Java 3D 1.2.1
        public MouseTranslate(Component c, TransformGroup transformGroup) {
         super(c, transformGroup);
         * Creates a translate behavior that uses AWT listeners and behavior
         * posts rather than WakeupOnAWTEvent.  The behavior is added to the
         * specified Component.  A null component can be passed to specify
         * the behavior should use listeners.  Components can then be added to
         * the behavior with the addListener(Component c) method.
         * Note that this behavior still needs a transform
         * group to work on (use setTransformGroup(tg)) and the transform
         * group must add this behavior.
         * @param flags interesting flags (wakeup conditions).
         * @since Java 3D 1.2.1
        public MouseTranslate(Component c, int flags) {
         super(c, flags);
        }Rest of the code follows in the next post

        public void initialize() {
         super.initialize();
         if ((flags & INVERT_INPUT) == INVERT_INPUT) {
             invert = true;
             x_factor *= -1;
             y_factor *= -1;
         * Return the x-axis movement multipler.
        public double getXFactor() {
         return x_factor;
         * Return the y-axis movement multipler.
        public double getYFactor() {
         return y_factor;
         * Set the x-axis amd y-axis movement multipler with factor.
        public void setFactor( double factor) {
         x_factor = y_factor = factor;
         * Set the x-axis amd y-axis movement multipler with xFactor and yFactor
         * respectively.
        public void setFactor( double xFactor, double yFactor) {
         x_factor = xFactor;
         y_factor = yFactor;   
        public void processStimulus (Enumeration criteria) {
         WakeupCriterion wakeup;
         AWTEvent[] events;
         MouseEvent evt;
    //      int id;
    //      int dx, dy;
         while (criteria.hasMoreElements()) {
             wakeup = (WakeupCriterion) criteria.nextElement();
             if (wakeup instanceof WakeupOnAWTEvent) {
              events = ((WakeupOnAWTEvent)wakeup).getAWTEvent();
              if (events.length > 0) {
                  evt = (MouseEvent) events[events.length-1];
                  doProcess(evt);
             else if (wakeup instanceof WakeupOnBehaviorPost) {
              while (true) {
                  // access to the queue must be synchronized
                  synchronized (mouseq) {
                   if (mouseq.isEmpty()) break;
                   evt = (MouseEvent)mouseq.remove(0);
                   // consolodate MOUSE_DRAG events
                   while ((evt.getID() == MouseEvent.MOUSE_DRAGGED) &&
                          !mouseq.isEmpty() &&
                          (((MouseEvent)mouseq.get(0)).getID() ==
                        MouseEvent.MOUSE_DRAGGED)) {
                       evt = (MouseEvent)mouseq.remove(0);
                  doProcess(evt);
         wakeupOn(mouseCriterion);
        void doProcess(MouseEvent evt) {
         int id;
         int dx, dy;
         processMouseEvent(evt);
         if (((buttonPress)&&((flags & MANUAL_WAKEUP) == 0)) ||
             ((wakeUp)&&((flags & MANUAL_WAKEUP) != 0))){
             id = evt.getID();
    *         if ((id == MouseEvent.MOUSE_DRAGGED) && !evt.isAltDown() && evt.isMetaDown()) { *
              x = evt.getX();
              y = evt.getY();
              dx = x - x_last;
              dy = y - y_last;
              if ((!reset) && ((Math.abs(dy) < 50) && (Math.abs(dx) < 50))) {
                  //System.out.println("dx " + dx + " dy " + dy);
                  transformGroup.getTransform(currXform);
                  translation.x = dx*x_factor;
                  translation.y = -dy*y_factor;
                  transformX.set(translation);
                  if (invert) {
                   currXform.mul(currXform, transformX);
                  } else {
                   currXform.mul(transformX, currXform);
                  transformGroup.setTransform(currXform);
                  transformChanged( currXform );
                  if (callback!=null)
                   callback.transformChanged( MouseBehaviorCallback.TRANSLATE,
                                     currXform );
              else {
                  reset = false;
              x_last = x;
              y_last = y;
             else if (id == MouseEvent.MOUSE_PRESSED) {
              x_last = evt.getX();
              y_last = evt.getY();
         * Users can overload this method  which is called every time
         * the Behavior updates the transform
         * Default implementation does nothing
        public void transformChanged( Transform3D transform ) {
         * The transformChanged method in the callback class will
         * be called every time the transform is updated
        public void setupCallback( MouseBehaviorCallback callback ) {
         this.callback = callback;
    }

  • Want to understand the Difference between Attempt sign in and sign in in Unity Connection

    I would like to understand the difference between Attempt sign in and sign in in Unity Connection.
    If I do a direct routing rule to attempt sign in and another routing rule directly to sign in, what would be the difference for the caller (inside caller with or without voicemail and also outside caller with or without voicemail)?  Thank you!  Lise

    Attempt Sign-In—Sends the call to the user sign in conversation, if the calling number belongs to a user. The calling number is used as the ID. If the call is not from a user, the next rule in the routing table is applied to the call information.
    Sign-In—Sends the call to the user sign in conversation, which prompts the caller to enter an ID.

  • Please help me in understanding the following code.

    public static void main(String args[]){
    int x=0,c=0;
    for(int i=0;i<3;i++)
    x = x + x++;
    System.out.println(x);
    why this program always prints zero(0) as output. I am not able to understand the execution sequence of it.

    bkyadav wrote:
    at certain point of time in porgram
    (x++) should be treated as x = x+1; but that is not happening.Here's the rule : you have to proceed the expression from left to right.
    For example :
    int x = 8;
    x = x + ++x; // x = 8 + 9 = 17
    int x = 8;
    x = x + x++; // x = 8 + 8 = 16
    int x = 8;
    x = x + --x; // x = 8 + 7 = 15Also, in the for statement of your example :
    for(int i=0;i<3;i++)the value of i+ is first tested before being incremented for the next iteration otherwise the test on value of i+ = 0 would have been skipped.

  • BE3.5 : Error from the source system while activating the transfer rule

    When I was trying to activate the transfer rule for one info object( charateristic with master data) , I got the following error  in [[  ]]
    Error when creating transfer structure /BIC/CCPIZGR00CC_ATTR in source system CI2220
    Diagnosis
    An error occurred when creating transfer structure /BIC/CCPIZGR00CC_ATTR as an IDoc segment in source system CI2220 .
    System response
    The action was terminated. No data was changed.
    Procedure
    Use the generation log in source system CI2220 to identify the error, and remove the cause.
    CI2220 is the backend R/3 system, I had no issue in replicating the data source etc. this error occurred while trying to activate the transfer rule after assigning the info source to the replicated datasource in BW.
    Can anybody tell me how to view( what transaction etc) the generation log to understand the issue?
    Thanks in advance
    Arunabha

    Hi Arunabha,
    I would confrim that there is no issue with the datasource in your r/3 system. Can you run the datasource on your r/3 system with no errors using RSA3?
    If the datasource is ok, then I would check out the error message number in OSS or SDN. I have seen this error before, I just cannot recall what the fix was.
    Cheers!

  • Understanding the correct use of FromOrderComponets and ToOrderComponents

    Hi all
    Someone could help me understand the difference, and in what case I must use fromOrderComponets and in what case i must use toOrderComponents.
    In the Decomposition Rules.
    I've done multiple orchestrations to own cartridges, by multiple products, and I've never needed to use the expression toOrderComponents, because we've always used FromOrdercomponents.
    any explanation is helpful,
    Best Regards
    David A Leon H

    Hi Leon,
    In the Design Studio Help, please refer to "Working with Decomposition Rules" inorder to understand Decomposition Rules.
    Property Correlation is used while setting a dependency in the Product Specification. This is where FromOrderComponent & ToOrderComponent both are extensively used. For more information, please refer help section for the following.
    1)About Order Item Dependencies
    2)Orchestration Dependency Editor Order Item Dependencies Tab
    Thanks,
    Naveen Jabade

Maybe you are looking for