]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Send call release with unallocated cause instead of normal call clearing, when
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 7 Nov 2008 20:13:32 +0000 (20:13 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 7 Nov 2008 20:13:32 +0000 (20:13 +0000)
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

channels/chan_dahdi.c

index 45c6f8dca8dc89725c0edf99819fcb9114ca300a..f36db2ce19484a370a96539cfceca4dd29154f13 100644 (file)
@@ -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;