Hi,
Humm, this is interesting. I will experiment with that tonight as I have to
do a 2 stage n-way call transfer using applicationmap. Right now it partially
working but transfers the
wrong party (callee instead of caller) and I believe it is partly because of
the macro.
Thanks for the tip on GoSub.
Andre
Leif Madsen wrote:
On Thu, Mar 6, 2008 at 11:41 PM, Andre Courchesne - Consultant
<[EMAIL PROTECTED]> wrote:
Never mind, found it. The Read command does the job. For me at least.
You could also skip the whole Macro thing and start using GoSub()
(which uses MUCH less stack space, thus you can start doing nested
subroutines which call stack heavy dialplan functions like func_odbc
-- with macro... if you go two layers deep then call func_odbc you
crash Asterisk because you use up all the stack space (at least this
is how I understand it)).
In 1.6, you can even pass arguments to the GoSub() routine much like a
Macro(), but I just setup variables before I call my GoSub()'s in 1.4
(if using stock Asterisk, but there is a backport of app_stack on 1.2
and 1.4 to get the full 1.6 style app_stack applications --
http://svncommunity.digium.com/view/app_stack/).
I've used the backport pretty extensively and had a lot of the bugs
fixed in it, so that module is probably one of the more stable ones in
Asterisk (at least in my usage).
Macro()'s are dead to me :)
Enjoy!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]