cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
505
Views
0
Helpful
5
Replies

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

gpellejaj
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

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

View solution in original post

5 Replies 5

paolo bevilacqua
Hall of Fame
Hall of Fame

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.

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

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!

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

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