Allow to send the CAUSE IE along with RELEASE_COMPLETE message
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@50 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
6
q931.c
6
q931.c
@@ -1717,9 +1717,11 @@ static int q931_release_complete(struct pri *pri, q931_call *c, int cause)
|
||||
c->cause = cause;
|
||||
c->causecode = CODE_CCITT;
|
||||
c->causeloc = LOC_PRIV_NET_LOCAL_USER;
|
||||
}
|
||||
/* release_ies has CAUSE in it */
|
||||
res = send_message(pri, c, Q931_RELEASE_COMPLETE, release_ies);
|
||||
} else
|
||||
res = send_message(pri, c, Q931_RELEASE_COMPLETE, release_complete_ies);
|
||||
c->alive = 0;
|
||||
res = send_message(pri, c, Q931_RELEASE_COMPLETE, release_complete_ies);
|
||||
/* release the structure */
|
||||
res += q931_hangup(pri,c,cause);
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user