Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
New Member

Strange behavior of translation rule

Provider<----SIP trunk---->CUBE,c2911<--------H.323 gw------>CUCM

Sometimes Outgoing calls are successful,sometimes not...

Here dial-peer matched for outgoing calls

dial-peer voice 5 voip

description **Outgoing Call to SIP Trunk**

translation-profile outgoing SIP_Outgoing

destination-pattern 2110...........

session protocol sipv2

session target sip-server

voice-class codec 1 

dtmf-relay rtp-nte

no vad

Here translation rules and profile-

voice translation-rule 4

rule 1 /.*/ /4012310816/ type any national plan any isdn

!

voice translation-rule 22

rule 2 /^2110\(.*\)/ /\1/

!

voice translation-profile SIP_Outgoing

translate calling 4

translate called 22

!

here debug voice transl

for failed call.

Why

ruleset for calling number not found

Mar  7 21:20:57.167 MSK: //-1/00A88FE50B49/RXRULE/regxrule_stack_pop_RegXruleNumInfo: stack=0x2B904828; count=1

Mar  7 21:20:57.167 MSK: //-1/00A88FE50B49/RXRULE/regxrule_stack_pop_callinfo_internal: numinfo=0x2B914DA8

Mar  7 21:20:57.167 MSK: //-1/00A88FE50B49/RXRULE/regxrule_stack_push_RegXruleNumInfo_internal: stack=0x2B904828; count=1

Mar  7 21:20:57.167 MSK: //-1/00A88FE50B49/RXRULE/regxrule_profile_translate_internal: number=20512 type=national plan=isdn numbertype=calling

Mar  7 21:20:57.167 MSK: //-1/00A88FE50B49/RXRULE/regxrule_get_RegXrule: Invalid translation ruleset tag=0

Mar  7 21:20:57.167 MSK: //-1/00A88FE50B49/RXRULE/regxrule_profile_match_internal: Error: ruleset for calling number not found

Mar  7 21:20:57.167 MSK: //-1/00A88FE50B49/RXRULE/regxrule_profile_translate_internal: No match: number=20512 type=national plan=isdn

Mar  7 21:20:57.167 MSK: //-1/00A88FE50B49/RXRULE/regxrule_profile_translate_internal: number= type=UNKNOWN plan=UNKNOWN numbertype=redirect-called

Mar  7 21:20:57.167 MSK: //-1/00A88FE50B49/RXRULE/regxrule_get_RegXrule: Invalid translation ruleset tag=0

Mar  7 21:20:57.167 MSK: //-1/00A88FE50B49/RXRULE/regxrule_profile_match_internal: Error: ruleset for redirect-called number not found

Mar  7 21:20:57.167 MSK: //-1/00A88FE50B49/RXRULE/regxrule_profile_translate_internal: No match: number= type=UNKNOWN plan=UNKNOWN

Mar  7 21:20:57.167 MSK: //-1/00A88FE50B49/RXRULE/regxrule_profile_translate_internal: number=211089169002611 type=subscriber plan=isdn numbertype=called

Mar  7 21:20:57.167 MSK: //-1/00A88FE50B49/RXRULE/regxrule_match: No match; number=211089169002611 rule precedence=1

Mar  7 21:20:57.167 MSK: //-1/00A88FE50B49/RXRULE/regxrule_match: No match; number=211089169002611 rule precedence=2

Mar  7 21:20:57.167 MSK: //-1/00A88FE50B49/RXRULE/regxrule_match: No match; number=211089169002611 rule precedence=3

Mar  7 21:20:57.167 MSK: //-1/00A88FE50B49/RXRULE/regxrule_match: No match; number=211089169002611 rule precedence=4

Mar  7 21:20:57.167 MSK: //-1/00A88FE50B49/RXRULE/regxrule_profile_match_internal: No match found

Mar  7 21:20:57.167 MSK: //-1/00A88FE50B49/RXRULE/regxrule_profile_translate_internal: No match: number=211089169002611 type=subscriber plan=isdn

Mar  7 21:20:57.171 MSK: //-1/00A88FE50B49/RXRULE/regxrule_stack_pop_RegXruleNumInfo: stack=0x2B904828; count=1

Mar  7 21:20:57.171 MSK: //-1/00A88FE50B49/RXRULE/regxrule_stack_pop_callinfo_internal: numinfo=0x2B914DA8

Mar  7 21:21:02.167 MSK: //69/009A68DED547/SIP/Msg/ccsipDisplayMsg:

here debug voice transl

for successful call.

Mar  7 21:26:19.687 MSK: //-1/00F57CA5DD47/RXRULE/regxrule_stack_push_RegXruleNumInfo_internal: stack=0x2B903A10; count=1

Mar  7 21:26:25.119 MSK: //-1/007C10A9DE47/RXRULE/regxrule_stack_pop_RegXruleNumInfo: stack=0x2B9040F0; count=1

Mar  7 21:26:25.119 MSK: //-1/007C10A9DE47/RXRULE/regxrule_stack_pop_callinfo_internal: numinfo=0x2B91508C

Mar  7 21:26:25.119 MSK: //-1/007C10A9DE47/RXRULE/regxrule_stack_push_RegXruleNumInfo_internal: stack=0x2B9040F0; count=1

Mar  7 21:26:25.119 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_translate_internal: number=20512 type=national plan=isdn numbertype=calling

Mar  7 21:26:25.119 MSK: //-1/007C10A9DE47/RXRULE/regxrule_get_RegXrule: Invalid translation ruleset tag=0

Mar  7 21:26:25.119 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_match_internal: Error: ruleset for calling number not found

