Make sure WE release the connection if we're the one that started the signalling only connection
git-svn-id: https://origsvn.digium.com/svn/libpri/trunk@197 2fbb986a-6c06-0410-b554-c9c1f0a7f128
This commit is contained in:
6
q931.c
6
q931.c
@@ -3389,7 +3389,11 @@ int q931_receive(struct pri *pri, q931_h *h, int len)
|
||||
pri->ev.answer.progress = c->progress;
|
||||
pri->ev.answer.progressmask = c->progressmask;
|
||||
q931_connect_acknowledge(pri, c);
|
||||
return Q931_RES_HAVEEVENT;
|
||||
if (c->justsignalling) { /* Make sure WE release when we initiatie a signalling only connection */
|
||||
q931_release(pri, c, PRI_CAUSE_NORMAL_CLEARING);
|
||||
break;
|
||||
} else
|
||||
return Q931_RES_HAVEEVENT;
|
||||
case Q931_FACILITY:
|
||||
if (c->newcall) {
|
||||
q931_release_complete(pri,c,PRI_CAUSE_INVALID_CALL_REFERENCE);
|
||||
|
||||
Reference in New Issue
Block a user