[Asterisk-Users] how to originate a call and capture it's DIALSTATUS

Script Head scripthead at gmail.com
Thu Nov 17 20:06:33 MST 2005


Hello,

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:

Action: Originate
Channel: IAX2/switch/1<number>
MaxRetries: 0
WaitTime: 2
Context: reminder
Extension: s
Priority: 1
Callerid: "Reminder" <555-555-5555>

Event: Hangup
Privilege: call,all
Channel: IAX2/switch-3
Uniqueid: 1132271784.42
Cause: 0
Cause-txt: Unknown

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.

ScriptHead
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20051117/fbd80533/attachment.htm


More information about the asterisk-users mailing list