10-14-2015 02:21 AM - edited 03-17-2019 04:33 AM
Hello,
I have the following scheme:
Genesys>> --- SIP--- >>
CUCM>> --- SIP--- >> CUBE>> --- SIP --- > > Service Provider
Elastix>> --- SIP--- >>
Is it possible to make CUBE check the calling number length, before routing the call to service provider?
If length is 10 digit, then call can go thru, if not - drop the call and return cause-value 503 Forbidden?
10-14-2015 02:35 AM
This might be tricky. Let's try.
First dial-peer: Use 'answer-address' command to match the inbound dial-peer. Configure the pattern here which want to allow.
Second dial-peer: Configure other dial-peer with 'answer-address' which match all patterns other than you want to allow. Under this dial-peer, use 'call-block translation-profile incoming <profile_name>.
Configure the translation rule with patterns which you want to block, associate it with translation profile and assign it to second dial-peer.
There could be some other options as well to achieve the requirement, but I think this should work for you.
- Vivek
10-14-2015 03:00 AM
Thanks for reply Vivek,
is there any way to define minimum and maximum values inside translation rule?
10-14-2015 03:03 AM
You can't define minimum and maximum length explicitly inside the translation rule but it supports various wildcards which suffice the requirements in almost all situations OR with multiple translation-rules.
- Vivek
10-14-2015 11:36 PM
Hi Vivek,
I am afraid that sugпested solution will affect internal calls, for example call from Genesys to Asterisk and vice versa, wich are also traverses CUBE.
For OnNet calls we use short numbers (extensions), for OffNet calls we use E.164 numbers, both types of numbers are provisioned in all systems.
10-15-2015 12:08 AM
I can't say without having complete call flow with associated configuration. But dial-peers and translation profiles give enough granularity to take care of maximum cases, sometimes with lengthy configuration.
- Vivek
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