[Asterisk-bsd] hangup detection

Brian Buhrow buhrow at lothlorien.nfbcal.org
Thu Sep 29 16:08:53 CDT 2005


	Hello Jef.  I think your work around is a good idea.  I'd try
something like:

exten = t,1,setvar(RETRIES = ${RETRIES} +1)
exten = t,2,gotoif(${RETRIES} > 3?20)
exten = t,3,playback(invalid)
exten = t,4,goto(s,1) ;Or where ever you want people to wait.
exten = t,20,hangup ;Should only get here if sent by the gotoif above.


Hope that helps.

-Brian
On Sep 29,  3:34pm, Jeff LaCoursiere wrote:
} Subject: [Asterisk-bsd] hangup detection
} 
} Hello,
} 
} Am running 1.0.8-BRIstuffed-0.2.0-RC8h on 5.4-RELEASE with a 4 port FXO
} card from Digium (and about twelve Procomm 300, 301, 501, and 600 phones).
} We have been playing around with it for about a month and finally put it
} into production yesterday.  Twice in the past twenty four hours the first
} line has become "stuck" in our main menu:
} 
}   == CDR updated on Zap/1-1
}     -- Executing Goto("Zap/1-1", "#|1") in new stack
}     -- Goto (default,#,1)
}     -- Sent into invalid extension '#' in context 'default' on Zap/1-1
}     -- Executing Playback("Zap/1-1", "invalid") in new stack
}     -- Playing 'invalid' (language 'en')
}     -- Timeout on Zap/1-1
}   == CDR updated on Zap/1-1
}     -- Executing Goto("Zap/1-1", "#|1") in new stack
}     -- Goto (default,#,1)
}     -- Sent into invalid extension '#' in context 'default' on Zap/1-1
}     -- Executing Playback("Zap/1-1", "invalid") in new stack
}     -- Playing 'invalid' (language 'en')
}     -- Timeout on Zap/1-1
}   == CDR updated on Zap/1-1
}     -- Executing Goto("Zap/1-1", "#|1") in new stack
}     -- Goto (default,#,1)
}     -- Sent into invalid extension '#' in context 'default' on Zap/1-1
}     -- Executing Playback("Zap/1-1", "invalid") in new stack
}     -- Playing 'invalid' (language 'en')
}     -- Timeout on Zap/1-1
} 
} This continues forever until I physically unplug the phone line from the
} port, then plug it back in.  In the meantime the line rings busy from the
} outside.
} 
} I think I can work around whatever causes this by making the menu timeout
} and hangup, perhaps after some number of unsuccessful extensions?  Can
} someone help me with a dialplan example that would accomplish this?
} 
} TIA!
} 
} Jeff LaCoursiere
} Southland Gaming Virgin Islands
} jeff at sgvi.net
} jeff at jeff.net
} 
} _______________________________________________
} Asterisk-BSD mailing list
} Asterisk-BSD at lists.digium.com
} http://lists.digium.com/mailman/listinfo/asterisk-bsd
>-- End of excerpt from Jeff LaCoursiere




More information about the Asterisk-BSD mailing list