Here comes some debug info.
This is what I get on the Manager Console:
-- Executing Dial("Local/5@DIALER-2b7d,2", "CAPI/ISDN1/13|20") in new stack
-- Called ISDN1/13
-- CAPI/ISDN1/13-2f is making progress passing it to Local/5@DIALER-2b7d,2
-- CAPI/ISDN1/13-2f is ringing
-- CAPI/ISDN1/13-2f answered Local/5@DIALER-2b7d,2
> Channel Local/5@DIALER-2b7d,1 was answered.
-- Executing UserEvent("Local/5@DIALER-2b7d,1", "CallResult|concatParams: ANSWER!13") in new stack
-- Executing Wait("Local/5@DIALER-2b7d,1", "10") in new stack
== Spawn extension (DIALER, 5, 1) exited non-zero on 'Local/5@DIALER-2b7d,2'
WARNING[8477]: pbx.c:2405 __ast_pbx_run: Timeout, but no rule 't' in context 'DIALER'
== ISDN1: CAPI Hangingup
> CAPI INFO 0x3490: Normal call clearing
Especially the line " == Spawn extension (DIALER, 5, 1) exited non-zero on " looks suspicious to me, but I don’t really understand it. It looks like after the Dial command I have 2 calls walking through the Dial Plan. Well, since the Dial command is described as “establish a new outgoing connection on a channel, and then link it to the existing input channel” this makes sense, but this just isn’t what I want to do: I want to start a call and if it’s answered I want to forward it to a conference room, if it’s unsuccessful I want to know the Dial status. So far that works but it looks like from the moment with the suspicious line above, the initiated call doesn’t trigger Manager Events anymore. The Timeout at the end is not the problem, the problem is that I hung up the call before and did not receive the corresponding Manager Event.
Here are the Manager Events I receive from pickung up the call until hanging up (the latter unfortunately not triggering an event). Again, just ignore the UserEventCallResult:
[code]DEBUG - Got name [event], value: [Newstate]
DEBUG - Got name [privilege], value: [call,all]
DEBUG - Got name [channel], value: [CAPI/ISDN1/13-2f]
DEBUG - Got name [state], value: [Up]
DEBUG - Got name [callerid], value: [5]
DEBUG - Got name [calleridname], value: []
DEBUG - Got name [uniqueid], value: [1148916742.157]
DEBUG - Got name [event], value: [Newstate]
DEBUG - Got name [privilege], value: [call,all]
DEBUG - Got name [channel], value: [Local/5@DIALER-2b7d,2]
DEBUG - Got name [state], value: [Up]
DEBUG - Got name [callerid], value: []
DEBUG - Got name [calleridname], value: []
DEBUG - Got name [uniqueid], value: [1148916742.156]
DEBUG - Got name [event], value: [Link]
DEBUG - Got name [privilege], value: [call,all]
DEBUG - Got name [channel1], value: [Local/5@DIALER-2b7d,2]
DEBUG - Got name [channel2], value: [CAPI/ISDN1/13-2f]
DEBUG - Got name [uniqueid1], value: [1148916742.156]
DEBUG - Got name [uniqueid2], value: [1148916742.157]
DEBUG - Got name [callerid1], value: [(null)]
DEBUG - Got name [callerid2], value: [5]
DEBUG - Got name [event], value: [Newchannel]
DEBUG - Got name [privilege], value: [call,all]
DEBUG - Got name [channel], value: [Local/5@DIALER-2b7d,1]
DEBUG - Got name [state], value: [Up]
DEBUG - Got name [callerid], value: []
DEBUG - Got name [calleridname], value: []
DEBUG - Got name [uniqueid], value: [1148916742.155]
DEBUG - Got name [event], value: [OriginateSuccess]
DEBUG - Got name [privilege], value: [call,all]
DEBUG - Got name [actionid], value: [31278839_3#actionID1]
DEBUG - Got name [channel], value: [local/5@DIALER]
DEBUG - Got name [exten], value: [2]
DEBUG - Got name [reason], value: [4]
DEBUG - Got name [uniqueid], value: [1148916742.155]
DEBUG - Got name [event], value: [Newexten]
DEBUG - Got name [privilege], value: [call,all]
DEBUG - Got name [channel], value: [Local/5@DIALER-2b7d,1]
DEBUG - Got name [context], value: [DIALER]
DEBUG - Got name [extension], value: [2]
DEBUG - Got name [priority], value: [1]
DEBUG - Got name [application], value: [UserEvent]
DEBUG - Got name [appdata], value: [CallResult|result: ANSWER!13]
DEBUG - Got name [uniqueid], value: [1148916742.155]
DEBUG - Got name [event], value: [UserEventCallResult]
DEBUG - Got name [privilege], value: [user,all]
DEBUG - Got name [channel], value: [Local/5@DIALER-2b7d,1]
DEBUG - Got name [uniqueid], value: [1148916742.155]
DEBUG - Got name [result], value: [ANSWER!13]
DEBUG - Got name [event], value: [Newexten]
DEBUG - Got name [privilege], value: [call,all]
DEBUG - Got name [channel], value: [Local/5@DIALER-2b7d,1]
DEBUG - Got name [context], value: [DIALER]
DEBUG - Got name [extension], value: [2]
DEBUG - Got name [priority], value: [2]
DEBUG - Got name [application], value: [Wait]
DEBUG - Got name [appdata], value: [10]
DEBUG - Got name [uniqueid], value: [1148916742.155]
DEBUG - Got name [event], value: [Rename]
DEBUG - Got name [privilege], value: [call,all]
DEBUG - Got name [oldname], value: [CAPI/ISDN1/13-2f]
DEBUG - Got name [newname], value: [CAPI/ISDN1/13-2f]
DEBUG - Got name [uniqueid], value: [1148916742.157]
DEBUG - Got name [event], value: [Rename]
DEBUG - Got name [privilege], value: [call,all]
DEBUG - Got name [oldname], value: [Local/5@DIALER-2b7d,1]
DEBUG - Got name [newname], value: [CAPI/ISDN1/13-2f]
DEBUG - Got name [uniqueid], value: [1148916742.155]
DEBUG - Got name [event], value: [Unlink]
DEBUG - Got name [privilege], value: [call,all]
DEBUG - Got name [channel1], value: [Local/5@DIALER-2b7d,2]
DEBUG - Got name [channel2], value: [CAPI/ISDN1/13-2f]
DEBUG - Got name [uniqueid1], value: [1148916742.156]
DEBUG - Got name [uniqueid2], value: [1148916742.157]
DEBUG - Got name [callerid1], value: [(null)]
DEBUG - Got name [callerid2], value: [5]
DEBUG - Got name [event], value: [Rename]
DEBUG - Got name [privilege], value: [call,all]
DEBUG - Got name [oldname], value: [CAPI/ISDN1/13-2f]
DEBUG - Got name [newname], value: [Local/5@DIALER-2b7d,1]
DEBUG - Got name [uniqueid], value: [1148916742.157]
DEBUG - Got name [event], value: [Hangup]
DEBUG - Got name [privilege], value: [call,all]
DEBUG - Got name [channel], value: [Local/5@DIALER-2b7d,1]
DEBUG - Got name [uniqueid], value: [1148916742.157]
DEBUG - Got name [cause], value: [0]
DEBUG - Got name [cause-txt], value: [Unknown]
DEBUG - Got name [event], value: [Hangup]
DEBUG - Got name [privilege], value: [call,all]
DEBUG - Got name [channel], value: [Local/5@DIALER-2b7d,2]
DEBUG - Got name [uniqueid], value: [1148916742.156]
DEBUG - Got name [cause], value: [0]
DEBUG - Got name [cause-txt], value: [Unknown]
[/code]
I hope somebody can enlighten me. TIA.