[asterisk-dev] Manager Interface Originate (ASYNC) - How to get the Originate Status

Matthew Nicholson mnicholson at digium.com
Mon Feb 16 14:42:17 CST 2009


On Thu, 2009-02-12 at 23:40 -0500, Aloysius Lloyd wrote:

>
> How Can I get the Originate Status using Async?  ANSWER, BUSY,
> NOANSWER etc......
> 

When using async, you should get an OriginateResponse event that has a
Reason field that corresponds to the values of the
ast_control_frame_type enum in frame.h (include/asterisk/frame.h).  This
field will tell you specifically what the result of the originate
operation was (busy, noanswer/ringing, answered, congestion, ...).

-- 
Matthew Nicholson
Digium, Inc. | Software Developer




More information about the asterisk-dev mailing list