<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>Re: [asterisk-dev] Feature Request: Macro
LOCK</title></head><body>
<div><br></div>
<div>At 4:01 PM -0700 2007/8/7, Nicholas Blasgen wrote:</div>
<blockquote type="cite" cite>MacroExclusive was discussed in my
orginal post.&nbsp; Can't make a Dial() application MacroExclusive or
no one will be able to execute the Dial() command.&nbsp; I was just
looking for a way to make it so part of my code was Exclusive and part
of it wasn't.&nbsp; I'm trying to keep all the code in the macro
defined section, but I can't tell Asterisk which sections should be
exclusive and which not.&nbsp; I guess I could always call an
exclusive macro inside a normal macro.<br>
</blockquote>
<blockquote type="cite" cite>On 8/7/07,<b> Russell Bryant</b> &lt;<a
href="mailto:russell@digium.com">russell@digium.com</a>&gt; wrote:<br>
<blockquote>Donny Kavanagh wrote:<br>
&gt; see func_lock in asterisk-trunk.<br>
</blockquote>
<blockquote>And the MacroExclusive application in Asterisk
1.4</blockquote>
</blockquote>
<div><br></div>
<div>A truly awful way of managing your problem might be to create a
number of identical macros, each with a different numeric suffix
(macro-foo-1, macro-foo-2, macro-foo-3, etc.) and then use the group
counter to keep track of what is the highest macro being used, and
then run MacroExclusive to jump and lock whatever the &quot;free&quot;
macro was.</div>
<div><br></div>
<div>Feel free to grind sand in your eyes and claim ignorance of this
particularly ugly method if you don't want to defile your dialplan in
this way.&nbsp; I know I wouldn't want to.</div>
<div><br></div>
<div>JT</div>
</body>
</html>