Hello. I already tried to explain my problem ( forums.digium.com/viewtopic.php?t=15422 ) but now I reproduced it with simpler config.
In short: when I Dial(Local/1011) the actual call goes to SIP/1011 but feature macro sees BRIDGEPEER as Local/1011 and ChannelRedirect fails.
So,
feature.conf:
btfeat => *9,self/both,Macro,bridgetest
extensions.ael:
macro bridgetest() {
ChannelRedirect(${BRIDGEPEER},btcontext,1,1);
};
context btcontext {
1 => {
Answer;
Morsecode(SOS);
Hangup;
};
};
and then finally test extensions:
130 => {
Set(_DYNAMIC_FEATURES=btfeat);
Dial(SIP/1011);
};
131 => {
Set(_DYNAMIC_FEATURES=btfeat);
Dial(Local/1011);
};
I dial 130, ext 1011 answers, then I press *9 and 1011 hears SOS Morse code. Everything is fine.
Now I dial 131, ext 1011 answers, I press *9 and see:
-- Executing [s@macro-bridgetest:1] ChannelRedirect("SIP/1002-09412e38", "Local/1011@default-b618,1|btcontext|1|1") in new stack
[May 8 19:06:19] WARNING[19815]: app_channelredirect.c:82 asyncgoto_exec: No such channel: Local/1011@default-b618,1
Please help.
I consider this a bug but two of three bugs I filled appeared to be configuration issues. So I do not want doing it again :=)