[Asterisk-cvs] asterisk/channels chan_sip.c,1.518,1.519

markster at lists.digium.com markster at lists.digium.com
Mon Oct 4 13:15:31 CDT 2004


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

Modified Files:
	chan_sip.c 
Log Message:
Fix SIP friends + MySQL (head only)


Index: chan_sip.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v
retrieving revision 1.518
retrieving revision 1.519
diff -u -d -r1.518 -r1.519
--- chan_sip.c	4 Oct 2004 13:03:53 -0000	1.518
+++ chan_sip.c	4 Oct 2004 17:17:08 -0000	1.519
@@ -1062,7 +1062,9 @@
 						} else if (!strcasecmp(fields[x].name, "callingpres")) {
 							u->callingpres = atoi(rowval[x]);
 						} else if (!strcasecmp(fields[x].name, "callerid")) {
-							strncpy(u->callerid, rowval[x], sizeof(u->callerid) - 1);
+							ast_callerid_split(rowval[x],
+								u->cid_name, sizeof(u->cid_name),
+								u->cid_num, sizeof(u->cid_num));
 							u->hascallerid=1;
 						}
 					}




More information about the svn-commits mailing list