<br><br><div class="gmail_quote">On Mon, Jul 25, 2011 at 11:59 AM, Gavin Henry <span dir="ltr"><<a href="mailto:gavin.henry@gmail.com">gavin.henry@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Why not bgapi and listen for the CHANNEL_ANSWER event?<br></blockquote><div>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.</div>
<div><br></div><div>-MC</div></div>