Hold call until another endpoint answer call and Bridget them

hi gays.

i use ARI to call 2 endpoints and Bridget them.
i want to hold or play media or play MOH call1 until endpoint2 answer call and then Bridget them.
i write this plan but PlayBack, BackGround, MusicOnHold all of them block thread untill playing finished and then call endpoint2.

exten => 107,1,NoOp()
same => n,Answer()
same => n,MusicOnHold(default,10)
#same => n,BackGround(silence/2&hello-world)
same => n,Dial(Local/***@from_internal_testing,U(default^postAnswer^1))
same => n,Hangup()

Are you really using ARI (i.e. Asterisk REST API)? I do not see that you are calling Stasis application from the dialplan. However, this operation should be invoked before you hand over the control over your channel to ARI.

All the methods mentioned above are suppored by ARI in the context “Channels”. The related specification is available here: https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Channels+REST+API

yes, i dont want to control MOH with ARI (just use ARI to start call).
anyway to handle this operations in dialplan?

Generally in dialplan you can’t do two things at once. It executes in order, one thing at a time. There is an option to Dial though that can be used to play music on hold to the caller instead of ringing, though.

thank you,
m option in Dial application is what i need.