can we do the parallel dialplan execution. i.e while playing some file to user do some background processing. and then play this processing results to user/caller.
Whilst there are tricks, using & in Dial() combined with local channels, for getting parallel execution of diaplans, I think your case woul best be done with AGI using a language that supports multi-threading.
can you team me that trick. i dont want to use AGI. i dont have much agi/programming experience and multitasking is the most difficult. it would be great if we can trick Dial plan. here is my case
- accept incomming call.
- get input from user.
- play music
- launch agi script to query database.
- stop music and play agi script query results.
if you think agi is the only way then can you give me some sample agi with multitasking.