Use the MACRO_CONTEXT and MACRO_EXTEN channel variables instead of the channel's...
commit533b6e1093150b27e3ab4b51e97a63473a8b464e
authormmichelson <mmichelson@614ede4d-c843-0410-af14-a771ab80d22e>
Tue, 29 Apr 2008 19:40:06 +0000 (29 19:40 +0000)
committermmichelson <mmichelson@614ede4d-c843-0410-af14-a771ab80d22e>
Tue, 29 Apr 2008 19:40:06 +0000 (29 19:40 +0000)
treeb3ce68cbf3c26a8d51ab39e2a4e27980e2aafb10
parent07085b4009f7e53021b1b336928c194f299bf9cb
Use the MACRO_CONTEXT and MACRO_EXTEN channel variables instead of the channel's macrocontext
and macroexten fields. This is needed because if macros are daisy-chained, the incorrect
context and extension are placed on the new channel. I also added locking to the channel prior
to accessing these variables as noted in trunk's janitor project file.

(closes issue #12549)
Reported by: darren1713
Patches:
      app_queue.c.macroextenpatch uploaded by darren1713 (license 116)
       (with modifications from me)
Tested by: putnopvut

git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@114848 614ede4d-c843-0410-af14-a771ab80d22e
apps/app_queue.c