Music on hold duration in Dial()

Hello boys and girls,

Is there any way to set the music on hold duration through the dial() application?

When I forward a call to my mobile I want music playing during the external dial out. This takes around 10 seconds. After that time is up I would prefer the music to stop and let the caller hear the ring of the mobile phone.

I know the MusicOnHold() app accepts a duration parameter but that is no good in this instance. I need to pass the duration into the dial() somehow, or at least set it up before it reaches the Dial().
A typical dial example;

exten => 100,1,Dial(DAHDI/1/07656XXXXXX,30,m)

How can I make the musicOnHold stop playing after 10 seconds? - possible?