I tried using this documentation from Cisco:
http://www.cisco.com/en/US/tech/tk652/tk90/technologies_configuration_example09186a00801bc341.shtml
But it didn't work because Call Manager Express was automatically creating dial-peers for a specific answer address and you can't change them.
I ended up assigning a translation profile and rule on the phone. So when you dial 9555124 it dials 195551234 and the dial peer sees the 19 in front of a number and drops the 19 and dials out the specific line the dial peer is assigned to. You can see an example of my commands below. Just make sure your dial peers don't end up dialing internal numbers.
This takes incoming calls from this port and routes them to the specific internal extension.
voice-port 0/0/0
connection plar opx 1234
description John Doe
caller-id enable
!
You will need to assign a translation profile to the phone.
ephone-dn 12 dual-line
number 1234
label 1234
description John Doe
name John Doe
call-forward busy 602
call-forward noan 602 timeout 10
translation-profile incoming Phone1
hold-alert 30 originator
!
This assigns the translation profile from the phone to a outgoing translation rule.
voice translation-profile Phone1
translate called 1
!
You will need to create a translation rule. This one takes an number that is dialed with a 9 in the beginning and replaces it with a 19.
voice translation-rule 1
rule 1 /^9/ /19/
!
This will take the 19T dial pattern and dial out on this specific port.
dial-peer voice 19 pots
description 1234
destination-pattern 19T
port 0/0/0
!
No comments:
Post a Comment