Mar  7 21:26:25.119 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_translate_internal: No match: number=20512 type=national plan=isdn

Mar  7 21:26:25.119 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_translate_internal: number= type=UNKNOWN plan=UNKNOWN numbertype=redirect-called

Mar  7 21:26:25.119 MSK: //-1/007C10A9DE47/RXRULE/regxrule_get_RegXrule: Invalid translation ruleset tag=0

Mar  7 21:26:25.119 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_match_internal: Error: ruleset for redirect-called number not found

Mar  7 21:26:25.119 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_translate_internal: No match: number= type=UNKNOWN plan=UNKNOWN

Mar  7 21:26:25.119 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_translate_internal: number=211089169002611 type=subscriber plan=isdn numbertype=called

Mar  7 21:26:25.119 MSK: //-1/007C10A9DE47/RXRULE/regxrule_match: No match; number=211089169002611 rule precedence=1

Mar  7 21:26:25.119 MSK: //-1/007C10A9DE47/RXRULE/regxrule_match: No match; number=211089169002611 rule precedence=2

Mar  7 21:26:25.119 MSK: //-1/007C10A9DE47/RXRULE/regxrule_match: No match; number=211089169002611 rule precedence=3

Mar  7 21:26:25.119 MSK: //-1/007C10A9DE47/RXRULE/regxrule_match: No match; number=211089169002611 rule precedence=4

Mar  7 21:26:25.119 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_match_internal: No match found

Mar  7 21:26:25.119 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_translate_internal: No match: number=211089169002611 type=subscriber plan=isdn

Mar  7 21:26:25.119 MSK: //-1/007C10A9DE47/RXRULE/regxrule_translate_exist_internal: no rule for callback-number number

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_translate_internal: number=20512 type=national plan=isdn numbertype=calling

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_match_internal: Matched with rule 1 in ruleset 4

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_match_internal: Matched with rule 1 in ruleset 4

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/sed_subst: Successful substitution; pattern=20512 matchPattern=^.* replacePattern=4012310816 replaced pattern=4012310816

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_subst_num_type: Match Type = any, Replace Type = national Input Type = national

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_subst_num_plan: Match Plan = any, Replace Plan = isdn Input Plan = isdn

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_translate_internal: xlt_number=4012310816 xlt_type=national xlt_plan=isdn

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_translate_internal: number=211089169002611 type=subscriber plan=isdn numbertype=called

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_match_internal: Matched with rule 2 in ruleset 22

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_match_internal: Matched with rule 2 in ruleset 22

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/sed_subst: Successful substitution; pattern=211089169002611 matchPattern=^2110*(.*) replacePattern=\1 replaced pattern=89169002611

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_subst_num_type: Match Type = none, Replace Type = none Input Type = subscriber

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_subst_num_plan: Match Plan = none, Replace Plan = none Input Plan = isdn

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_translate_internal: xlt_number=89169002611 xlt_type=subscriber xlt_plan=isdn

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_translate_internal: number= type=subscriber plan=isdn numbertype=redirect-target

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_get_RegXrule: Invalid translation ruleset tag=0

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_match_internal: Error: ruleset for redirect-target number not found

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_translate_internal: No match: number= type=subscriber plan=isdn

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_translate_internal: number= type=UNKNOWN plan=UNKNOWN numbertype=redirect-called

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_get_RegXrule: Invalid translation ruleset tag=0

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_match_internal: Error: ruleset for redirect-called number not found

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_profile_translate_internal: No match: number= type=UNKNOWN plan=UNKNOWN

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_stack_pop_RegXruleNumInfo: stack=0x2B9040F0; count=1

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_stack_pop_callinfo_internal: numinfo=0x2B91508C

Mar  7 21:26:25.123 MSK: //-1/007C10A9DE47/RXRULE/regxrule_stack_push_RegXruleNumInfo_internal: stack=0x2B9040F0; count=1

Mar  7 21:26:29.075 MSK: //-1/007C10A9DE47/RXRULE/regxrule_stack_pop_RegXruleNumInfo: stack=0x2B9040F0; count=1

Mar  7 21:26:29.075 MSK: //-1/007C10A9DE47/RXRULE/regxrule_stack_pop_callinfo_internal: numinfo=0x2B91508C

Mar  7 21:26:29.075 MSK: //-1/007C10A9DE47/RXRULE/regxrule_stack_pop_callinfo_internal: numinfo=0x0

1 ACCEPTED SOLUTION

Accepted Solutions
New Member

Strange behavior of translation rule

Hi,

From your debug it is not clear when this translation occurred - on voice source group, incoming or outgoing dial-peer.

Check that successfull and unsuccessfull calls goes through dial-peer 5 and if previous translations are correct, use test voice dial-peer. Try specifying patterns more strictly, for example ^2110...........$ and /^2110\(...........\)$/ /\1/, there is a difference between matching complete number and collecting number.

And if I not mistaken there is no type and plan fields in SIP.

Regards,

Maxim

2 REPLIES
New Member

Strange behavior of translation rule

Hi,

From your debug it is not clear when this translation occurred - on voice source group, incoming or outgoing dial-peer.

Check that successfull and unsuccessfull calls goes through dial-peer 5 and if previous translations are correct, use test voice dial-peer. Try specifying patterns more strictly, for example ^2110...........$ and /^2110\(...........\)$/ /\1/, there is a difference between matching complete number and collecting number.

And if I not mistaken there is no type and plan fields in SIP.

Regards,

Maxim

New Member

Strange behavior of translation rule

Hi,Maxim,

you was right.i missed dial-peer.

it used incoming default dial-peer 0.

Regards,

Mikhail

732
Views
0
Helpful
2
Replies
CreatePlease to create content