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

CUBE Calling Number length check

phaseholder
Level 1
Level 1

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?

5 Replies 5

Vivek Batra
VIP Alumni
VIP Alumni

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

Thanks for reply Vivek,

is there any way to define minimum and maximum values inside translation rule?

 

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

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.

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