[cisco-voip] Using Translation Profiles to 'reject' calls through aDial Peer

Andrew Dignan andy at dignans.com
Mon Jan 31 14:31:26 EST 2005


Ok, here is how I finally got it working (although, I am REALLY interested
as to why it wasn't working the original way).

voice translation-rule 4840
rule 1 reject /^9/
!
!
voice translation-profile BlockCall
translate called 4840

Then on the dial-peer that points to the fxs port that the analog phone is
hanging off of:

dial-peer voice 4840 pots
call-block translation-profile incoming BlockCall
call-block disconnect-cause incoming call-reject
destination-pattern 4840
port 1/0/0

That will block that phone from dialing any numbers that start with 9.  I
should have been able to block the call at the outbound dial-peer level
based on the calling number but I guess this will do for now.

> Can't find anything related to "Skipping a call block rule" on CCO.
>
> *Jan 31 17:47:15.347:
> //-1/F8DC8E0E803E/RXRULE/regxrule_profile_translate_internal:
> number=91847903 type=unknown plan=unknown numbertype=called
> *Jan 31 17:47:15.347: //-1/F8DC8E0E803E/RXRULE/regxrule_match: Skipping a
> call block rule; number=91847903 rule precedence=1
> *Jan 31 17:47:15.347: //-1/F8DC8E0E803E/RXRULE/regxrule_match: Skipping a
> call block rule; number=91847903 rule precedence=2
> *Jan 31 17:47:15.347:
> //-1/F8DC8E0E803E/RXRULE/regxrule_profile_match_internal: No match found
> *Jan 31 17:47:15.351:
> //-1/F8DC8E0E803E/RXRULE/regxrule_profile_translate_internal: No match:
> number=91847903 type=unknown plan=unknown
> *Jan 31 17:47:15.647:
> //-1/F8DC8E0E803E/RXRULE/regxrule_profile_translate_internal:
> number=918479038 type=unknown plan=unknown numbertype=called
> *Jan 31 17:47:15.647: //-1/F8DC8E0E803E/RXRULE/regxrule_match: Skipping a
> call block rule; number=918479038 rule precedence=1
> *Jan 31 17:47:15.647: //-1/F8DC8E0E803E/RXRULE/regxrule_match: Skipping a
> call block rule; number=918479038 rule precedence=2
> *Jan 31 17:47:15.647:
> //-1/F8DC8E0E803E/RXRULE/regxrule_profile_match_internal: No match found
> *Jan 31 17:47:15.647:
> //-1/F8DC8E0E803E/RXRULE/regxrule_profile_translate_internal: No match:
> number=918479038 type=unknown plan=unknown
> *Jan 31 17:47:15.807:
> //-1/F8DC8E0E803E/RXRULE/regxrule_profile_translate_internal:
> number=9184790389 type=unknown plan=unknown numbertype=called
> *Jan 31 17:47:15.807: //-1/F8DC8E0E803E/RXRULE/regxrule_match: Skipping a
> call block rule; number=9184790389 rule precedence=1
> *Jan 31 17:47:15.807: //-1/F8DC8E0E803E/RXRULE/regxrule_match: Skipping a
> call block rule; number=9184790389 rule precedence=2
> *Jan 31 17:47:15.807:
> //-1/F8DC8E0E803E/RXRULE/regxrule_profile_match_internal: No match found
> *Jan 31 17:47:15.807:
> //-1/F8DC8E0E803E/RXRULE/regxrule_profile_translate_internal: No match:
> number=9184790389 type=unknown plan=unknown
> *Jan 31 17:47:15.968:
> //-1/F8DC8E0E803E/RXRULE/regxrule_profile_translate_internal:
> number=91847903895 type=unknown plan=unknown numbertype=called
> *Jan 31 17:47:15.968: //-1/F8DC8E0E803E/RXRULE/regxrule_match: Skipping a
> call block rule; number=91847903895 rule precedence=1
> *Jan 31 17:47:15.968: //-1/F8DC8E0E803E/RXRULE/regxrule_match: Skipping a
> call block rule; number=91847903895 rule precedence=2
> *Jan 31 17:47:15.968:
> //-1/F8DC8E0E803E/RXRULE/regxrule_profile_match_internal: No match found
> *Jan 31 17:47:15.968:
> //-1/F8DC8E0E803E/RXRULE/regxrule_profile_translate_internal: No match:
> number=91847903895 type=unknown plan=unknown
> *Jan 31 17:47:16.128:
> //-1/F8DC8E0E803E/RXRULE/regxrule_profile_translate_internal:
> number=918479038951 type=unknown plan=unknown numbertype=called
> *Jan 31 17:47:16.128: //-1/F8DC8E0E803E/RXRULE/regxrule_match: Skipping a
> call block rule; number=918479038951 rule precedence=1
> *Jan 31 17:47:16.128: //-1/F8DC8E0E803E/RXRULE/regxrule_match: Skipping a
> call block rule; number=918479038951 rule precedence=2
> *Jan 31 17:47:16.128:
> //-1/F8DC8E0E803E/RXRULE/regxrule_profile_match_internal: No match found
> *Jan 31 17:47:16.128:
> //-1/F8DC8E0E803E/RXRULE/regxrule_profile_translate_internal: No match:
> number=918479038951 type=unknown plan=unknown
> *Jan 31 17:47:16.132:
> //-1/F8DC8E0E803E/RXRULE/regxrule_stack_push_RegXruleNumInfo:
> stack=0x83E4F8F8; count=1
>
>> Yeah, no matter which place I apply it (dial-peer, voice-por) I get
>> "Skipping a call block rule" in the debug.
>>
>>> I don't understand why this isn't working.  I am trying to block
>>> outgoing
>>> calls using voice-translation profiles:
>>>
>>> voice translation-rule 1
>>>  rule 1 reject /^2000/ type any plan any
>>> !
>>> !
>>> voice translation-profile CallBlock
>>>  translate calling 1
>>> !
>>>
>>> dial-peer voice 9 pots
>>>  translation-profile outgoing CallBlock
>>>  destination-pattern 9T
>>>  direct-inward-dial
>>>  port 0/0:23
>>>  forward-digits all
>>> !
>>> DignanHome#test voice translation-rule 1 2000
>>> 2000 blocked on rule 1
>>>
>>> As you can see the rule checks out and I have it correctly applied to
>>> the
>>> dial peer (I have remove ALL other dial peers to ensure it is going out
>>> this dial peer).  It is still allowing calls to go out this dial peer
>>> with
>>> a calling number of 2000 (I have tried /2000/ and /^2000/).  Also,
>>> debug
>>> voice translation rule shows the correct calling number:
>>>
>>> Calling Number=2000, TON=Unknown, NPI=Unknown,
>>>
>>> Debug voice translation profile also shows this, why?
>>>
>>> Jan 31 15:52:12.114:
>>> //-1/E6C05F6282DD/RXRULE/regxrule_get_profile_from_voiceport_internal:
>>> Found profile CallerID defined on voice-port
>>> Jan 31 15:52:12.114:
>>> //-1/E6C05F6282DD/RXRULE/regxrule_profile_translate_internal:
>>> number=2000
>>> type=unknown plan=unknown numbertype=calling
>>> Jan 31 15:52:12.114: //-1/E6C05F6282DD/RXRULE/regxrule_match: Skipping
>>> a
>>> call block rule; number=2000 rule precedence=1
>>>
>>> Why is it "Skipping a call block rule"
>>> _______________________________________________
>>> cisco-voip mailing list
>>> cisco-voip at puck.nether.net
>>> https://puck.nether.net/mailman/listinfo/cisco-voip
>>>
>>
>> _______________________________________________
>> cisco-voip mailing list
>> cisco-voip at puck.nether.net
>> https://puck.nether.net/mailman/listinfo/cisco-voip
>>
>
> _______________________________________________
> cisco-voip mailing list
> cisco-voip at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-voip
>



More information about the cisco-voip mailing list