I'd like to add a prefix digit "0" to the ext phone numbers of the corporate contacts, imported from LDAP in CUP 7.0.2 (operating with CUPS 7.0.6 and CUCM 6.1.2). The "0" prefix is used to route the calls towards the PSTN. The application dial rules don't fit for my requirement 'cause my Voice Gateways already insert a zero digit prefix for incoming calls, so I can dial back the missed calls appearing on the UPC simply with a click.
The "0" digit prefix is needed for external calls and it's mandatory.
The customer don't want to modify the Phone Book database. Does anyone know if it's possible to add a prefix manipulating the Phone number field inside the CUPS or in the the UPC xml file, or in other any way?
Digit manipulation could happen in multiple places. If you're going to do it in multiple places, you'll have to consider the interoperability
For simple design, maintenance and troubleshooting, you should do digit manipulation in as fewer places as possible.
I'd recommend you use E.164 number in the phone book (LDAP). If your phone book follows E.164 standard, it'll be easier for application to do digit manipulation (ie. strip + and prefix appropriate access codes).
If your client says "I don't want to change this but I want that", just tell him "no pay, no gain".