Translations question

Unanswered Question
Jul 30th, 2009

Hi all, I have a little question regarding translations. I just want to understand.

I'm having the configuration below to add 0 to the incoming CLID and do the translations to the DID.

voice translation-rule 2
rule 1 // /0\1/
!
voice translation-rule 4
rule 1 /70/ /2001/
!
voice translation-rule 5
rule 1 /72/ /2002/
!
voice translation-rule 6
rule 1 /79/ /2009/
!
voice translation-rule 7
rule 1 /73/ /1111/
rule 2 /74/ /1111/
rule 3 /75/ /1111/
rule 4 /76/ /1111/
rule 5 /77/ /1111/
rule 6 /78/ /1111/
!
voice translation-profile ADD_0_TO_CALLING_ID
translate calling 2
!
voice translation-profile BRI0_Called_4
translate called 4
!
voice translation-profile BRI1_Called_5
translate called 5
!
voice translation-profile BRI2-OP_Called_7
translate called 7
!        
voice translation-profile BRI3_Called_6
translate called 6
!

Then I have this dial-peer configuration:

!
dial-peer voice 3000 pots
description BRI0
translation-profile incoming ADD_0_TO_CALLING_ID
incoming called-number 70
direct-inward-dial
port 0/1/0
!
dial-peer voice 3001 pots
description BRI0
translation-profile incoming ADD_0_TO_CALLING_ID
incoming called-number 70
direct-inward-dial
port 0/1/1
!
dial-peer voice 3003 pots
description BRI1
translation-profile incoming ADD_0_TO_CALLING_ID
incoming called-number 72
direct-inward-dial
port 0/1/1
!
dial-peer voice 3002 pots
description BRI1
translation-profile incoming ADD_0_TO_CALLING_ID
incoming called-number 72
direct-inward-dial
port 0/1/0
!
dial-peer voice 3005 pots
description BRI3
translation-profile incoming ADD_0_TO_CALLING_ID
incoming called-number 79
direct-inward-dial
port 0/1/1
!
dial-peer voice 3004 pots
description BRI3
translation-profile incoming ADD_0_TO_CALLING_ID
incoming called-number 79
direct-inward-dial
port 0/1/0
!
dial-peer voice 3007 pots
description BRI2-OP
translation-profile incoming ADD_0_TO_CALLING_ID
incoming called-number 7[3-8]
direct-inward-dial
port 0/1/1
!
dial-peer voice 3006 pots
description BRI2-OP
translation-profile incoming ADD_0_TO_CALLING_ID
incoming called-number 7[3-8]
direct-inward-dial
port 0/1/0

With this configuration all the external incoming CLID add the leading 0 and all the DID ring on the correct set but when I open the debug voice translation I see some errors saying the 70 does not match any rule, but ring on the correct set.

Below is the debug printout:

000420: Jul 30 08:33:04.036: //-1/xxxxxxxxxxxx/RXRULE/regxrule_get_RegXrule: Invalid translation ruleset tag=0
000421: Jul 30 08:33:04.036: //-1/xxxxxxxxxxxx/RXRULE/regxrule_profile_subst_internal: Error: ruleset for called number not found
000422: Jul 30 08:33:04.048: //-1/6EF6E6F0801B/RXRULE/regxrule_stack_pop_RegXruleNumInfo: stack=0x8807BB34; count=1
000423: Jul 30 08:33:04.048: //-1/6EF6E6F0801B/RXRULE/regxrule_stack_pop_callinfo_internal: numinfo=0x86D25158
000424: Jul 30 08:33:04.048: //-1/6EF6E6F0801B/RXRULE/regxrule_stack_push_RegXruleNumInfo_internal: stack=0x8807BB34; count=1
000425: Jul 30 08:33:04.048: //-1/6EF6E6F0801B/RXRULE/regxrule_profile_translate_internal: number=228347000 type=unknown plan=unknown numbertype=calling
000426: Jul 30 08:33:04.048: //-1/6EF6E6F0801B/RXRULE/regxrule_profile_match_internal: Matched with rule 1 in ruleset 2
000427: Jul 30 08:33:04.048: //-1/6EF6E6F0801B/RXRULE/regxrule_profile_match_internal: Matched with rule 1 in ruleset 2
000428: Jul 30 08:33:04.048: //-1/6EF6E6F0801B/RXRULE/sed_subst: Successful substitution; pattern=228347000 matchPattern= replacePattern=0\1 replaced pattern=0228347000
000429: Jul 30 08:33:04.048: //-1/6EF6E6F0801B/RXRULE/regxrule_subst_num_type: Match Type = none, Replace Type = none Input Type = unknown
000430: Jul 30 08:33:04.048: //-1/6EF6E6F0801B/RXRULE/regxrule_subst_num_plan: Match Plan = none, Replace Plan = none Input Plan = unknown
000431: Jul 30 08:33:04.048: //-1/6EF6E6F0801B/RXRULE/regxrule_profile_translate_internal: xlt_number=0228347000 xlt_type=unknown xlt_plan=unknown
000432: Jul 30 08:33:04.048: //-1/6EF6E6F0801B/RXRULE/regxrule_profile_translate_internal: number= type=UNKNOWN plan=UNKNOWN numbertype=redirect-called
000433: Jul 30 08:33:04.048: //-1/6EF6E6F0801B/RXRULE/regxrule_get_RegXrule: Invalid translation ruleset tag=0
000434: Jul 30 08:33:04.048: //-1/6EF6E6F0801B/RXRULE/regxrule_profile_match_internal: Error: ruleset for redirect-called number not found
000435: Jul 30 08:33:04.048: //-1/6EF6E6F0801B/RXRULE/regxrule_profile_translate_internal: No match: number= type=UNKNOWN plan=UNKNOWN
000436: Jul 30 08:33:04.048: //-1/6EF6E6F0801B/RXRULE/regxrule_profile_translate_internal: number=72 type=unknown plan=unknown numbertype=called
000437: Jul 30 08:33:04.048: //-1/6EF6E6F0801B/RXRULE/regxrule_get_RegXrule: Invalid translation ruleset tag=0
000438: Jul 30 08:33:04.048: //-1/6EF6E6F0801B/RXRULE/regxrule_profile_match_internal: Error: ruleset for called number not found
000439: Jul 30 08:33:04.048: //-1/6EF6E6F0801B/RXRULE/regxrule_profile_translate_internal: No match: number=72 type=unknown plan=unknown
000440: Jul 30 08:33:04.052: //-1/6EF6E6F0801B/RXRULE/regxrule_stack_push_RegXruleNumInfo_internal: stack=0x8807BB34; count=2
000441: Jul 30 08:33:04.052: //-1/6EF6E6F0801B/RXRULE/regxrule_dp_translate: No profile found in peer 20006 for outgoing direction
000442: Jul 30 08:33:04.052: //-1/6EF6E6F0801B/RXRULE/regxrule_dp_translate: calling_number=0228347000 calling_octet=0x0
        called_number=72 called_octet=0x80
        redirect_number= redirect_type=-1 redirect_plan=-1      redirect_PI=-1 redirect_SI=-1
000443: Jul 30 08:33:04.052: //-1/6EF6E6F0801B/RXRULE/regxrule_vp_translate: No profile found in voice port or trunk group for outgoing direction
000444: Jul 30 08:33:04.052: //-1/6EF6E6F0801B/RXRULE/regxrule_vp_translate: calling_number=0228347000 calling_octet=0x0
        called_number=72 called_octet=0x80
        redirect_number= redirect_type=4294967295 redirect_plan=4294967295
000445: Jul 30 08:33:08.068: //-1/6EF6E6F0801B/RXRULE/regxrule_stack_pop_callinfo_internal: numinfo=0x0
000446: Jul 30 08:33:08.172: //-1/6EF6E6F0801B/RXRULE/regxrule_stack_pop_RegXruleNumInfo: stack=0x8807BB34; count=2
000447: Jul 30 08:33:08.172: //-1/6EF6E6F0801B/RXRULE/regxrule_stack_pop_callinfo_internal: numinfo=0x86D26878

I tried to put this configuration but with no luck since the best match always win:

!
dial-peer voice 2998 pots
description ADD_0
translation-profile incoming ADD_0_TO_CALLING_ID
incoming called-number 7.
direct-inward-dial
port 0/1/1
!
dial-peer voice 2999 pots
description ADD_0
translation-profile incoming ADD_0_TO_CALLING_ID
incoming called-number 7.
direct-inward-dial
port 0/1/0
!
dial-peer voice 3000 pots
description BRI0
translation-profile incoming BRI0_Called_4
incoming called-number 70
direct-inward-dial
port 0/1/0
!
dial-peer voice 3001 pots
description BRI0
translation-profile incoming BRI0_Called_4
incoming called-number 70
direct-inward-dial
port 0/1/1
!
dial-peer voice 3003 pots
description BRI1
translation-profile incoming BRI1_Called_5
incoming called-number 72
direct-inward-dial
port 0/1/1
!
dial-peer voice 3002 pots
description BRI1
translation-profile incoming BRI1_Called_5
incoming called-number 72
direct-inward-dial
port 0/1/0
!
dial-peer voice 3005 pots
description BRI3
translation-profile incoming BRI3_Called_6
incoming called-number 79
direct-inward-dial
port 0/1/1
!
dial-peer voice 3004 pots
description BRI3
translation-profile incoming BRI3_Called_6
incoming called-number 79
direct-inward-dial
port 0/1/0
!
dial-peer voice 3007 pots
description BRI2-OP
translation-profile incoming BRI2-OP_Called_7
incoming called-number 7[3-8]
direct-inward-dial
port 0/1/1
!
dial-peer voice 3006 pots
description BRI2-OP
translation-profile incoming BRI2-OP_Called_7
incoming called-number 7[3-8]
direct-inward-dial
port 0/1/0
!

So my question is, the configuration I done - the first one - is correct? Is this the best pratice? If not can you point me to the correct one?

Regarding he doesn't match the 70 but ring on the correct set it means his reading the voice translation rule, right?

Thanks on advance all of you.

Best Regards,

Jose Carlos Silva

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Steven Smith Thu, 07/30/2009 - 07:18

From the config you posted, I am not sure why it would be ringing the phones from what I think you want it to.  Might I suggest a different way of doing this.

voice translation-rule 2
rule 1 // /0\1/
!
voice translation-rule 4
rule 1 /70/ /2001/
rule 2 /72/ /2002/
rule 3 /79/ /2009/
rule 4 /73/ /1111/
rule 5 /74/ /1111/
rule 6 /75/ /1111/
rule 7 /76/ /1111/
rule 8 /77/ /1111/
rule 9 /78/ /1111/

voice translation-profile ADD_0_TO_CALLING_ID

translate calling 2

translate called 4

You don't have to seperate calling and called translations into different profiles.  There are times that you will want it this way, but it isn't a requirement.  Let me know if that helps.

Jose Carlos Silva Thu, 07/30/2009 - 07:32

Hi Steve, thanks for your suggestion.

Just for you to know, that has the CCA who done this configuration, I just add the ADD_0 and adapt.

I will follow your suggestion.

Best Regards,

Jose Carlos

Actions

This Discussion