Hi all,

I came across a strange behaviour and don't know if this is correct or a bug.

Assume this code in a FastAGI-Script

my %input = $AGI->ReadParse();
my $ctx = $input{'context'};

and this extension.conf:

[context-a]
include => context-b
exten => foo, bar

[context-b]
exten => foo, 1, agi(agi://127.0.0.1:1234)


When the AGI script now is executed in context-b, the 'context' variable shows the entry-context 'context-a', although the script is executed out of 'context-b'.

Is this correct behaviour since context-b is included from context-a, or should the 'context' variable reflect the context, out of which the AGI script is executed?

Thanks,
Andy

Reply via email to