[asterisk-dev] h extension not considered within a macro for Asterisk 1.6.0.6 and later

Serge Berney s.berney at kinonline.net
Fri Jul 31 07:50:01 CDT 2009


Hello !

I create an issue #15623 and this is related to issue #14122 (v1.4.xx).

I check on source code and find this difference :
In version 1.4.xx, file "apps/app_macro.c", from line 486 have this code :

	/*!\note
	 * This section is used to restore a behavior that we mistakenly
	 * changed in issue #6176, then mistakenly reverted in #13962 and
	 * #13363.  A corresponding change is made in main/pbx.c, where we
	 * check this variable for existence, then look for the "h" extension
	 * in that context.
	 */
	if (ast_check_hangup(chan) || res < 0) {
		/* Don't need to lock the channel, as we aren't dereferencing emc.
		 * The intent here is to grab the deepest context, without overwriting
		 * in any above context. */
		const char *emc = pbx_builtin_getvar_helper(chan, "EXIT_MACRO_CONTEXT");
		if (!emc) {
			pbx_builtin_setvar_helper(chan, "EXIT_MACRO_CONTEXT", fullmacro);
		}
	}

No more code like this on v1.6.0.10 (around line 456).
What's the change who was made on "pbx.c" mentioned on code ?

Thanks in advance!

Serge Berney
Kin SA - www.kinonline.net


-----Message d'origine-----
De : asterisk-dev-bounces at lists.digium.com [mailto:asterisk-dev-bounces at lists.digium.com] De la part de Russell Bryant
Envoyé : mardi, 28. juillet 2009 00:10
À : Asterisk Developers Mailing List
Objet : Re: [asterisk-dev] h extension not considered within a macro for Asterisk 1.6.0.6 and later

Emrah wrote:
> H extension is still not executed within macros in Asterisk 1.6.2beta3.
> Any update?

Is there a bug report you can refer to?  If so, the status should be
clear there.  If there isn't, then nobody is working on it.

-- 
Russell Bryant
Digium, Inc. | Engineering Manager, Open Source Software
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org

_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

AstriCon 2009 - October 13 - 15 Phoenix, Arizona
Register Now: http://www.astricon.net

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev



More information about the asterisk-dev mailing list