asterisk@clisson.org
2005-Oct-03 10:48 UTC
[Asterisk-Users] Hangup not detected on callback
Hi, I'm trying to set up a call-back system using auto-dialout files. I want the call to be terminated when a specific timeout (defined in the .call file) is detected. Both parties should then be hangup. The problem is that the timeout is never detected... How to solve this? Thank you, Pierre .call file ---------- Channel: IAX2/:@xxx.xxx.xxx.xxx/0111111111 Callerid: 111111111 MaxRetries: 5 RetryTime: 60 WaitTime: 30 Context: test Extension: 0222222222 Priority: 1 SetVar: ato=30 SetVar: act=testaccount extensions.conf --------------- [test] exten => _XXXXXXXXXX,1,SetAccount(${act}) exten => _XXXXXXXXXX,2,AbsoluteTimeout(${ato}) exten => _XXXXXXXXXX,3,Answer() exten => _XXXXXXXXXX,4,Dial(IAX2/:@xxx.xxx.xxx.xxx/${EXTEN}) exten => _XXXXXXXXXX,5,Congestion() exten => _XXXXXXXXXX,102,Busy() exten => s,1,DigitTimeout,10 exten => s,2,ResponseTimeout,10 exten => t,1,Playback(vm-goodbye) exten => t,2,Hangup exten => T,1,Playback(vm-goodbye) exten => T,2,Hangup CLI output ---------- -- Attempting call on IAX2/:@xxx.xxx.xxx.xxx/0111111111 for 0222222222@test:1 (Retry 1) -- Call accepted by xxx.xxx.xxx.xxx (format ulaw) -- Format for call is ulaw > Channel IAX2/xxx.xxx.xxx.xxx:4569/1 was answered. -- Executing SetAccount("IAX2/xxx.xxx.xxx.xxx:4569/1", "testaccount") in new stack -- Executing AbsoluteTimeout("IAX2/xxx.xxx.xxx.xxx:4569/1", "30") in new stack -- Set Absolute Timeout to 30 -- Executing Answer("IAX2/xxx.xxx.xxx.xxx:4569/1", "") in new stack -- Executing Dial("IAX2/xxx.xxx.xxx.xxx:4569/1", "IAX2/:@xxx.xxx.xxx.xxx/0222222222") in new stack -- Called :@xxx.xxx.xxx.xxx/0222222222 -- Call accepted by xxx.xxx.xxx.xxx (format ulaw) -- Format for call is ulaw -- IAX2/xxx.xxx.xxx.xxx:4569/2 is ringing -- IAX2/xxx.xxx.xxx.xxx:4569/2 stopped sounds -- IAX2/xxx.xxx.xxx.xxx:4569/2 answered IAX2/xxx.xxx.xxx.xxx:4569/1 -- Attempting native bridge of IAX2/xxx.xxx.xxx.xxx:4569/1 and IAX2/xxx.xxx.xxx.xxx:4569/2 -- Channel 'IAX2/xxx.xxx.xxx.xxx:4569/2' ready to transfer -- Channel 'IAX2/xxx.xxx.xxx.xxx:4569/1' ready to transfer -- Releasing IAX2/xxx.xxx.xxx.xxx:4569/1 and IAX2/xxx.xxx.xxx.xxx:4569/2 -- Hungup 'IAX2/xxx.xxx.xxx.xxx:4569/2' == Spawn extension (test, 0222222222, 4) exited non-zero on 'IAX2/xxx.xxx.xxx.xxx:4569/1' Oct 3 19:14:04 NOTICE[1041]: chan_iax2.c:1378 iax2_destroy: Avoiding IAX destroy deadlock -- Hungup 'IAX2/xxx.xxx.xxx.xxx:4569/1' Oct 3 19:14:04 NOTICE[1092]: pbx_spool.c:242 attempt_thread: Call completed to IAX2/:@xxx.xxx.xxx.xxx/0111111111