[Asterisk-cvs] libpri-matt q931.c,1.24,1.25

mattf at lists.digium.com mattf at lists.digium.com
Thu Feb 17 16:26:58 CST 2005


Update of /usr/cvsroot/libpri-matt
In directory mongoose.digium.com:/tmp/cvs-serv28412

Modified Files:
	q931.c 
Log Message:
Hangup on CONNECT for signalling only connections


Index: q931.c
===================================================================
RCS file: /usr/cvsroot/libpri-matt/q931.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- q931.c	16 Feb 2005 16:38:42 -0000	1.24
+++ q931.c	17 Feb 2005 22:25:59 -0000	1.25
@@ -3020,7 +3020,11 @@
 		pri->ev.answer.call = c;
 		pri->ev.answer.progress = c->progress;
 		q931_connect_acknowledge(pri, c);
-		return Q931_RES_HAVEEVENT;
+		if (c->justsignalling) {
+			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);
@@ -3164,7 +3168,6 @@
 			q931_release_complete(pri,c,c->cause);
 		else if (c->justsignalling) {
 			q931_release_complete(pri,c,PRI_CAUSE_NORMAL_CLEARING);
-			pri_message("!! Sending release complete on signalling only connection\n");
 		} else
 			return Q931_RES_HAVEEVENT;
 		break;




More information about the svn-commits mailing list