I am originating an call using local channel and then connects an call to play some Ivr and hung up.
But I want to dial multiple numbers at same time using local channel and then connects the answered calls to play an ivr from dialplan …
Is this possible If so what would be the syntax of doing this?
You seem to be under the misaprehension that Dial returns after the number has been called. It doesn’t return until the whole outgoing call has completed.
I would suggest you to use AMI Originate action to full fill your requirement.
Or you can use below asterisk dialplan and modify it according to your requirement .
In this example first extension & context is the extension and call context to which you want to originate the call. context2 & extension2 is using where you want to redirect the call once the originated channel will be answered.