Hello,<br>
<br>
I've been trying to originate calls and capture the DIALSTAUS via the
manager API. The problem seems that the API doesn't expose enough data
to make a decision of what exactly happened to the call. It results in
something like this:<br>
<br>
Action: Originate<br>
Channel: IAX2/switch/1<number><br>
MaxRetries: 0<br>
WaitTime: 2<br>
Context: reminder<br>
Extension: s<br>
Priority: 1<br>
Callerid: "Reminder" <555-555-5555><br>
<br>
Event: Hangup<br>
Privilege: call,all<br>
Channel: IAX2/switch-3<br>
Uniqueid: 1132271784.42<br>
Cause: 0<br>
Cause-txt: Unknown<br>
<br>
this is far from detailed. Is there a way to extract the actual
DIALSTATUS such as ANSWER,BUSY,CONGESION, etc? The Cause doesn't seem
to return 0 when the call is terminted thru IAX2 or SIP. It seems that
it works on ZAP only.<br>
<br>
ScriptHead<br>