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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Edwin
Groothuis
Sent: mercredi 19 avril 2006 00:57
To: [email protected]
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
[EMAIL PROTECTED] | 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
_______________________________________________
--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