Block a specific outgoing called prefix on a dial-peer with CCME 4.0

Answered Question
Feb 18th, 2008
User Badges:

Hi,


I have these dial peers:


dial-peer voice 1 pots

description trucades al exterior

destination-pattern 0T

direct-inward-dial

port 0/0/0

!

dial-peer voice 2 pots

description trucades cap a movils

destination-pattern 06T

port 0/1/0

prefix 6


I want to block de 06 calls to the dial-peer 1 when de dial-peer 2 is busy.


I could change the dial-peer 1 with two dial-peers:

dial-peer voice x pots

description trucades al exterior

destination-pattern 0[0-5]T

direct-inward-dial

port 0/0/0


dial-peer voice 1 pots

description trucades al exterior

destination-pattern 0[7-9]T

direct-inward-dial

port 0/0/0


But I need to mantain the second digit and I don't know the leng of "T" digits, so I can't use "forward-digits" or "prefix".


Thank you


Regards

Correct Answer by Paolo Bevilacqua about 9 years 1 month ago

In a range, means "excluding". That is regular expression in destination-pattern. many things aren't covered in courses, else these would never end.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (1 ratings)
Loading.
Paolo Bevilacqua Mon, 02/18/2008 - 09:40
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

Him can you explain in other words, what is the problem and what you're trying to do ?


Do you have a gms adapter on port 0/1/0 ?


You can work by exclusion:

destination-pattern 0[^6]....T


Also I think if you're in Brazil, mobile should be always eight digits.

gpellejaj Tue, 02/19/2008 - 00:06
User Badges:

Sorry for my poor explanation and english!


I have a BRI port and a FXO port, the BRI port is only for POTS calls, and de FXO is attached to a "trak" with a mobile sim, only for mobile calls.


The mobile prefix in spain is 6, so the dial-peer must have the destination-pattern 06T and "prefix 6" command, (0 dial for outside calls).


If the FXO port is busy, then the CCME try to route the call to the generic dial-peer 0T (for local,national, international, emergency, etc). The calls from POTS to mobile are more expensive than the mobile to mobile calls, so I want to only permit mobile calls to the dial-peer 06T and the other calls to the dial-peer 0T (excluding mobile calls)...


A little schema:


-----0T Calls (06T excluded)--------BRI----->


-----06T Calls (only mobile calls)----FXO---->


regards

Paolo Bevilacqua Tue, 02/19/2008 - 00:37
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

Hola,


the simplest way is to avoid calls to number starting with 6:


destination-pattern 0[^6]........



Also I see that span has fixed lenght plan, with a little of configuration it comes out very nice, avoiding T except for international and few other types.


Hope this helps, please rate post if it does!



gpellejaj Tue, 02/19/2008 - 01:01
User Badges:

Thank you for your answer p.bevilacqua.


Is the first time I see the "^" wildcard, is there any document explaining all destination-pattern wildcards? "^" is not present on the oficial IPTX course..


thank you

Correct Answer
Paolo Bevilacqua Tue, 02/19/2008 - 01:37
User Badges:
  • Super Gold, 25000 points or more
  • Hall of Fame,

    Founding Member

In a range, means "excluding". That is regular expression in destination-pattern. many things aren't covered in courses, else these would never end.

Actions

This Discussion