25 Jul
2011
25 Jul
'11
7:25 p.m.
On Mon, Jul 25, 2011 at 11:59 AM, Gavin Henry <gavin.henry@gmail.com> wrote:
Why not bgapi and listen for the CHANNEL_ANSWER event?
Dealer's choice. You can totally do that if you so desire. It all depends on what the ultimate goal is. If you just need to have a few calls hit the dp, attempt bridge, then play messages based on failure types then the dialplan itself can handle it with just continue_on_fail and transfer apps. You can throw in a dp script if you have some specific logic you wish to apply. Keeps it clean and simple. However, if you are wanting to do some async stuff like real-time status updates, etc. then event socket w/ bgapi originates is definitely the way to go. -MC