04-12-2019 04:50 PM
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.
04-12-2019 08:35 PM
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
04-14-2019 08:52 AM
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?
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