[Asterisk-cvs] libpri q931.c,1.117,1.118
mattf at lists.digium.com
mattf at lists.digium.com
Fri Mar 4 09:59:30 CST 2005
Update of /usr/cvsroot/libpri
In directory mongoose.digium.com:/tmp/cvs-serv20191
Modified Files:
q931.c
Log Message:
Make sure WE release the connection if we're the one that started the signalling only connection
Index: q931.c
===================================================================
RCS file: /usr/cvsroot/libpri/q931.c,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -d -r1.117 -r1.118
--- q931.c 2 Mar 2005 16:03:22 -0000 1.117
+++ q931.c 4 Mar 2005 15:56:37 -0000 1.118
@@ -3389,7 +3389,11 @@
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);
More information about the svn-commits
mailing list