Re: [asterisk-users] MACRO_CONTEXT equivalent for GoSub
Was looking for 1.8 and above. I ended up doing something similar to what you describe. Not terribly elegant, but it works. Mitch On 12/11/2012 04:03 PM, Danny Nicholas wrote: You don't state version, but I'm pretty sure this animal doesn't exist. What I did in 1.4 was to set a variable before the gosub so I could track it. Something like this Exten => s,n,Set(from=foo) Exten => s,n,gosub(showfoo,s,1) Exten => s,n,Set(from=bar) Exten => s,n,gosub(showfoo,s,1) [showfoo] Exten => s,1,verbose(called from ${from}) Exten => s,n,return() -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Mitch Claborn Sent: Tuesday, December 11, 2012 3:52 PM To: asterisk-users@lists.digium.com Subject: [asterisk-users] MACRO_CONTEXT equivalent for GoSub Is there an equivalent of MACRO_CONTEXT for a GoSub? Looking for a way to determine the name of the calling context. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] MACRO_CONTEXT equivalent for GoSub
You don't state version, but I'm pretty sure this animal doesn't exist. What I did in 1.4 was to set a variable before the gosub so I could track it. Something like this Exten => s,n,Set(from=foo) Exten => s,n,gosub(showfoo,s,1) Exten => s,n,Set(from=bar) Exten => s,n,gosub(showfoo,s,1) [showfoo] Exten => s,1,verbose(called from ${from}) Exten => s,n,return() -Original Message- From: asterisk-users-boun...@lists.digium.com [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Mitch Claborn Sent: Tuesday, December 11, 2012 3:52 PM To: asterisk-users@lists.digium.com Subject: [asterisk-users] MACRO_CONTEXT equivalent for GoSub Is there an equivalent of MACRO_CONTEXT for a GoSub? Looking for a way to determine the name of the calling context. -- Mitch -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] MACRO_CONTEXT equivalent for GoSub
Is there an equivalent of MACRO_CONTEXT for a GoSub? Looking for a way to determine the name of the calling context. -- Mitch -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users