[Asterisk-cvs] asterisk/channels chan_sip.c,1.347,1.348

markster at lists.digium.com markster at lists.digium.com
Thu Apr 29 00:54:49 CDT 2004


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

Modified Files:
	chan_sip.c 
Log Message:
Handle fromdomain properly when there is no @ sign


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.347
retrieving revision 1.348
diff -u -d -r1.347 -r1.348
--- chan_sip.c	28 Apr 2004 22:12:08 -0000	1.347
+++ chan_sip.c	29 Apr 2004 05:01:32 -0000	1.348
@@ -4071,7 +4071,8 @@
 		if ((a = strchr(fr, '@'))) {
 			*a = '\0';
 			strncpy(p->fromdomain, a + 1, sizeof(p->fromdomain) - 1);
-		}
+		} else
+			strncpy(p->fromdomain, fr, sizeof(p->fromdomain) - 1);
 	}
 	if (sipdebug)
 		ast_verbose("Looking for %s in %s\n", c, p->context);




More information about the svn-commits mailing list