[Asterisk-cvs] asterisk/channels chan_sip.c,1.334,1.335
markster at lists.digium.com
markster at lists.digium.com
Wed Apr 14 19:59:24 CDT 2004
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv29391/channels
Modified Files:
chan_sip.c
Log Message:
Fix name properly
Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.334
retrieving revision 1.335
diff -u -d -r1.334 -r1.335
--- chan_sip.c 7 Apr 2004 15:09:58 -0000 1.334
+++ chan_sip.c 15 Apr 2004 00:02:07 -0000 1.335
@@ -3961,8 +3961,11 @@
*a = '\0';
}
if (fr) {
- if ((a = strchr(fr, '@')) || (a = strchr(fr, ';'))) {
+ if ((a = strchr(fr, ';')))
*a = '\0';
+ if ((a = strchr(fr, '@'))) {
+ *a = '\0';
+ strncpy(p->fromdomain, a + 1, sizeof(p->fromdomain) - 1);
}
}
if (sipdebug)
More information about the svn-commits
mailing list