Server do not know that client closed connection

Hello
Asterisk 1.4.0
my dial plan:

[DID_trunk_1]
exten => s,1,Answer()
exten => s,2,Background(custom/hello)

exten => 10,1,Playback(digits/10)
exten => 11,1,Playback(digits/11)
exten => 10,2,Dial(IAX2/005)
exten => 10,3,Hangup()

exten => t,1,Goto(DID_trunk_1,s,1)
exten => i,1,Background(custom/bad_number)
exten => i,2,Goto(DID_trunk_1,s,1)

When i call to my number, i listen to hello ivr and wait,
after timeout i listen hello ivr again and so on - it works OK.
The problem is when such client close connection
(i use idefisk soft phone) - asterisk console do not show it.
Moreover: asterisk console infinitely shows that it’s launching hello ivr.
Is it possible that asterisk do not know that client closed connectin ?
Do i have to put somewhere Hangup() to solve this problem ?

Thanx
Michal

[quote=“highland”]exten => t,1,Goto(DID_trunk_1,s,1)
[/quote]

Don’t know how IAX handles hangup, but if Asterisk doesn’t detect hangup, your dial plan dictates that it infinitely goes back to say hello. There might be ways to turn IAX debug on.