From d2ac624b877d3a4f9c47dfa85dba58f791582565 Mon Sep 17 00:00:00 2001 From: Richard Mudgett Date: Wed, 25 Apr 2012 19:55:12 +0000 Subject: Clear ISDN channel resetting state if the peer continues to use it. Some ISDN switches occasionally fail to send a RESTART ACKNOWLEDGE in response to a RESTART request. * Made the second SETUP received after sending a RESTART request clear the channel resetting state as if the peer had sent the expected RESTART ACKNOWLEDGE before continuing to process the SETUP. The peer may not be sending the expected RESTART ACKNOWLEDGE. (issue ASTERISK-19608) (issue AST-844) (issue AST-815) Patches: jira_ast_815_v1.8.patch (license #5621) patch uploaded by rmudgett (modified) ........ Merged revisions 363687 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 363688 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@363689 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_dahdi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'channels/chan_dahdi.c') diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 0487d5238..6b63ed381 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -15536,8 +15536,9 @@ static char *dahdi_show_channel(struct ast_cli_entry *e, int cmd, struct ast_cli struct sig_pri_chan *chan = tmp->sig_pvt; ast_cli(a->fd, "PRI Flags: "); - if (chan->resetting) - ast_cli(a->fd, "Resetting "); + if (chan->resetting != SIG_PRI_RESET_IDLE) { + ast_cli(a->fd, "Resetting=%d ", chan->resetting); + } if (chan->call) ast_cli(a->fd, "Call "); if (chan->allocated) { -- cgit v1.2.3