[asterisk-bugs] [Asterisk 0016090]: [patch] Add couple of useful extensions as examples

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Dec 2 16:04:21 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16090 
====================================================================== 
Reported By:                pprindeville
Assigned To:                lmadsen
====================================================================== 
Project:                    Asterisk
Issue ID:                   16090
Category:                   Core/Configuration
Reproducibility:            always
Severity:                   tweak
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.2.0-rc3 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-10-17 17:34 CDT
Last Modified:              2009-12-02 16:04 CST
====================================================================== 
Summary:                    [patch] Add couple of useful extensions as examples
Description: 
Add more examples to extensions.conf showing how to use various
functionality and provide commonly useful features.

====================================================================== 

---------------------------------------------------------------------- 
 (0114592) pprindeville (reporter) - 2009-12-02 16:04
 https://issues.asterisk.org/view.php?id=16090#c114592 
---------------------------------------------------------------------- 
I tried to bang on this a bit, but there are a couple of problems.

First, you need to do everything within the same extension, so the
sequence (for example) of:

exten => _X.,n,Goto(stdexten-${DIALSTATUS},1)           ; Jump based on
status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)

exten => stdexten-NOANSWER,1,Voicemail(${mbx},u)        ; If unavailable,
send to voicemail w/ unavail announce
exten => stdexten-NOANSWER,n,NoOp(Finish stdexten NOANSWER)
exten => stdexten-NOANSWER,n,Return()                   ; If they press #,
return to start


would need to become:


exten => _X.,n,Goto(stdexten-${DIALSTATUS})             ; Jump based on
status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)

exten => _X.,n(stdexten-NOANSWER),Voicemail(${mbx},u)   ; If unavailable,
send to voicemail w/ unavail announce
exten => _X.,n,NoOp(Finish stdexten NOANSWER)
exten => _X.,n,Return()                   ; If they press #, return to
start

or you wouldn't be able to append to it later since the extension _X.
would be interrupted by the stdexten-NOANSWER (et al) extensions.

Some might not find that palatable, so I'm not pushing this any further
for now. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-02 16:04 pprindeville   Note Added: 0114592                          
======================================================================




More information about the asterisk-bugs mailing list