Archive for September, 2016
Matching dial-peer based on calling number for outgoing calls
I had problem matching IP phone with FXO assigned to it.
There is no short nor fast way to configure it. What I found is as below:
1. Match calling number with translation profile
dial-peer voice 37 voip translation-profile incoming FXO_17 answer-address 918852217
2. Profile uses translation for called number
voice translation-profile FXO_17 translate called 27
3. Translation changes prefix to unique for this action purpose
voice translation-rule 27 rule 1 /^0/ /57/
4.Last action is to match specific prefixed extension with port in that case FXO
dial-peer voice 47 pots destination-pattern 57T translate-outgoing called 27 port 0/2/3