Strip Digits

I have a number of 2851 utilizing the IOS gatekeeper. These all point to a 2851 which is acting as a directory gatekeeper. From the directory gatekeeper down our dialing plan is 10 digits in length. We also are part of a bigger organization in which our directory gatekeeper is neighbored/peered to their gatekeeper. In order for someone from the outside organization to dial into us they have a 6 digit prefix they add to the E164. How can I get our directory gatekeeper to strip the 6 digit prefix from the dial string and forward the remaining 10 digits to the appropriate gatekeeper below it?
Thanks for any suggestions/help!
Alan

you can strip digits by using this
voice translation-rule 1
rule 1 /^Number You Want To Strip/ //
then
voice translation-profile voice
translate calling 1
then
translation-profile incoming write this statement in dialpeer .
Regards
Irfan Tariq

Similar Messages

  • Stripping digits from a multi digit number

    I am writing a VI that will initially prompt an operator to input a whole number as a serial number for the device under test (e.g 13579). I need to take each individual integer and send it as an eight bit word to an EEPROM i.e send 1 = 00000001, then send 3 = 00000011,  etc until the whole serial number is stored in the EEPROM. I'm only a simple sparky and just starting life with Labview. Has anyone any ideas how to start this please?
    Regards
    Ian

    hi there
    i attached a vi with some functions you may find useful.
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"
    Attachments:
    ByteConvert.vi ‏24 KB

  • Digit stripping between Gateway and Callmanager

    I have a H.323 gateway that I am trying to get it to send a pattern to a Cisco Callmanager. On the same regard I am trying to send a pattern to the Cisco Call manager from the H.323 gateway.
    My problem is I need to strip digits off the dial pattern before it sends it to the call manager. I was looking at applying a translation rule on the router to do this but I can't find anything about stripping digits only replacing digits.
    Whats frustrating is if this wasn't a voip dialpeer but going to a pots the pattern would strip off the digits before presenting them to the next device aka the pots line.
    Any suggestions how I can do this?

    That makes much more sense. Thanks for clearing that up:
    ok I can't remove all the dial peers off this router because it is production however I did remove the one dial peer I was working on and just copied and pasted the two you said into the router.
    here is the debug from the debug dialpeer command:
    Sep 8 14:47:59.024: Inside dpMatchCore:
    Sep 8 14:47:59.024: destination pattn: 91011101 expanded string: 91011101
    Sep 8 14:47:59.024: MatchNextPeer: Peer 1 matched
    Sep 8 14:47:59.028: Inside dpMatchCore:
    Sep 8 14:47:59.028: destination pattn: 91011101 expanded string: 91011101
    Sep 8 14:47:59.028: MatchNextPeer: Peer 1 matched
    Sep 8 14:47:59.036: Inside dpMatchCore:
    Sep 8 14:47:59.036: destination pattn: 91011101 expanded string: 91011101
    Sep 8 14:47:59.040: MatchNextPeer: Peer 1 matched
    Sep 8 14:47:59.040: Inside dpMatchCore:
    Sep 8 14:47:59.040: destination pattn: 91011101 expanded string: 91011101
    Sep 8 14:47:59.040: MatchNextPeer: Peer 1 matched
    Sep 8 14:47:59.044: Inside dpMatchPeersMoreArg
    Sep 8 14:47:59.044: dpMatchPeersMoreArg: Match Dest. pattern; called (91011101)
    Sep 8 14:47:59.048: Inside dpMatchCore:
    Sep 8 14:47:59.048: destination pattn: 91011101 expanded string: 91011101
    Sep 8 14:47:59.048: MatchNextPeer: Peer 2 matched
    Sep 8 14:47:59.048: dpMatchPeersMoreArg: Result=0 after MATCH_ORIGINATE
    looks like its matching peer 2 but im not sure if its stripping those digits off and sending 1101 to the call manager.

  • Sprite cant fall back down

    Hi all,
    I am currtenlty working on a J2ME game. I have got to a point where i am able to make the sprite jump. However i cant get it to fallback down. Could anybody spot any abovious mistakes in my code?
    I have tried to debug to see what the issue could be by printing lines out. I notice that the code does not reach the last if statement if (jumpHeight==0)
    Thanks in advance.
    else if ((keyStates & UP_PRESSED) != 0) {
                        for (int i = 0; i <nOranges; i++) {
                            mOranges.move(0, 3);
    int jumpHeight=40;
    setDirection(kRight);
    setState(kJump);
    System.out.println("Up key pressed");
    mBackground.move(3, 0);
    mSea.move(0, 20);
    isJumping=true;
    mBoxer.nextFrame();
    if (isJumping){
    mSea.move(-2, 0);
    jumpHeight-=2;
    System.out.println("sprite falling1");
    if (jumpHeight==0){
    isJumping=false;
    System.out.println("sprite falling2");
    System.out.println("sprite gets here");
    /* Collides if statement*/
    if (mOranges[0].collidesWith(mBoxer, true)) {
    mOranges[0].setFrame(1);
    System.out.println("sprite jumps");

    Here is the SRST guide for you.
    http://www.cisco.com/en/US/docs/voice_ip_comm/cusrst/admin/srst/configuration/guide/srst41/srst41sa.html
    Basically, you need to configure CUCM for this site (SRST)
    Apply the SRST Site to the Device Pool
    Configure the router for SRST
    Reboot the phones so they are aware of the new SRST router
    Setup the dial peer you want to use for dialing inbound or outbound or both. Simply using 9T usually is fine for outbound, prioritize 911 and9911 of course
    Inbound, you will need to normalize or strip digits if you have 4 digits extensions, otherwise when the call comes inbound, its 10 digits and the router will not know what to do with it.
    Voicemail rollover is complicated and sometimes not needed
    Remember, SRST fallback and then re-registration to CUCM takes a few minutes. Its not immediate. So be patient in your testing until you are familiar with SRST
    Good luck!

  • Fall Back

    Hello ,
    Is is possible to configure fall back link on the router if any one site goes down. Please let me know the steps to configure.
    Thanks
    Abhishek

    Here is the SRST guide for you.
    http://www.cisco.com/en/US/docs/voice_ip_comm/cusrst/admin/srst/configuration/guide/srst41/srst41sa.html
    Basically, you need to configure CUCM for this site (SRST)
    Apply the SRST Site to the Device Pool
    Configure the router for SRST
    Reboot the phones so they are aware of the new SRST router
    Setup the dial peer you want to use for dialing inbound or outbound or both. Simply using 9T usually is fine for outbound, prioritize 911 and9911 of course
    Inbound, you will need to normalize or strip digits if you have 4 digits extensions, otherwise when the call comes inbound, its 10 digits and the router will not know what to do with it.
    Voicemail rollover is complicated and sometimes not needed
    Remember, SRST fallback and then re-registration to CUCM takes a few minutes. Its not immediate. So be patient in your testing until you are familiar with SRST
    Good luck!

  • Routing incoming calls

    I've recently starting experimenting with Cisco Call Manager (version 8.6).  I've been able to figure out routing outgoing from the one extension I have setup, but I can't seem to figure out how to route incoming calls to that extension.  I'm running a Cisco 2901 as an MGCP gateway, and all calls are routed through a VIC2/2FX0.  How do I go about routing the incoming calls? 

    Alright, so in the window, I have
    Number Type
    Prefix
    Strip Digits
    Calling Search Space
    Use Device Pool CSS
    What would I put under each?  Sorry, again, I am brand new to this, and I haven't been able to find any good guide documents online on the subject.  Basically, what I want to do is route all incoming calls on voice port 0/0/0 to extension 1001.  All outgoing calls are functioning normally. 
    Is there a guide that I missed somewhere that would walk me through this? 

  • + Globalization and SIP Trunks

    I'm trying to add the +E.164 number to Missed Call Field.  On a SIP Trunk, I know I don't have support for ISDN TON (Subscriber, National, International), so when I push the Calling Party Number to a Transformation how do I ensure I tag Local, National, and International Calling Party Number correctly?  Configuration examples for those who have done this would be appreciated.

    Hello Sam,
    After a lot of research on my personal Lab, I was able to achieve Globalization in SIP Trunks. This is how I did:
    I created two partitions, CALLING-XFORM-DP-PT, and CALLING-XFORM-TRK-PT.
    One is for the Device Pool, and the other one is for the SIP Trunk. Create the CSSs and add your partitions > CALLING-XFORM-DP-CSS with CALLING-XFORM-DP-PT inside and CALLING-XFORM-DP-CSS with CALLING-XFORM-TRK-PT inside.
    Now create two Device Pools, one for the Trunk and one for your Phones.
    PHONES-DP and TRUNK-DP were the Device Pools I created. I am trying to be as specific as possible so everybody understands, so bear with me. :)
    Now, put the CSSs accordingly. Go to PHONES-DP "Device Mobility Related Information" field and put CALLING-XFORM-DP-CSS there. Save and reset.
    On TRUNK-DP you are not require to do anything, of course there is an "unless", but let's stick with your main concern, otherwise this post will be bigger than it will be.
    Go to the Trunk itself and add the CALLING-XFORM-TRK-CSS to the "Incoming Calling Party Settings" field. Uncheck the "Use Device Pool CSS" and leave "Strip Digits" and "Prefix" fields in its defaults. Save and Reset.
    Now, create your Calling Party Transformation Patterns. I will explain to you using the Brazilian national standard.
    For Local Calls, here in Sao Paulo, we receive 11 which is the area code and 8 or 9 digits after that for local number. So, I created the Calling Party Xform mask as follows:
    1 - 11.9XXXXXXXX > discard digit instruction: Predot > Prefix +5511
    2 - 11.[2-9]XXXXXXX > discard digit instruction: Predot > Prefix +5511
    I didn't change the TON or the Plan because it doesn't matter. SIP doesn't recognize these fields.
    Now, same thing for national calls. We receive the area code and 8 or 9 digits. Since we already have specific Patterns for Local calls, it is ok to have a more generic pattern for other area codes
    1 - [1-9][1-9]9XXXXXXXX > No Discard Digit Instruction > Prefix +55
    For international calls, our SP always sends 00 in front of the number. Knowing that, it was easy to simply add the following pattern.
    1 - 00.! > discard digit instruction: Predot > Prefix +
    Now, you create the Calling Party Transformation Patterns for Phone Device Pools. Achieving Localization as well.
    Local Numbers
    1 - \+5511.9XXXXXXXX > discard digit instruction: Predot > No need to prefix anything
    2 - \+5511.[2-9]XXXXXXX > discard digit instruction: Predot > No need to prefix anything
    National Numbers
    3 - \+55.[1-9][1-9]9XXXXXXXX > discard digit instruction: Predot > Prefix 0
    4 - \+55.[1-9][1-9][2-9]XXXXXXX > discard digit instruction: Predot > Prefix 0
    (in Brazil we used to have the numbers delivered to us as 0 + area code + number. That Prefix is just to achieve localization for us)
    There is no need to do anything for International Numbers at this level, because if the number is different from +55, there is nothing to be done, just receive the +E164 format.
    After all that you will be able to even do Plus Dialing. If you need any help setting it up, please let me know.
    Don't forget that if your provider sends you the digits in a way that you can't do much on CUCM, try to identify the numbers by adding a translation pattern in your Trunk (if it is Cisco, of course) before the numbers enter on CUCM. Then use the Calling Party Transformation Patterns to strip off any identification you gave for the inbound numbers.
    I hope this helps.
    Please rate useful posts.

  • Num-exp vs translation profiles vs dial-peer

    Hi friends,
    This topic has been discussed many times still I couldn't find any relevant answer for the same and even configuration sometimes give unseen results.
    As far as I know, following techniques exist in router for digit manipulation;
    1. Number expansion
    Applied globally
    2. Translation profile
    Applied on dial peer or PoTS interface or Controller or VoIP globally
    3. Various commands found under dial peer like forward, prefix, strip digits etc.
    Having all information available, I understand it fair well about independent working of all of the above techniques. But when it comes to apply all of the above techniques together, then it becomes complex which techniques apply in what order and hence not very clear to configure. I found lot of discussions on this topic and also found that Cisco has lot of contradictory information about the same in it's documents.
    Will appreciate if someone can let me know in exactly which order above techniques are checked in router for both inbound and outbound call?

    Hi Chris,
    Thanks for your time.
    It's getting conflicted with what Cisco stuff says;
    Following is the priority for inbound VoIP dial-peer as per Cisco stuff;
    Priority 1: Global voice translation profile (applicable only for incoming call)
    Priority 2: Number Expansion
    Priority 3: Inbound Dial Peer Selection
    Priority 4: Voice Translation Profile under Dial-Peer (I skipped CLID here purposefully)
    Same is applicable for PoTS inbound call where stuff says that voice translation profile applied to PoTS interface has more priority than number expansion.
    I'm comfortable with digit manipulation applied during outbound call but for incoming call, it's still not clear. What do you suggest for the above priorities? 
    Tomorrow I'll also try to put my hands on doing some test configuration to actually check during inbound voip call, global translation profile has more priority or number expansion?
    Thanks
    Vivek

  • RE: Suppress or stripping of some digits in XI with out effecting others

    In  POS, the Employee Id (of the Store Rep) who does the sale is his PEIN.  The design of POS does not allow the employee to work in more than 1 store. Therefore we-are exploring a "corrective" solution which - ideally would not affect POS+ as follows:
    XYZ  team will "pass"  an employee ID which is made of  his PEINstorecode (which would fit in the 12 digits alphanumeric employee code in POS Employee table).  In other words, the new employee ID in POS+ will have the official  PEIN (7 digitis) suffixed with storeId as the next 5 digits
    All sales transactions will carry this "new" employee ID. HOWEVER, when the sales transactions is passed over to XI ,  "a code fix"/or/ a data transformation / or / data mapping whithin XI (?) would have to be effected within XI to "strip" the extra 5 StoreId digits?
    In the "hypothetical" scenario I described,  the the input file from POS+ to XI will display an Employee id with the new format as " PEIN Nostoreidincremental digit"  (74digitsx) 
    In my XML example ,
    <StoreID>4152</StoreID>
      <TransactionID>8962</TransactionID>
      <RegisterTransNumber>2607</RegisterTransNumber>
      <TransactionCode>101</TransactionCode>
      <EmployeeID>6020540</EmployeeID>
    ithe new Employee ID will show  : 602054041521    with the last digit incrementing from 1 to 9 .
    What can be done in XI to parse the information and get it back to an Employee ID as for example EmployeeID>6020540 , so that the remaining XI, SAP , SAP BW streams is left intact?  Please advise on this 
    How can we resolve this in XI?
    Thanks in advance
    Amar

    Hi Amarnath,
    If you want to remove the last 5 then create a value UDF with one input argument 'a' and name as removelastfive and add this code:
    Imports:  java.;*
       //write your code here
    String str = a.substring(0, a.length()-5);
    return str;
    Then you map like this:
    input --> removelastfive(udf) --> output.
    Regards,
    ---Satish

  • Stripping out Digits in ID Number

    Our system requires that you add a '19' or '20' in front of every ID number.  I want to strip out the 19 or 20, but not all ID numbers are the same length and some are missing the 19 or 20.  ID numbers should be 4-5 digits in length.
    Ex
    2010011
    199237
    07011
    2009001
    I try using the Right Function, but it doesn't work well with numbers > 5 digits long .  It either adds a 0 or 9.
    Right (,5)
    Results
    10011
    99237 - (9237 is correct ID No.)
    07011
    09001
    Any suggestions?

    I modified the first line to fix the syntax and it works!!
    If left({your stringnumber}, 2 ) in
    ["19", "20"]
    Amazing.  Thanks for the help.
    Edited by: egreene on Jun 6, 2011 10:51 AM

  • Apple mail strips my digital signature from pdf attachments

    I communicate with clients through email.  I send reports which contain a picture of my signature and a digital hass.  Apple mail strips the signature from the pdf files as I attach them. 
    An aside.  I use mobile me and the idisk server.  All documents located on the idisk are also stripped of the signature block. 
    This is not a problem if I use outlook, which I guess I have to switch back to again. 
    What does apple have against a digital signature

    I sign the pdf with a digital signature which includes a picture of my written signature.  When I attach it to Apple mail or upload to mobileme, the signiture disappears.  My clients see nothing.  When I go back to the email in the sent box and open the pdf in the email there is no signature.  When I open the original pdf the signature is there
    This problem does not exist in outlook 2011, but would have liked to use mail as outlook does not support caldev
    I don't know if I can explain it any better.

  • Verify or re stripe Western Digital drive

    Hi guys
    I recently bought a Western Digital 1TB Studio Edition drive which worked a treat until I passed it on to an Avid editor to place some files onto it for my Final Cut. He ran it of an Avid PC, couldn't see any of my files and decided (stupidly) to re format the drive to Windows NT (NTFS). Now I cant delete any of the files he placed off it, re format, or verify the drive back to MAC OS as Disk utility does not allow me to do anything with it as its protected somehow. Could someone out there please help me before a throw the now expensive 'door stop' at him.
    many thanks

    HI,
    *"as Disk utility does not allow me to do anything with it as its protected somehow."*
    Run disk utility and repair disk permissions with the external drive connected to your Mac.
    Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select FirstAid, then click: Repair Disk Permissions. Quit DU when it's finished and reboot.
    Now relaunch Disk Utility and see if the drive shows up on the left side of the window and isn't greyed out.
    Carolyn

  • Aperture stripping 8 pixels from Canon Digital Rebel CRW files?

    hi,
    I just wanted to see if anyone else was having the issue I am. I'm using Aperture with CRW files from a Digital Rebel, which are 3072x2048 in resolution. However, upon import into Aperture, images are listed as 3072x2040 in resolution. Exporting JPGs confirms that the images are only 2040 pixels in height. Converting the same RAW files in Photoshop results in images that are 2048 pixels in height.
    What happened to those 8 pixels? It is kind of a pain because the 3072x2040 files are now not exactly a 3:2 aspect ratio...

    yeah, I recognize that it's a very small "loss" of information, but it's just a little bit annoying because of the loss of the 3:2 aspect ratio. I just sent some of the 2040 images out for printing so hopefully there won't be an issue there.
    I noticed that the crop tool, when you tell it to use a 3:2 aspect ratio, will generate crops that aren't exactly 3:2 pixel-wise. Again, it's very close, but I just feel like there's no reason why it shouldn't be exact.
    Thanks for everyone's help! I guess I should start thinking about this as more of a "feature" than anything else...

  • Macbook Pro 2012 Retina Won't Start, burnt power pins on power port, digital artist dead in the water

    After a year of owning my macbook pro late 2012 retina model, it started having difficulty charging, it wouldn't charge even when green on the magsafe, and had difficulty turning orange, basically right after the 1 year warranty was over by one month, I went into the apple store and they told me that I simply needed to replace the power adapter and cord and it would be fine, but that it most likely was caused by me plugging it into a power strip, and that I had to plug it directly into the wall in its own power slot, which they never said that was what you were supposed to do when I purchased the laptop and could not find it anywhere in the literature. It was fine in the store for the apple worker, but after even just a few months I had to to constantly twist and unplug and replug the magsafe adapter from different angles just to get it to work, and it was like a living ****, as I am a digital artist and my wacom tablet will not work until my macbook pro is charging and the magsafe is orange, so everyday I would waste 30 minutes to an hour with the finicky magsafe, until recently my macbook pro will not turn on at all.
    Since the problem arose after warranty I had to pay out of pocket for the replacement magesafe cord, which was a temporary solution, I pointed out that the magsafe power port on the laptop itself also had burn marks just like the magsafe cord that had a few pins pushed in and was slightly blackened but the attendant ignored that and said it was fine and just swapped out the cord. The "genius" attendant claimed if I just plugged in the macbook pro directly into the wall, everything would be fine and back to normal, and I did just that, I never plugged it into a power strip ever again, and still we arrive to my current predicament.
    I believe I have to repair the actual power port the magsafe plugs into on the laptop, and get a new magsafe cord all over again, but it will be much more expensive than simply swapping out a cord this time, and I don't think the reason this happened to begin with has been truly identified, and I'm worried I have to make this repair every year, and I can't afford this kind of planned obsolescence, and I thought I was getting the best laptop in the world, and it was, everything was perfect not one single problem, except for this power issue, which now won't even allow me to use the computer at all and is now a giant paper weight, and leaves a dirty taste in my mouth when it comes to apple products.
    I live in San Francisco in a house that was built around 1910 and don't know much about what or when renovations were made for power, but I have a feeling some kind of incorrect voltage is happening, and I was never instructed on this, and every other macbook is fine, my roommates have earlier models like the 2007 and 2009 MacBooks and have no problem like mine.
    Please help me

    I don't understand why and how the red light in the audio jack is still on while the computer is totally off, not connected to any power source and the battery seems to be empty... how is taht possible?
    Because the battery is not empty, something is messed up, likley the SMC.
    All I can advise is doing a SMC Reset, which resets the power firmware in case it got messed up and hopefully that will charge the battery up like normal.
    If you can't do it or it doesn't work tommorow after charging up (turned off) overnight then just take it to Apple.
    https://support.apple.com/kb/ht3964

  • 2001 Dell w/ Sound Blaster card+strip end speakers and two things I don't know to c

    well, I have two devices that a combo CD player/Tape decks/radio tuner/amp; one has misc input, the other doesn't. Both are analog devices, both are old things I bought at a yard sale. I got 6 bookshelf speakers that use pairs of stripped wire as the input hooked up in 2 parallel wired sets of 3 to the CD/Tape/Tuner/Amp thing that has a misc input. Anyway, the one without misc input has a 3 disk CD changer, plus it would give me a way to input tape and radio sounds sources into my computer if I just connected it's audio outputs to the internally located Aux In on my soundblaster card in my computer. But I wonder, what considerations do I have to have? Firstly, is the Aux In on my board analog or digital? I'm assuming if it doesn't say "digital", it's analog; correct?...... secondly, and more importantly; the CD/Tape/Tuner/Amp thing is supposed to be used with 8 ohm speakers and do I have to worry about sending too much current to the soundcard?
    specific model of SB card; I'm not sure. It has 2 analog outs, analog in, mic in, digital out and a joystick port; and it came installed on a 200 Dell w/ Win ME
    and please, don't try selling me something; I use old crappy hardware and really do not mind doing so.
    any help will be appreciated, thanks.

    Jebus wrote:
    well, I have two devices that a combo CD player/Tape decks/radio tuner/amp; one has misc input, the other doesn't. Both are analog devices, both are old things I bought at a yard sale. I got 6 bookshelf speakers that use pairs of stripped wire as the input hooked up in 2 parallel wired sets of 3 to the CD/Tape/Tuner/Amp thing that has a misc input. Anyway, the one without misc input has a 3 disk CD changer, plus it would give me a way to input tape and radio sounds sources into my computer if I just connected it's audio outputs to the internally located Aux In on my soundblaster card in my computer. But I wonder, what considerations do I have to have?
    Firstly, is the Aux In on my board analog or digital? I'm assuming if it doesn't say "digital", it's analog; correct?......
    secondly, and more importantly; the CD/Tape/Tuner/Amp thing is supposed to be used with 8 ohm speakers and do I have to worry about sending too much current to the soundcard?
    specific model of SB card; I'm not sure. It has 2 analog outs, analog in, mic in, digital out and a joystick port; and it came installed on a 200 Dell w/ Win ME
    and please, don't try selling me something; I use old crappy hardware and really do not mind doing so.
    any help will be appreciated, thanks.
    Aux-In is an analog port (4-pin connector/stereo).
    Don't connect powered output (= speaker outputs) into soundcard but, if possible, use some low-power connection like Headphones-Out (or if possible then some line-out port).
    jutapa

Maybe you are looking for