[asterisk-bugs] [Asterisk 0014663]: [patch] Adding two variables for dynamic features (applicationmap)

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Mar 13 10:39:25 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14663 
====================================================================== 
Reported By:                tamiel
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14663
Category:                   Resources/res_features
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-03-13 10:36 CDT
Last Modified:              2009-03-13 10:39 CDT
====================================================================== 
Summary:                    [patch] Adding two variables for dynamic features
(applicationmap)
Description: 
Sometimes, I need to know the bridged channel name on the other side (the
unique channel name) and the last triggered dynamic feature.

For example, if the last dynamic feature is set, I will play one sound to
caller and if not set I will play nothing and hangup caller.

So I have set two new variables :
DYNAMIC_FEATURENAME : the Last triggered dynamic feature
DYNAMIC_PEERNAME  : the unique channel name on the other side

This variables are available on both side (caller and callee).


For example :

In features.conf, I have this applicationmap feature :
test => **,peer/caller,Hangup,16

In extensions.conf, I have :
exten => 1234,1,Set(__DYNAMIC_FEATURES=test)
exten => 1234,n,Dial(SIP/10.68.4.144,20)
exten => 1234,n,Verbose(0|${DYNAMIC_FEATURENAME})
exten => 1234,n,GotoIf($["${DYNAMIC_FEATURENAME}" = "test"]?10:50)
exten => 1234,10,PlayBack(demo-thanks)
exten => 1234,50,Hangup()

If caller press '**' during dial, callee is disconnected and caller goto
priority 10 and demo-thanks is played.
If dynamic feature is not set or not applicationmap "test", caller is
disconnected.






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

---------------------------------------------------------------------- 
 (0101724) tamiel (reporter) - 2009-03-13 10:39
 http://bugs.digium.com/view.php?id=14663#c101724 
---------------------------------------------------------------------- 
I have attached two patchs:
20090313_features.diff : for trunk
20090313_res_features.diff : for svn 1.4 branch 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-03-13 10:39 tamiel         Note Added: 0101724                          
======================================================================




More information about the asterisk-bugs mailing list