Posted by: Mudassir Ali | May 28, 2010

Change the Called Party number (DNIS) on the basis of Calling party (ANI)

Currently Being Moderated

Change the Called Party number (DNIS) on the basis of Calling party (ANI)

Here’s a sample config on how to change the Called Party number (DNIS) on the basis of Calling party (ANI):
 
                         192.168.7.30        7.29                                             7.30

(3012) Phone  —-  CUCM ———- GW ===================== CME—-Phone  (2001)

(3011)  Phone                                                                                          Phone (2003)   

 
 
Below is a sample  config based on above topology for changing DNIS on the basis on  ANI.

 
If GW (7.29) receives  call from 3012 for 211 call will be redirected to  2001

If GW (7.29) receives  call from 3011 for 211 call will be redirected to  2003

 
 
voice translation-rule  1

rule 1 /211/  /2001/

!

voice translation-rule  2

rule 1 /211/  /2003

 
!

!

voice  translation-profile 2001

translate called  1

!

voice  translation-profile 2002

translate called  2

!

 
dial-peer voice 2000  voip

destination-pattern  2…

session target  ipv4:192.168.7.30

 
dial-peer voice 2001  voip

translation-profile  incoming 2001

answer-address  3012

 
dial-peer voice 2002  voip

translation-profile  incoming 2002

answer-address  3011

 
dial-peer voice 3000  voip

destination-pattern  3…

session target  ipv4:192.168.7.13

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: