[Asterisk-cvs] asterisk/channels chan_sip.c,1.256,1.257

markster at lists.digium.com markster at lists.digium.com
Thu Nov 27 15:23:12 CST 2003


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv27232/channels

Modified Files:
	chan_sip.c 
Log Message:
Always save the extension


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.256
retrieving revision 1.257
diff -u -d -r1.256 -r1.257
--- chan_sip.c	27 Nov 2003 18:27:02 -0000	1.256
+++ chan_sip.c	27 Nov 2003 21:49:34 -0000	1.257
@@ -3707,10 +3707,10 @@
 	}
 	if (sipdebug)
 		ast_verbose("Looking for %s in %s\n", c, p->context);
+	if (!oreq || !strlen(p->exten))
+		strncpy(p->exten, c, sizeof(p->exten) - 1);
 	if (ast_exists_extension(NULL, p->context, c, 1, fr) ||
 		!strcmp(c, ast_pickup_ext())) {
-		if (!oreq)
-			strncpy(p->exten, c, sizeof(p->exten) - 1);
 		return 0;
 	}
 




More information about the svn-commits mailing list