[asterisk-users] MACRO_CONTEXT equivalent for GoSub

Danny Nicholas
Tue, 11 Dec 2012 22:03:48 -0000

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-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Mitch Claborn
Sent: Tuesday, December 11, 2012 3:52 PM
To: asterisk-users at 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: