[Home]

Summary:ASTERISK-02070: Tiny patch to make app_dial return "CANCEL" when user press *
Reporter:lvazquez (lvazquez)Labels:
Date Opened:2004-07-20 12:49:20Date Closed:2008-01-15 15:03:11.000-0600
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) app_dial_aster_cancel.patch
Description:Currently the Dial option H makes disconnect the dialed call when the caller press * but the status returned in DIALSTATUS is NOANSWER so you have no way to distinguish if there was really no response (thus sending the user to voicemail) or if the user wants to cancel the call. With this patch Dial returns DIALSTATUS=CANCEL so you can send him to the main menu or wherever you want.

****** ADDITIONAL INFORMATION ******

Posible use:
exten => s,1,Dial(${ARG2},20,r)  
exten => s,2,Goto(s-${DIALSTATUS})
exten => s-CANCEL,1,GOTO(mainmenu,s,1)
exten => s-NOANSWER,1,Voicemail(u${ARG1})
exten => s-BUSY,1,Voicemail(b${ARG1})
Comments:By: Mark Spencer (markster) 2004-07-20 18:38:18

Fixed in CVS

By: Digium Subversion (svnbot) 2008-01-15 15:03:11.000-0600

Repository: asterisk
Revision: 3487

U   trunk/apps/app_dial.c

------------------------------------------------------------------------
r3487 | markster | 2008-01-15 15:03:11 -0600 (Tue, 15 Jan 2008) | 2 lines

Make '*' count as cancel (bug ASTERISK-2070)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=3487