# Dial function problem

**URL:** <https://community.asterisk.org/t/dial-function-problem/11244>\
**Category:** Asterisk Support\
**Created:** [December 26, 2006, 2:22pm UTC](https://community.asterisk.org/t/dial-function-problem/11244 "2006-12-26T14:22:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![naji](https://avatars.discourse-cdn.com/v4/letter/n/41988e/32.png) [@naji](https://community.asterisk.org/u/naji)\
**Post date:** [December 26, 2006, 2:22pm UTC](https://community.asterisk.org/t/dial-function-problem/11244/1 "2006-12-26T14:22:20Z")

</div>

hi all,

my dial function doesn’t jump to n+101 when the line is busy.  
in my test example n=1

exten =\> 6001,1,Dial(SIP/nAGI,10)  
exten =\> 6001,2,VoiceMail(u6001@default)  
exten =\> 6001,102,VoiceMail(b6001@default)

any idea?

thanks

---

<div class="post-metadata">

**Author:** ![Shmattie](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@Shmattie](https://community.asterisk.org/u/Shmattie)\
**Post date:** [December 26, 2006, 2:44pm UTC](https://community.asterisk.org/t/dial-function-problem/11244/2 "2006-12-26T14:44:26Z")

</div>

I believe that was the default behavior back in 1.0. However I believe in 1.2 that they switched away from using the +101 concept. You should instead access the status of the call via the $DIALSTATUS variable. You can learn more about it by typing command at the Asterisk console.`show application Dial`

If you have the samples installed, look in your extensions.conf for the [macro-stdexten] section. It has an example using $DIALSTATUS.

---

<div class="post-metadata">

**Author:** ![naji](https://avatars.discourse-cdn.com/v4/letter/n/41988e/32.png) [@naji](https://community.asterisk.org/u/naji)\
**Post date:** [December 26, 2006, 3:44pm UTC](https://community.asterisk.org/t/dial-function-problem/11244/3 "2006-12-26T15:44:48Z")

</div>

Thanks a lot for your help.

---

<div class="post-metadata">

**Author:** ![yusuf](https://avatars.discourse-cdn.com/v4/letter/y/c68b51/32.png) [@yusuf](https://community.asterisk.org/u/yusuf)\
**Post date:** [December 27, 2006, 10:57am UTC](https://community.asterisk.org/t/dial-function-problem/11244/4 "2006-12-27T10:57:31Z")

</div>

Hi,

you could revert back to the ‘n+101’ with autofallthrough=no in extensions.conf at the top.

---

<div class="post-metadata">

**Author:** ![IronHelix](https://avatars.discourse-cdn.com/v4/letter/i/da6949/32.png) [@IronHelix](https://community.asterisk.org/u/IronHelix)\
**Post date:** [December 27, 2006, 4:28pm UTC](https://community.asterisk.org/t/dial-function-problem/11244/5 "2006-12-27T16:28:10Z")

</div>

no to get the n+101 you need either the j flag or priorityjumping=yes. autofallthrough=no just makes people not get disconnected when they fall off the end of the dialplan

---

<div class="post-metadata">

**Author:** ![yusuf](https://avatars.discourse-cdn.com/v4/letter/y/c68b51/32.png) [@yusuf](https://community.asterisk.org/u/yusuf)\
**Post date:** [December 29, 2006, 8:18am UTC](https://community.asterisk.org/t/dial-function-problem/11244/6 "2006-12-29T08:18:06Z")

</div>

Hi,

thanks IronHelix for correcting me, I had it wrong 😃
