From: Tilghman Lesher Date: Fri, 7 Nov 2008 20:13:32 +0000 (+0000) Subject: Send call release with unallocated cause instead of normal call clearing, when X-Git-Tag: 1.6.2.0-beta1~911 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ca3cf9f488c8073b5017ff51c95308388a1e19f3;p=thirdparty%2Fasterisk.git Send call release with unallocated cause instead of normal call clearing, when invalid extension is called. (closes issue #13408) Reported by: adomjan Patches: chan_dahdi.c-ss7-unallocated-2 uploaded by adomjan (license 487) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@155324 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index 45c6f8dca8..f36db2ce19 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -9905,7 +9905,8 @@ static void *ss7_linkset(void *data) ss7_start_call(p, linkset); } else { ast_debug(1, "Call on CIC for unconfigured extension %s\n", p->exten); - isup_rel(ss7, e->iam.call, -1); + p->alreadyhungup = 1; + isup_rel(ss7, e->iam.call, AST_CAUSE_UNALLOCATED); } ast_mutex_unlock(&p->lock); break;