Don't automatically send release

git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@38 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
Mark Spencer 2003-05-12 16:59:12 +00:00
parent e4d3ca388b
commit 80355d96c5

2
q931.c
View File

@ -1965,8 +1965,10 @@ int q931_receive(struct pri *pri, q931_h *h, int len)
pri->ev.hangup.cref = c->cr;
pri->ev.hangup.cause = c->cause;
pri->ev.hangup.call = c;
#if 0 /* Require the user app to call release */
/* Send a release with no cause */
q931_release(pri, c, -1);
#endif
return Q931_RES_HAVEEVENT;
case Q931_RESTART_ACKNOWLEDGE:
c->ourcallstate = Q931_CALL_STATE_NULL;