How can I block certains calls from the specific FXS ports?

Unanswered Question
Mar 4th, 2008

I have to block the use of dial-peer voice 9 voip from the voice-port 1/2, what technology shold I use? COR? but I can not find clear documentation for me, please help me thank you.

voice-port 1/0

cptone RU

timeouts wait-release 5

!

voice-port 1/1

cptone RU

timeouts wait-release 5

!

voice-port 1/2

cptone RU

timeouts wait-release 5

!

voice-port 1/3

cptone RU

timeouts wait-release 5

!

dial-peer cor custom

!

!

!

dial-peer voice 1 pots

destination-pattern 244

port 1/0

!

dial-peer voice 2 pots

destination-pattern 241

port 1/1

!

dial-peer voice 3 pots

destination-pattern 242

port 1/2

!

dial-peer voice 4 pots

destination-pattern 243

port 1/3

!

dial-peer voice 5 pots

destination-pattern 244

!

dial-peer voice 6 pots

destination-pattern 245

!

dial-peer voice 7 pots

destination-pattern 246

!

dial-peer voice 8 pots

destination-pattern 247

!

dial-peer voice 10 voip

description ---- Central Office ----

destination-pattern 1..

session target ipv4:192.168.254.1

codec g729r8 bytes 40

!

dial-peer voice 9 voip

description ---- Town destination ----

destination-pattern 9[1-6,9].....

session target ipv4:192.168.254.1

codec g729r8 bytes 40

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Brandon Buffin Wed, 03/05/2008 - 13:49

Here's one way to do this:

voice translation-rule 1

rule 1 reject /^9[1-69]/

voice translation-profile profile1

translate called 1

voice-port 1/2

translation-profile outgoing profile1

Hope this helps. If so, please rate the post.

Brandon

SludnevTN_2 Wed, 03/05/2008 - 23:58

dont know why but this did not help here is debug:

Mar 6 14:18:15.358: regxrule_get_profile_from_trunkgroup: Voice port 0x81F778CC does not belong to any trunk group

Mar 6 14:18:15.366: regxrule_stack_pop_RegXruleNumInfo: stack=0x82250E38; count=1

Mar 6 14:18:15.370: regxrule_stack_push_RegXruleNumInfo: stack=0x82250E38; count=0

Mar 6 14:18:15.370: regxrule_profile_translate: number=244 type=unknown plan=unknown numbertype=calling

Mar 6 14:18:15.370: regxrule_match: No match; number=244 rule precedence=1

Mar 6 14:18:15.370: regxrule_profile_match: No match found

Mar 6 14:18:15.370: regxrule_profile_translate: No match: number=244 type=unknown plan=unknown

Mar 6 14:18:15.370: regxrule_profile_translate: number= type=unknown plan=unknown numbertype=redirect-called

Mar 6 14:18:15.374: regxrule_get_RegXrule: Invalid translation ruleset tag=0

Mar 6 14:18:15.374: regxrule_profile_match: Error: ruleset for redirect-called number not found

Mar 6 14:18:15.374: regxrule_profile_translate: No match: number= type=unknown plan=unknown

Mar 6 14:18:16.454: regxrule_profile_translate: number=9 type=unknown plan=unknown numbertype=called

Mar 6 14:18:16.454: regxrule_match: No match; number=9 rule precedence=1

Mar 6 14:18:16.454: regxrule_profile_match: No match found

Mar 6 14:18:16.454: regxrule_profile_translate: No match: number=9 type=unknown plan=unknown

Mar 6 14:18:17.794: regxrule_profile_translate: number=92 type=unknown plan=unknown numbertype=called

Mar 6 14:18:17.794: regxrule_match: No match; number=92 rule precedence=1

Mar 6 14:18:17.794: regxrule_profile_match: No match found

_______________________________________

I have shanged one thing:

translation-rule 1

Rule 0 ^9 0

voice-port 1/2

translate called 1

I do not have any dial-peer that mathes 0, so the problem is solved. Thank you for an idea. Please tell me what is the difference between:

"translation rule" - works for me.

"voice translation rule" - did not worked.

Brandon Buffin Thu, 03/06/2008 - 05:52

The "translation-rule" command is an older command. The "voice translation-rule" command is the recommended way to manipulate digits and is more flexible. They also have slightly different syntax. That being said, if this config using "translation-rule" works, by all means use it.

Brandon

SludnevTN_2 Thu, 03/06/2008 - 16:44

Brandon, why "voice translation rule" did not work? How can I make them work? Thank you.

Brandon Buffin Fri, 03/07/2008 - 06:20

Using the previous config that I suggested, try changing the translation profile under the voice port to "translation-profile incoming profile1".

Brandon

Actions

This Discussion