use the dialplan-pattern telephony-service command.
Create a translation-rule on the CME for the dial-peer pointing to the CUE. This translation rule is used to convert the E.164 number back to extension number format so it is acceptable to CUE.
This is a configuration example:
voice translation-rule 1
rule 1 /0115982\(....\)/ /\1/
!
!
voice translation-profile cue
translate called 1
dial-peer voice 100 voip
description Voicemail number
translation-profile outgoing cue
destination-pattern 01159829017
session protocol sipv2
session target ipv4:172.16.32.61
codec g711ulaw
no vad
For more information on configuring and troubleshooting CUE and CME, refer to these documents:
http://www.cisco.com/en/US/docs/voice_ip_comm/unity_exp/rel2_3/guiadmin/ch4_trbl.html