[svn-commits] file: trunk r180195 - in /trunk: ./ main/callerid.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Mar 4 13:25:02 CST 2009


Author: file
Date: Wed Mar  4 13:24:59 2009
New Revision: 180195

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=180195
Log:
Merged revisions 180194 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  r180194 | file | 2009-03-04 15:22:50 -0400 (Wed, 04 Mar 2009) | 4 lines
  
  Look for the number in a callerid string starting from the end. This way a value using <> can exist in the name portion.
  
  (issue #AST-194)
........

Modified:
    trunk/   (props changed)
    trunk/main/callerid.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/main/callerid.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/main/callerid.c?view=diff&rev=180195&r1=180194&r2=180195
==============================================================================
--- trunk/main/callerid.c (original)
+++ trunk/main/callerid.c Wed Mar  4 13:24:59 2009
@@ -1008,7 +1008,7 @@
 	char *ns, *ne, *ls, *le;
 
 	/* Try "name" <location> format or name <location> format */
-	if ((ls = strchr(instr, '<')) && (le = strchr(ls, '>'))) {
+	if ((ls = strrchr(instr, '<')) && (le = strrchr(ls, '>'))) {
 		*ls = *le = '\0';	/* location found, trim off the brackets */
 		*location = ls + 1;	/* and this is the result */
 		if ((ns = strchr(instr, '"')) && (ne = strchr(ns + 1, '"'))) {




More information about the svn-commits mailing list