cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1602
Views
0
Helpful
4
Replies

Dial-Peer selection on the base of ANI

bilaljaved
Level 1
Level 1

Dear Sir,


How can i divert one specific calling number ( ANI) to session target 2, when all other ANIs are going to session target 1 using voip dial peer?



Call is coming from pstn on pots and move to softswitch on voip dial-peer.


I have implemented following scenario...


My calling number is 512112152. Actually i rejected my ANI on rule 1000 and pass all other ANIs. then on rule 1001 i am passing my ANI. These two rules are shown below :


voice translation-rule 1000

rule 1 reject /^512112152/

rule 2 // // type any national plan any isdn

!

voice translation-rule 1001

rule 1 /512112152/ //



Then implemented these translation rules on translation profiles as :


voice translation-profile geo

translate calling 1001

voice translation-profile national

translate calling 1000

translate called 1550



Now pots dial peer is used to get the call from ANi from PSTN and dial peer is as :


dial-peer voice 102 pots

translation-profile incoming Remove-C

incoming called-number .T

direct-inward-dial

port 7/3:D


Now Voip dial-peers are used to out the call to two different session targets. Dial peer 1001 is used to route all other calls to session target 221.120.227.74 and dial-peer 9002 is used to route call from ANI 512112152 to session target 221.120.212.197. Both these dial-peers are as :


dial-peer voice 1001 voip

description Towards Advance VOIP

translation-profile outgoing national

preference 1

destination-pattern .T

voice-class codec 1002

session protocol sipv2

session target ipv4:221.120.227.74

dtmf-relay rtp-nte

fax-relay ecm disable

fax rate 14400

fax protocol t38 ls-redundancy 0 hs-redundancy 0 fallback none



!

dial-peer voice 9002 voip

description GEO PRI Diversion

translation-profile outgoing geo

answer-address 512112152

voice-class codec 1001

session protocol sipv2

session target ipv4:221.120.212.197

dtmf-relay rtp-nte

fax-relay ecm disable

fax rate 9600

fax protocol t38 ls-redundancy 0 hs-redundancy 0 fallback none


Now issue is that my call from ANI 512112152 is not reading dial-peer 9002 and is always reading 1001 as other call does.


Now please tell me which command is used to route calling number that is


1.answer address

2. destination pattern


And these commands used in which dial-peer that is pots or voip.


Please guide me more. Its not working.


Regards,

4 Replies 4

paolo bevilacqua
Hall of Fame
Hall of Fame

Confusingly anough, either should be working, because destination-paattern also matches ANI on incoming DPs.

However remember that if you use answer-address, then there is no so subsequent match search as tie-breaker, it is kind of strange but that's the way it works.

Hi Paolo,

there is only one incoming dial-peer and that is of POTS which is used to get all calls from PSTN irrespective of ANIs.

My issue is that one of my customer name GEO having its PRI 512112xxx. i want to divert all calls from this PRI to session target .197 of voip dial-peer 9002 but its not happening and all calls from PRI reading voip dial-peer 1001 and moving to session target .74

Please guide more.

Regards,

Bilal

torsten.brink
Level 1
Level 1

Hi Bilal,

I've seen that you have a translation on your pots Dialpeer for incoming, what about that rule?

"translation-profile incoming Remove-C"

Maybe you translate here something, so that you won't match your "answer adress Dialpeer"?

Cheers

Torsten

Sent from Cisco Technical Support iPhone App

Hi Torsten,

Thanks for your reply....

The translation profile which you are pointing out is only for removal of caharacter "C" as some of TDM exchanges send C with incoming number so we used that profile in pots dial-peer as :

voice translation-rule 1450

rule 1 /C/ //

!

voice translation-profile Remove-C

translate called 1450

Is this effect our answer address command used in dial-peer 9002 to divert ANI 512112152 to session target .197?

if not whats then, why 512112152 not reading 9002 voip dial-peer?

My only concern is that one of my customer name GEO having its PRI 512112xxx. i want to diver all calls from this PRI to session target .197 of voip dial-peer 9002 but its not happening and all calls from PRI reading voip dial-peer 1001 and moving to session target .74

Please guide more.

Regards,

Bilal

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: