02-18-2008 07:00 AM - edited 03-15-2019 08:53 AM
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
Solved! Go to Solution.
02-19-2008 01:37 AM
In a range, means "excluding". That is regular expression in destination-pattern. many things aren't covered in courses, else these would never end.
02-18-2008 09:40 AM
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.
02-19-2008 12:06 AM
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
02-19-2008 12:37 AM
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!
02-19-2008 01:01 AM
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
02-19-2008 01:37 AM
In a range, means "excluding". That is regular expression in destination-pattern. many things aren't covered in courses, else these would never end.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide