# "failed" extension DIALSTATUS in autocall files

**URL:** <https://community.asterisk.org/t/failed-extension-dialstatus-in-autocall-files/18202>\
**Category:** Asterisk General\
**Created:** [December 18, 2007, 8:40am UTC](https://community.asterisk.org/t/failed-extension-dialstatus-in-autocall-files/18202 "2007-12-18T08:40:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![astarot](https://avatars.discourse-cdn.com/v4/letter/a/b5ac83/32.png) [@astarot](https://community.asterisk.org/u/astarot)\
**Post date:** [December 18, 2007, 8:40am UTC](https://community.asterisk.org/t/failed-extension-dialstatus-in-autocall-files/18202/1 "2007-12-18T08:40:36Z")

</div>

I run Asterisk 1.2.12.1

In a \*.call file I have:  
Channel: SIP/123@UPLINK  
Context:test  
Extension: 456  
Priority:1

In extensions.conf:  
[test]  
exten =\> 456,1,Dial(Bla-Bla-Bla)  
exten =\> 456,2,Hangup()  
exten =\> failed,1,NoOp(${DIALSTATUS})  
exten =\> failed,2,DeadAGI(application\_to\_make\_decision)  
exten =\> failed,4,Hangup()

If asterisk cannot open SIP/123@UPLINK in \*.call file (e.g. - uplink connection problem) I want to get the reason in my “failed” extension to make a decision about re-dialing according to ${DIALSTATUS} (e.g. BUSY OR CANCEL - there is one situation, but CONGESTION is another one).

But ${DIALSTATUS} of “Channel: SIP/123@UPLINK” is empty in my “failed” extension. Further, in CDR I see only “Answered” or “Failed” status.

The question - how can I get the reason to proccess why SIP/123@UPLINK was not answered?

Thank you.
