Send RELEASE COMPLETE if the cause is UNALLOCATED NUMBER (1) instead of sending DISCONNECT (although that should be ok too)

git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@49 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Martin Pycko
2003-08-05 18:42:55 +00:00
parent e09654f0ed
commit de24dd76a6

2
q931.c
View File

@@ -1740,7 +1740,7 @@ int q931_hangup(struct pri *pri, q931_call *c, int cause)
pri_message("NEW_HANGUP DEBUG: Calling q931_hangup, ourstate %s, peerstate %s\n",callstate2str(c->ourcallstate),callstate2str(c->peercallstate));
if (!pri || !c)
return -1;
if (cause == 34 || cause == 44 || cause == 82) {
if (cause == 34 || cause == 44 || cause == 82 || cause == 1) {
disconnect = 0;
release_compl = 1;
}