is there any way to configure outbound dial-peer on the base of calling party number.
I have a requirement where i need to route all outgoing calls (from a particular phone number 2222) on specific PRI line (E0/0/0) and calls from other phones at other PRI line (E0/1/0)
This is the Jabber Clients community, you probably want to move this to other collaboration... or IP Telephony forums.
It will also help if you mention if this is CME or CUCM, and version.
Yes you can do this by making sure that the incoming dial-peer gets matched as per the ANI, add a prefix to called number and make a new pots dial-peer for the prefix.
(a). Create a translation rule for the called number which adds a prefix to it. For example if a user dials 91408 895 2345 it will translate it to 01191408 895 2345.
voice translation-rule 1
rule 1 /^.\(.*\)/ /111\1/
Voice translation profile called
translate called 1
(b) Create a VOIP dial-peer based on ANI
Dial-peer voice 1 voip
voice-class codec 1
translate calling 1
(c). Create a new POTS dial-peer for the E0/0/0 pri with destination pattern of 111T:
Dial-peer voice 2 pots
destination pattern 111T
once you set the destination-pattern 111T, the gateway will remove 111 from it and will route the call to PSTN.
(d). for the rest of the calls you can match the normal incoming dial-peer with incoming called-number .T.
dial-peer voice 3 VoIP
incoming called-number .
Dila-peer voice 4 pots
(Please rate if useful)