Configure : add prefix and remove prefix

Hello.
I have 4 pods in our voip netowrk.
Each pod have owner PBX system.
But they have complex dial plan.
So I have to configure as simple as possible.
Thus, I have good idea to resolve.
In my opinion, I'm gonna give prefix number both of them. Pod-A is 1, Pod-B is 2, Pod-C is 3, Pod-D is 4.
for example, I'll add prefix 1 all phone number entering from pod-A's pbx to gateway in pod-A on pots dial-peer.
When the call flow pod-B, I'll strip the prefix 1 from gateway in pod-B to pod-B's PBX on pots dial-peer.
Is it possible?
Actually, I had a test, but i couldn't success it....
may be...wromg configuration...
Could you please advice to me to reslove? and any other good idea?
Regard,
John.

Hi John,
It is important to note that the DNIS you receive from the PBX really should have the pod code prefixed before the gateway receives it. It is important because you have complex dial plans and you will be very limited by the number of translations you can perform on each trunk.
This is a very simple example, but it should give you some idea of how this will work.
Dial-peer 10 is the inbound pots dial-peer on the source gateway. Dial-peer 20 is outbound to the POD A gateway.
Dial-peer 30 is the inbound voip dial-peer on the POD A gateway. Dial-peer 40 is the outboud pots dial-peer on the POD A gateway. You will replace ....... with the correct number of digits or the T parameter if the digit strings are variable.
direct-inward-dial may be required on pots peers if the interface supports DID.
On source gateway:
dial-peer voice 10 pots
port x/x
dial-peer voice 20 voip
destination-pattern 1.......
session target ipv4:
dtmf-relay h245-alpha
codec g711ulaw
no vad
On Pod A gateway:
dial-peer voice 30 voip
incoming called 1.......
codec g711ulaw
no vad
dial-peer voice 40 pots
destionation-pattern 1.......
port x/x:x
Again, if you must prefix/translate in the gateway then you'll be limited by the number of translations (15) you can configure per trunk.
Here's some examples of how to prefix the DNIS. I'm assuming PodA numbers begin with 555321, PodB 666321, and PodC 777321. Of course this will depend on your dial plan.
voice translation-rule 1
rule 1 /\(555321\)\(.*\)/ /1\1\2/
voice translation-rule 2
rule 1 /\(666321\)\(.*\)/ /2\1\2/
voice translation-rule 3
rule 1 /\(777321\)\(.*\)/ /3\1\2/
voice translation-profile podA
translate called 1
voice translation-profile podB
translate called 2
voice translation-profile podC
translate called 3
dial-peer voice 10 pots
translation-profile incoming podA
port A/A
dial-peer voice 11 pots
translation-profile incoming podB
port B/B
dial-peer voice 10 pots
translation-profile incoming podC
port C/C
Michael
Let me know if this helps by rating the post.

Similar Messages

  • View vpnv4 prefix and ip prefix

    Hi there,
    Normally, we use the command such as "sh ip bgp vpnv4 all" "sh ip route vrf" and etc to determine the prefix path.May I know what command in cisco devices that actually reflect vpnv4 prefix and IP prefix? Sound like a stupid question but I just want to confirm.
    Thanks in advance.
    maher

    You are right about the command
    show ip bgp vpnv4 ip-prefix
    For more information on how the Routes are distinguished and the use of BGP extended communities (route targets)
    Check the below URL (scroll down to the image 7-4 VPN-IP Address Format for a graphic explanation)
    http://www.cisco.com/en/US/products/sw/ps2346/ps99/products_configuration_guide_chapter09186a00800ee111.html
    an example
    Router# show ip bgp vpnv4 all 10.22.22.0
    BGP routing table entry for 10:1:22.22.22.0/24, version 19
    Paths:(5 available, best #5)
    Multipath:eiBGP
    Advertised to non peer-group peers:
    10.0.0.2 10.0.0.3 10.0.0.4 10.0.0.5
    22
    10.0.0.2 (metric 20) from 10.0.0.4 (10.0.0.4)
    Origin IGP, metric 0, localpref 100, valid, internal, multipath
    Extended Community:0x0:0:0 RT:100:1 0x0:0:0
    Originator:10.0.0.2, Cluster list:10.0.0.4

  • LR 1.3.1 strange behaviour: L key adds keywords and removes pictures from collection

    After updating to LR 1.3.1 yesterday I found a very strange behaviour that I cannot explain: While in the Library module and looking at a picture from a collection (in loupe mode) I cycle through the different light modes using the L key. Then suddenly (after several hits of the L key) a keyword is added (not always the same keyword) and at the same time an unknown number of pictures is removed from the collection. The keyword is not added to the picture I was currently viewing, but to another one from the same collection. This has not happened before and I have no idea what is going on. I can restore the collection by relaunching an older catalog but of course this does not solve the problem. Can anybody help?
    (PC, Win XP prof SP 2, 4 Gig RAM)

    It is possible that instead of hitting the l key, or perhaps within the same sequence of hits your are in fact accidentally hitting the k key.
    K is the shortcut for "Add shortcut keyword"
    Of course you would have had to set that particular keyword at some point and it does not explain the different keywords being assigned.
    Unless the alt key was involved somehow and you were rating the images with 1-9 numbers. That would account for different keywords being assigned and would seem arbitrary.
    To check: look at one or two of the images that you may have rated using a number key and then look at the keyword set the keyword came from. Press the alt key and a number from 1-9 will appear next to the keyword. If they match then thats the answer.
    If you weren't rating the images this way then.....??
    Perhaps there is a fault with the keyboard itself rather than the program.
    David

  • BGP withdrawal convergence and shorter prefix

    An AS owns a /20. He advertises the /20 in BGP to ispA and ispB through policies of his own decision (but he definitely advertises the prefix, and the prefix is propagated). Within the /20 is a /24, which at times he wishes to advertise via ispC. ispC propagates said route upstream and traffic traverses ispC by virtue of longest prefix. No problem.
    Because the AS is just using prefix-lists and not route-maps, when he wants to move the /24 off of ispC and move it back into the regular /20 announcement, the /24 experiences downtime of up to 3 minutes because using a prefix-list means that this is actually a BGP withdrawal, which take longer to converge.
    What I don't get is, given the /20 is still propagated in the internet (routers still have it in their RIB, but install the /24 in the FIB as the preferred route), why should there be downtime.
    Let's say we have CarrierA -> CarrierB (carrierB is closer to ispC, and could theoretically be ispC). CarrierA hasn't received the update, so has the /24 and the /20 in his RIB, and the /24 in his FIB. Thus he sends traffic to CarrierB. CarrierB has received the update, so has the /20 only in his RIB and FIB. So should direct the traffic toward ispA and ispB.
    What am I missing here?

    Hi,
    ad
    "What I don't get is, given the /20 is still propagated in the internet (routers still have it in their RIB, but install the /24 in the FIB as the preferred route), why should there be downtime.")
    I can imagine following scenario:
    Let's say ispC is not peering directly to ispA nor ispB but there is ispD (or multiple other ISPs on the path) between them.
    So ispC has got the /20 prefix received from ispD in his RIB.
    So at the time you sent your /24 withdrawal to ispC, it removes the /24 fro his RIB.
    And let's say this withdrawal was not delivered to ispD yet.
    So what happeans at that moment when ispD receives a packet with a destination address within the /24 from the Internet?
    ispD still has got the /24 prefix in his RIB pointing to ispC. So it forwards the packet to ispC.
    But ispC has only /20 in his RIB pointing back to ispD!
    So there is a routing loop existing until  BGP gets converged by the /24 withdrawal delivery to ispD.
    This was just a very simple example.
    But showing your /24 might be not reachable from some parts on the Internet until the BGP is converged.
    Best regards,
    Milan

  • Remove prefix form IP phone display CME

    Hello
    I have a CME configured to add a prefix on the outgoing pots dial-peer. Connection to the PSTN is done via a E1.
    When we dial a number and the connection is made the ip phone displays the prefix followed by number we dialed. For example we dial 123456789 and the prefix is 99999 when the call is connected the ip phone displays 99999123456789.
    How can I remove the prefix from the phone's display?

    Have you tried to use a voice translation rule to add the prefix instead of doing it directly on the outgoing dial-peer?
    voice translation-rule 40
    rule 1 /^\(09[1236].......\)$/ /90790\1/
    voice translation-profile PSTN-OUT
    translate called 40
    dial-peer voice 290 pots
    corlist incoming call-Internas
    corlist outgoing call-Telemoveis
    description *** MOBILE - PSTN ***
    destination-pattern 09[1236].......
    direct-inward-dial
    port 0/1/0:15
    forward-digits 9
    translation-profile outgoing PSTN-OUT
    no prefix
    Please remember to rate helpful responses and identify helpful or correct answers.

  • Exception: Unable to add a URI or prefix string to dictionary

    I'm getting the "Unable to add a URI or prefix string to dictionary" exception when I was trying to import a 570MB XML document to the container. The exception goes away if I delete my indexes in the container and import the document again. I wonder if the exception implies that I'm out of space for the indexes? Does anyone have any suggestion for this problem if I don't want to remove the indexes? The queries are running too slow if I remove the indexes.
    Thank you very much!

    Hi,
    That's a bug in DB XML, which may be masking another error. To find out what the other error is, can you make a small change to DB XML, recompile and try to load the document again? In dbxml/src/dbxml/nodeStore/NsDoc.cpp can you find this function:
    int
    NsDoc::addIDForString(const char *strng, size_t len)
         DBXML_ASSERT(dict_);
         DBXML_ASSERT(::strlen(strng) == len);
         NameID id;
         int err = dict_->lookupIDFromStringName(oc_, strng, len, id, true);
         if (err != 0) {
              std::string error =  "Unable to add a URI or prefix string to dictionary: ";
              error += (std::string)strng;
              NsUtil::nsThrowException(XmlException::DATABASE_ERROR,
                              error.c_str(),
                              __FILE__, __LINE__);
         return (int)id.raw();
    }and change it to this:
    int
    NsDoc::addIDForString(const char *strng, size_t len)
         DBXML_ASSERT(dict_);
         DBXML_ASSERT(::strlen(strng) == len);
         NameID id;
         int err = dict_->lookupIDFromStringName(oc_, strng, len, id, true);
         if (err != 0) {
              throw XmlException(err);
         return (int)id.raw();
    }Thanks,
    John

  • Removing Prefix of members/alias in report Scripts

    I need to remove the pre fixes of all members/alias of a couple of dimensions through report script.( no need to modify the outline)
    For example Costcenters start with C_ , which needs to be removed when the report is created( I know everybody is going to ask why it's not used already in the alias, but there was a requirement for the prefix)
    I am using {RENAME } for specific members, but there are quite a few members with the prefix and I want to know if there's a way to remove them through report scripts
    Thanks.

    Another alternative frequently used, especially with report scripts is the use of alternate alias tables. There is the option to add up to, last time I checked, up to 8 alias tables. Most functionality is based on the "Default" alias table, but Report Scripts allows you select an alternate alias table by using "<OUTALTSELECT" by dimension. If you set the members aliases in the alternate table "Real_Cost_Center", then you could do...
    <OUTALTSELECT ("Real_Cost_Center")
    As a bonus, the usage of this alternate alias table means you can actually load data using the member name or any one of the aliases across all alias tables. The main "downfall" is the uniqueness requirement still applies to the alternate alias tables. Alternate alias tables are also frequently used when using any of the BI suite, where a given view/report/etc would benefit from short names.
    Just another alternative...
    Good Luck!
    Kevin

  • How can I add the "Profile Removal Password Payload"  to a configuration Profile?

    How can I add the “Profile Removal Password Payload”  to a configuration Profile?
    I’m not seeing an option to add this option when I edit the configuration profile within Apple Configurator.
    Do I have to edit the configuration profile(xml file) within a text editor?
    FYI:
    https://developer.apple.com/library/ios/featuredarticles/iPhoneConfigurationProf ileRef/Introduction/Introduction.html
    Profile Removal Password Payload
    The Removal Password payload is designated by specifying com.apple.profileRemovalPassword value as the PayloadType value.
    A password removal policy payload provides a password to allow users to remove a locked configuration profile from the device. If this payload is present and has a password value set, the device asks for the password when the user taps a profile's Remove button. This payload is encrypted with the rest of the profile.
    Key
    Type
    Value
    RemovalPassword
    String
    Optional. Specifies the removal password for the profile.

    You have found where it is stored in Thunderbird?
    Delete it. When Thunderbird needs it again, it will ask you for it.

  • Add and remove modules in Apache

    Is it possible to add and remove modules within Apache (actually compile an relink Apache) with a source download form Apache.org (1.3.28?) and incorporate the necessery modules and configuration from Oracle?. I have looked for some kind of documentation for this, but ended up with nothing. Can anybody explain this?.

    If you really understand apache and how oracle implements the apache server then yes you could add/remove modules if you have the source code from oracle. I dont think that you can download apache1.3.28 from apache.org and expect to use that source to build an executable that can plug into oracle.

  • Add and Remove Publishers from Replication Monitor using T SQL

    Is there any possibility to add an Publishers from Replication Monitor using T SQL.i am trying to configure the replication using T SQL..i can create all other steps but didn't find any way to add publisher to the replication monitor..kindly suggest..

    Hi Snehasis,
    Tom is correct, there is no T-SQL command to add a publisher to Replication Monitor.  However, the server from which you launch Replication Monitor will automatically be added to Replication Monitor if it is a Publisher.  Also, you can add additional
    Publishers using the Add Publisher dialog.
    This is covered in
    Add and Remove Publishers from Replication Monitor
    Brandon Williams (blog |
    linkedin)

  • Is there any ways to make Mail app show prefix and suffix in the address field?

    I apologize for any inconvenience that my poor English may cause.
    I would like to ask if there is a way to make Maill app show prefix and suffix in the address field.
    This is, in my culture, very important, especially for formal situations. When I call someone such as professors, bosses, I should put prefix after their names to show my respect. In Microsoft Outlook, there is a field called 'Display as'.
    http://www.slipstick.com/outlook/contacts/contact-address-book-options-settings/
    Therefore, I can choose how the name will be shown in my messages. For example, Prof. Kim instead of Kim. However, as far as I know, there isn't such options in Mail app. Is there any way that I can modify the way of displaying names in the address field in Mail app?

    As far as I can determine, that is only how you see the email address, not how it is sent.
    You can set up Prefixes and Suffixes in Contacts using the Add Field submenu of the Card menu:
    If you use the Edit Template... command, you can choose to always have the Prefix and Suffix show on new cards.
    However, I don't think Mail uses anything but First, Last for addressing emails.
    You can override the behavior by manually with:
    Prefix First Last Suffix <[email protected]>

  • Remove prefix  xml in OSB

    hi,
    i have this xml
    <operacionDummy xmlns="http://sample.services.dummy/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <arg0 xmlns="">
    <fechaOperacion>2010-04-29T16:17:34.687000-04:00</fechaOperacion>
    <valorAuditoriaNuevo>2</valorAuditoriaNuevo>
    </arg0>
    <arg1 xmlns="">
    <capitalSubscrito>100000.0</capitalSubscrito>
    <razonSocial>Razon Social3</razonSocial>
    </arg1>
    <ns1:ubicacionWebDTO xmlns:ns1="//sample.services.dummy/">
    <ns1:direccion>[email protected]</ns1:direccion>
    <ns1:idTipo>E</ns1:idTipo>
    <ns1:idUbicacionWeb>1</ns1:idUbicacionWeb>
    </ns1:ubicacionWebDTO>
    <ns1:telefonoDTO xmlns:ns1="//sample.services.dummy/" xsi:type="ns1:telefonoDTO">
    <ns1:codigoAcceso>0212</ns1:codigoAcceso>
    <ns1:idPais>1</ns1:idPais>
    <ns1:nombrePais>Venezuela</ns1:nombrePais>
    <ns1:numeroTelefonico>2222222</ns1:numeroTelefonico>
    <ns1:tipoUbicacion>O</ns1:tipoUbicacion>
    </ns1:telefonoDTO>
    </operacionDummy>
    i want this
    <operacionDummy xmlns="http://sample.services.dummy/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <arg0 xmlns="">
    <fechaOperacion>2010-04-29T16:17:34.687000-04:00</fechaOperacion>
    <valorAuditoriaNuevo>2</valorAuditoriaNuevo>
    </arg0>
    <arg1 xmlns="">
    <capitalSubscrito>100000.0</capitalSubscrito>
    <razonSocial>Razon Social3</razonSocial>
    </arg1>
    <arg2 xmlns:ns1="//sample.services.dummy/">
    <direccion>[email protected]</direccion>
    <idTipo>E</idTipo>
    <idUbicacionWeb>1</idUbicacionWeb>
    </arg2>
    <arg3 xmlns:ns1="//sample.services.dummy/" xsi:type="ns1:telefonoDTO">
    <codigoAcceso>0212</codigoAcceso>
    <idPais>1</idPais>
    <nombrePais>Venezuela</nombrePais>
    <numeroTelefonico>2222222</numeroTelefonico>
    <tipoUbicacion>O</tipoUbicacion>
    </arg3>
    </operacionDummy>
    Basically i want to remove the prefixes and make a rename...
    I want to acomplish this by actions in the osb or by XQuery transformations..
    Thanks in advance
    Edited by: gfandino on 29-abr-2010 16:38
    Edited by: gfandino on 29-abr-2010 16:38

    Xquery function of string replacement should be easiest. (definitely not suited for some use cases)
    Refer--
    Re: Namespace replace/rename issue in ALSB
    Re: OSB 10gR3, XSD's, namespaces, etc
    Manoj

  • Remove prefix L01 from olap universe

    HI Experts
    I need to remove L01 or prefix from the object name in olap universe ... i found tools- options in that there is replace preifx l00, l01 but i am nable to use it properly can some one help
    Example : if object is L01 business partner it should appear Business partner only it should not have L01
    regards

    You can find some handy tool Based on VBA to mass update the texts of your universe and replace the L00 and L01 prefixes. As far as i could find out in XI 3.1 currently is the only way, unless you want to do it manually one by one. Have a look at the links below. I can confirm that it works.
    [http://www.forumtopics.com/busobj/viewtopic.php?t=21029&postdays=0&postorder=asc&start=0]
    [Remove L01 prefix from Olap uni;

  • Remove prefix at the end?

    I'm using apple scripts with Automator to remove prefix from files. How can I remove prefix at the end? For example, the file name is test01.mov. I want it to be test.mov
    I have found this script but this script works in front. I'm not I programmer and I can't make any sense of the script.. Can any one help me out?! Thanks!
    repeat with thisFile in input
                        tell application "Finder"
                                  set fileName to name of (thisFile as alias)
                                  set fileName to (do shell script "echo " & quoted form of fileName & " | sed 's/^[0-9]*//'")
                                  set name of thisFile to fileName
                        end tell
              end repeat

    I can't help with Automator or scripts, but clarifying your question -
    A 'prefix at the end' is called a suffix. By definition, a prefix can only be at the beginning of something.
    And, I think you want to remove something from the end of the file's name (the filename) rather than from the file itself.

  • Remove Prefix

    Hi Experts,
          I am getting my XML output has
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:abc xmlns:ns1="http://abc.com">
       <ns1:First_Name>44</ns1:First_Name>
       <ns1:Last_Name>444</ns1:Last_Name>
    </ns1:Profile>
    BUt here in this XML I have to remove prefix ns1:
    and my desired output should be as below
    <?xml version="1.0" encoding="UTF-8"?>
    <abc xmlns="http://abc.com">
       <First_Name>44</First_Name>
       <Last_Name>444</Last_Name>
    </abc>
    I tried all the ways plz give me solution for this
    Thanks in Advance
    Regards,
    Prasad

    double check, if you have put parameter anonymizer.acceptNamespaces correctly.
    It should be
    http://abc.com ''
    '' = two apostrophes

Maybe you are looking for

  • PE7 using Win7 64 bit Home Premium

    Hello I bought a new PC in April which has Win7 64-bit Home Premium on it. Although I had previously intended using this PC solely for music production, I've decided to also use it for some fairly basic AVCHD editing. Will I have any problems using P

  • MacBook Air vs. 13.3" MacBook Pro for Photography

    For photography, is the new MacBook Air sufficient to handle basic editing in Lightroom. I've settled on either the 13" MacBook Pro or a solid state MacBook Air. The main attraction for the Air is its size. I really like the idea of a machine that sm

  • 2 way communication

    What is the best way to get 2 way communication with a servlet from a Java Web Start Application using http protocol? Is this something related with http 1.1?

  • Can't download 8_Recommended.zip

    When I attempt to download the Solaris 8 update cluster (8_Recommended.zip) I get the following error (the same error when I try to download individual patches as well): SunSolve Error You have encountered the following error(s) or warning(s): o An a

  • Apple id disabled message

    My iphone 4 now says apple id disabled. not sure what that means. my daughters 3 still logs on and downloads. i checked all my account info, seems correct. dont know if the problem is an adjustment in the phone or online. I updated to the latest soft