+ Reply to Thread
Results 1 to 4 of 4
  1. Junior Member Registered Member
    Join Date
    Nov 2014
    Posts
    4

    Certifications
    CCNA R/S, CCNA Voice, CVoice, CIPT1
    #1

    Question Translation Rule HELP

    Hello,

    I am attempting to get my router to accept a translation rule, but for some reason (I cannot see why) it is not accepting the match string. I have altered it in every way I can think of, but to my eyes, the syntax seems sound.

    DHCP_ROUTER(config-translate)#Rule 1 /^1919454\(....\)$/ /\1/

    DHCP_ROUTER(config-translate)#Rule 1 /^1919454\(....\)$/ /\1/


    Here is the output rejection


    DHCP_ROUTER(config-translate)#Rule 1 /^1919454\(....\)$/ /\1/
    Incorrect format for Translation Match Pattern
    regular expression must be of the form ^(\^)?(\+)?([0-9,A-F.*%?#]+)$

    Invalid match pattern string input /^1919454\(....\)$/


    From what I can tell, it doesn't like the input, but I don't see why.
    Reply With Quote Quote  

  2. SS -->
  3. Senior Member
    Join Date
    Jan 2012
    Posts
    1,237

    Certifications
    BS IT (CCNA R&S, Security, Voice) CCDA, MCP XP, A+, L+, P+, LPIC-1, SUSE CLA
    #2
    I just dropped your rule into my test router and it works as is:

    voice translation-rule 6
    rule 1 /^1919454\(....\)$/ /\1/

    R2811#test voice translation-rule 6 19194541234
    Matched with rule 1
    Original number: 19194541234 Translated number: 1234
    Original number type: none Translated number type: none
    Original number plan: none Translated number plan: none

    R2811#

    What hardware and IOS version are you running it on?
    In life you have to make your own opportunities. Don't let anyone stop you from your dreams to many negative people want you to fail because they can't succeed.
    Reply With Quote Quote  

  4. Junior Member Registered Member
    Join Date
    Nov 2014
    Posts
    4

    Certifications
    CCNA R/S, CCNA Voice, CVoice, CIPT1
    #3
    embarrassingly enough, I did not put it as a "voice translation rule" / I changed it, and of course, it works without issue. Thank you very much for the help.
    Reply With Quote Quote  

  5. Senior Member
    Join Date
    Jan 2012
    Posts
    1,237

    Certifications
    BS IT (CCNA R&S, Security, Voice) CCDA, MCP XP, A+, L+, P+, LPIC-1, SUSE CLA
    #4
    No problem always try to help
    In life you have to make your own opportunities. Don't let anyone stop you from your dreams to many negative people want you to fail because they can't succeed.
    Reply With Quote Quote  

+ Reply to Thread

Social Networking & Bookmarks