Hi. I want all calls coming from 07917123456 when they are calling 12345 to be translated so they ring 56789 instead. However all calls not from 07917123456 which ring 12345 should go through to that number.
I have tried to get this working using a translation rule to change the called number and match the incoming number on a dial-peer using the answer-address, however my default incoming dial-peer uses incoming called-number . which means all calls are matching this.
Anyone have any ideas on a way of getting this working? Its a H323 gateway and I am using Call Manager 5.
voice translation-rule 99
rule 1 /^12345$/ /56789/
voice translation-profile DIVERT
translate called 99
dial-peer voice 99 pots
translation-profile incoming DIVERT
dial-peer voice 1 pots
description *** Default incoming ***
incoming called-number .