[Asterisk-Users] Remember the incoming context?
Herchi Silviu
Silviu.Herchi at arcelor.com
Wed Apr 19 01:00:58 MST 2006
Hi
Have you tried using something like
Set(ORIGINAL_CHANNEL=from-sip)
in the original channel?
You can then use Dial(Local/number/${ORIGINAL_CHANNEL}).
Regards,
Silviu
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Edwin
Groothuis
Sent: mercredi 19 avril 2006 00:57
To: asterisk-users at lists.digium.com
Subject: [Asterisk-Users] Remember the incoming context?
Greetings,
Somewhere on my asterisk system, a calls come in in a certain context,
for example, from-sip or from-pstn.
Then the calls gets routed through the dialplan, and a macro gets
called, and another one and then the call needs to be redirected to
another number in the same initial context. And you can use
Dial(Local/number/initialcontext) for that.
Oops, this initial context is lost somewhere on the line.
Unless I'm very mistaken, there is no way to find out what the original
context was, is there?
Edwin
--
Edwin Groothuis | Personal website:
http://www.mavetju.org
edwin at mavetju.org | Weblog:
http://weblog.barnet.com.au/edwin/
_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --
Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list