I am using asterisk 1.8 and i am having problem with both (SIP trunk and Dahdi channels), most of incoming channels does not hangup … it keep connected and keep the channel busy. is there anyway i can tell asterisk that hangup the call after 59 minutes or 1 hour? I mean i want to get the call hangup forcefully from asterisk.
There are many workaround about this issue. But related to terminate the call after X amount of time. You could use AbsoluteTimeout() Set absolute maximum time of call.
Also on sip you have options like RTP timers.
rtptimeout=60 ; Terminate call if 60 seconds of no RTP or RTCP activity
; on the audio channel
; when we’re not on hold. This is to be able to hangup
; a call in the case of a phone disappearing from the net,
; like a powerloss or grandma tripping over a cable.
rtpholdtimeout=300 ; Terminate call if 300 seconds of no RTP or RTCP activity
; on the audio channel