If you dont mind digging in to the guts of asterisk a little bit, this has already been answered here:
hth Mike