[svn-commits] tilghman: branch 1.6.2 r264783 - in /branches/1.6.2: ./ main/pbx.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu May 20 17:24:19 CDT 2010


Author: tilghman
Date: Thu May 20 17:24:16 2010
New Revision: 264783

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=264783
Log:
Merged revisions 264779 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r264779 | tilghman | 2010-05-20 17:23:32 -0500 (Thu, 20 May 2010) | 8 lines
  
  Let ExtensionState resolve dynamic hints.
  
  (closes issue #16623)
   Reported by: tilghman
   Patches: 
         20100116__issue16623.diff.txt uploaded by tilghman (license 14)
   Tested by: lmadsen
........

Modified:
    branches/1.6.2/   (props changed)
    branches/1.6.2/main/pbx.c

Propchange: branches/1.6.2/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.

Modified: branches/1.6.2/main/pbx.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.6.2/main/pbx.c?view=diff&rev=264783&r1=264782&r2=264783
==============================================================================
--- branches/1.6.2/main/pbx.c (original)
+++ branches/1.6.2/main/pbx.c Thu May 20 17:24:16 2010
@@ -3837,6 +3837,17 @@
 		return -1;                   /* No hint, return -1 */
 	}
 
+	if (e->exten[0] == '_') {
+		/* Create this hint on-the-fly */
+		ast_add_extension(e->parent->name, 0, exten, e->priority, e->label,
+			e->matchcid ? e->cidmatch : NULL, e->app, ast_strdup(e->data), ast_free_ptr,
+			e->registrar);
+		if (!(e = ast_hint_extension(c, context, exten))) {
+			/* Improbable, but not impossible */
+			return -1;
+		}
+	}
+
 	return ast_extension_state2(e);  /* Check all devices in the hint */
 }
 




More information about the svn-commits mailing list