cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
674
Views
0
Helpful
2
Replies

SIP Profile question - invalid incoming caller ID number change to private for outbound calls

hmalekib
Level 1
Level 1

Hi guys,

 

I'm trying to have our router setup so any calling going through it outgoing if the caller ID number is not correct (10 digits) it displayed private/anonymous.

Here is what I've done, I created a rule to change any caller ID that's not in correct format to 0000000000.

Now I need to create a sip profile so all calls with caller ID 0000000000 is going out private/anonymous.

 

Here is my config:

 

voice translation-rule 20
rule 1 /^\([2-9]..[2-9]......$\)/ /\1/
rule 2 /^1\([2-9]..[2-9]......$\)/ /\1/
rule 3 /^.*\([2-9]..[2-9]......$\)/ /\1/
rule 4 /^.*\(\)/ /0000000000\1/

 

dial-peer voice 2 voip
description Incoming call leg - Outbound calls
translation-profile incoming 20
preference 1
incoming called-number #.T
dtmf-relay rtp-nte
codec transparent
fax-relay ecm disable
fax-relay sg3-to-g3
fax rate 14400
fax nsf 000000
fax protocol t38 version 3 ls-redundancy 0 hs-redundancy 0 fallback pass-through g711ulaw
no vad

 

Any suggestions will be appreciated.

 

2 Replies 2

Hi @hmalekib 

 

 take a look at the Number Translation using Voice Translation Profile link.

 

 You can use the following commands (as an example):

 

voice translation-rule 3 
 rule 1 /123/ /456/ 

voice translation-profile profile1
 translate calling 3 

dial-peer voice 10 voip
 translation-profile incoming profile1

 

Hope this helps,

 Marcelo Morais

Hi Marcelo

 

I was able to change the number to 0000000000 now I need to restrict the caller ID using SIP profiles.

Any idea how to do that?