Summary: | ASTERISK-13745: [patch] Adding two variables for dynamic features (applicationmap) | ||
Reporter: | Michael Ricordeau (tamiel) | Labels: | |
Date Opened: | 2009-03-13 10:36:49 | Date Closed: | 2009-10-21 18:49:00 |
Priority: | Major | Regression? | No |
Status: | Closed/Complete | Components: | Resources/res_features |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) 20090313_features.diff ( 1) 20090313_res_features.diff | |
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. | ||
Comments: | By: Michael Ricordeau (tamiel) 2009-03-13 10:39:25 I have attached two patchs: 20090313_features.diff : for trunk 20090313_res_features.diff : for svn 1.4 branch By: Digium Subversion (svnbot) 2009-08-26 18:13:58 Repository: asterisk Revision: 214309 U trunk/CHANGES U trunk/main/features.c ------------------------------------------------------------------------ r214309 | jpeeler | 2009-08-26 18:13:57 -0500 (Wed, 26 Aug 2009) | 12 lines Add two new dialplan variables when using features Added DYNAMIC_FEATURENAME which holds the last triggered dynamic feature. Added DYNAMIC_PEERNAME which holds the unique channel name on the other side and is set when a dynamic feature is triggered. (closes issue ASTERISK-13745) Reported by: tamiel Patches: 20090313_features.diff uploaded by tamiel (license 712) Tested by: tamiel ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=214309 By: Digium Subversion (svnbot) 2009-08-26 18:14:44 Repository: asterisk Revision: 214310 _U branches/1.6.0/ ------------------------------------------------------------------------ r214310 | jpeeler | 2009-08-26 18:14:43 -0500 (Wed, 26 Aug 2009) | 18 lines Blocked revisions 214309 via svnmerge ........ r214309 | jpeeler | 2009-08-26 18:13:19 -0500 (Wed, 26 Aug 2009) | 12 lines Add two new dialplan variables when using features Added DYNAMIC_FEATURENAME which holds the last triggered dynamic feature. Added DYNAMIC_PEERNAME which holds the unique channel name on the other side and is set when a dynamic feature is triggered. (closes issue ASTERISK-13745) Reported by: tamiel Patches: 20090313_features.diff uploaded by tamiel (license 712) Tested by: tamiel ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=214310 By: Digium Subversion (svnbot) 2009-08-26 18:15:01 Repository: asterisk Revision: 214311 _U branches/1.6.1/ ------------------------------------------------------------------------ r214311 | jpeeler | 2009-08-26 18:15:01 -0500 (Wed, 26 Aug 2009) | 18 lines Blocked revisions 214309 via svnmerge ........ r214309 | jpeeler | 2009-08-26 18:13:19 -0500 (Wed, 26 Aug 2009) | 12 lines Add two new dialplan variables when using features Added DYNAMIC_FEATURENAME which holds the last triggered dynamic feature. Added DYNAMIC_PEERNAME which holds the unique channel name on the other side and is set when a dynamic feature is triggered. (closes issue ASTERISK-13745) Reported by: tamiel Patches: 20090313_features.diff uploaded by tamiel (license 712) Tested by: tamiel ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=214311 By: Digium Subversion (svnbot) 2009-08-26 18:15:16 Repository: asterisk Revision: 214312 _U branches/1.6.2/ ------------------------------------------------------------------------ r214312 | jpeeler | 2009-08-26 18:15:16 -0500 (Wed, 26 Aug 2009) | 18 lines Blocked revisions 214309 via svnmerge ........ r214309 | jpeeler | 2009-08-26 18:13:19 -0500 (Wed, 26 Aug 2009) | 12 lines Add two new dialplan variables when using features Added DYNAMIC_FEATURENAME which holds the last triggered dynamic feature. Added DYNAMIC_PEERNAME which holds the unique channel name on the other side and is set when a dynamic feature is triggered. (closes issue ASTERISK-13745) Reported by: tamiel Patches: 20090313_features.diff uploaded by tamiel (license 712) Tested by: tamiel ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=214312 |