Thomas Kenyon wrote:> I've been testing the debug version of AstTAPI, which worked for a few
> calls, then a bit later in the day (and ever since), when the call is
> hung up, the TAPI client doesn't get notified.
>
> Looking at the server logs, The TAPI message that is sent upon hangup,
> isn't being sent.
>
> exten => h,1,UserEvent(TAPI|TAPIEVENT: LINE_CALLSTATE
LINECALLSTATE_IDLE)
>
> This is in the same context as the call is being placed from.
>
>
Strangely If I remove the outgoingdial macro and put it directly into
the context instead, everything is fine (it doesn't ignore the hangup).
Only problem now is that the userevents in macro-tapi don't appear to do
anything. (still states that it is waiting for the phone to answer).
I notice the Userevents that aren't doing anything open with a different
channel than the others (gradwell-5 rather than Office-4). IS this relevant?
== Manager 'tom' logged on from 192.168.0.8
-- Call accepted by 192.168.0.17 (format g729)
-- Format for call is g729> Channel IAX2/Office-4 was answered.
-- Executing AGI("IAX2/Office-4", "setch.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/setch.agi
setch.agi: IAX2/Office-4
setch.agi: IAX2/Office
-- AGI Script setch.agi completed, returning 0
-- Executing UserEvent("IAX2/Office-4", "TAPI|TAPIEVENT:
LINE_NEWCALL
IAX2/Office") in new stack
-- Executing UserEvent("IAX2/Office-4", "TAPI|TAPIEVENT:
LINE_CALLSTATE
LINECALLSTATE_DIALTONE") in new stack
-- Executing UserEvent("IAX2/Office-4", "TAPI|TAPIEVENT:
LINE_CALLSTATE
LINECALLSTATE_DIALING") in new stack
-- Executing UserEvent("IAX2/Office-4", "TAPI|TAPIEVENT:
LINE_CALLSTATE
LINECALLSTATE_PROCEEDING") in new stack
-- Executing Dial("IAX2/Office-4",
"IAX2/gradwell/0xxxxxxxxxx|30|tM(tapi^1149870710.0|IAX2/Office)") in
new
stack
-- Called gradwell/0xxxxxxxxxx
-- Call accepted by 193.111.200.135 (format g729)
-- Format for call is g729
-- IAX2/gradwell-5 is making progress passing it to IAX2/Office-4
-- IAX2/gradwell-5 answered IAX2/Office-4
-- Executing UserEvent("IAX2/gradwell-5", "TAPI|TAPIEVENT:
[~1149870710.0&IAX2/Office] LINE_CALLSTATE LINECALLSTATE_CONNECTED") in
new stack
-- Executing UserEvent("IAX2/gradwell-5", "TAPI|TAPIEVENT:
[~1149870710.0&!IAX2/Office] LINE_CALLSTATE LINECALLSTATE_HANGUP") in
new stack
-- Attempting native bridge of IAX2/Office-4 and IAX2/gradwell-5
-- Hungup 'IAX2/gradwell-5'
== Spawn extension (astertapi, 0xxxxxxxxx, 6) exited non-zero on
'IAX2/Office-4'
-- Executing UserEvent("IAX2/Office-4", "TAPI|TAPIEVENT:
LINE_CALLSTATE
LINECALLSTATE_IDLE") in new stack
-- Hungup 'IAX2/Office-4'