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()