[asterisk-bugs] [Asterisk 0011579]: [patch] Add a new function to check if a extension[, priority] exits in a context

noreply at bugs.digium.com noreply at bugs.digium.com
Wed Dec 19 01:56:55 CST 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11579 
====================================================================== 
Reported By:                irroot
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   11579
Category:                   Functions/NewFeature
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:            SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 90470 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             12-17-2007 09:11 CST
Last Modified:              12-19-2007 01:56 CST
====================================================================== 
Summary:                    [patch] Add a new function to check if a
extension[,priority] exits in a context
Description: 
this is a wrapper to ast_exists_extension and/or ast_findlabel_extension

this will be used to avoid goto falling off the map/hanging up ... if
there is no extension 

ie

exten =>t,n,
GotoIf(${ISEXTEN(ivr-${IVRCONT},${NEWUEXTEN})}?ivr-${IVRCONT},${NEWUEXTEN},1)

will work or continue on to next priority or alternate 
====================================================================== 

---------------------------------------------------------------------- 
 irroot - 12-19-07 01:56  
---------------------------------------------------------------------- 
id like to propose
 
ast_exists_context function in pbx.c unless there alternatives doing this
will allow access to the cache and ast_context that are exposed.

im not arround much at the moment silly season and all will do this
tommorow unless there objections.

i vote for DP_EXISTS shorter and the letters are worn off my keyboard
already ;)

another use of this function is to circumvent users pressing duplicates in
the IVR thinking there first press did not go through. check and if there
proceed with double otherwise if exits proceed with single press ....

thx for the intrest 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
12-19-07 01:56  irroot         Note Added: 0075693                          
======================================================================




More information about the asterisk-bugs mailing list