[asterisk-commits] file: branch 1.6.1 r180197 - in /branches/1.6.1: ./ main/callerid.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Mar 4 13:27:03 CST 2009
Author: file
Date: Wed Mar 4 13:27:00 2009
New Revision: 180197
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=180197
Log:
Merged revisions 180195 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r180195 | file | 2009-03-04 15:24:59 -0400 (Wed, 04 Mar 2009) | 11 lines
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:
branches/1.6.1/ (props changed)
branches/1.6.1/main/callerid.c
Propchange: branches/1.6.1/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.1/main/callerid.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.1/main/callerid.c?view=diff&rev=180197&r1=180196&r2=180197
==============================================================================
--- branches/1.6.1/main/callerid.c (original)
+++ branches/1.6.1/main/callerid.c Wed Mar 4 13:27:00 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 asterisk-commits
mailing list