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:
parent
e4d3ca388b
commit
80355d96c5
2
q931.c
2
q931.c
@ -1965,8 +1965,10 @@ int q931_receive(struct pri *pri, q931_h *h, int len)
|
|||||||
pri->ev.hangup.cref = c->cr;
|
pri->ev.hangup.cref = c->cr;
|
||||||
pri->ev.hangup.cause = c->cause;
|
pri->ev.hangup.cause = c->cause;
|
||||||
pri->ev.hangup.call = c;
|
pri->ev.hangup.call = c;
|
||||||
|
#if 0 /* Require the user app to call release */
|
||||||
/* Send a release with no cause */
|
/* Send a release with no cause */
|
||||||
q931_release(pri, c, -1);
|
q931_release(pri, c, -1);
|
||||||
|
#endif
|
||||||
return Q931_RES_HAVEEVENT;
|
return Q931_RES_HAVEEVENT;
|
||||||
case Q931_RESTART_ACKNOWLEDGE:
|
case Q931_RESTART_ACKNOWLEDGE:
|
||||||
c->ourcallstate = Q931_CALL_STATE_NULL;
|
c->ourcallstate = Q931_CALL_STATE_NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user