There are some scripts for this already in the box. Do "show call application voice summary" and "show call application voice" to see them all in detail.
You can also do without a script, just configure the DP with PIN as destination-pattern to be prepended to the number to dial.
Hope this helps, please rate post if it does!