diff options
Diffstat (limited to 'net-misc/asterisk-app_iconv/files/app_iconv-0.9.2-ast12.diff')
-rw-r--r-- | net-misc/asterisk-app_iconv/files/app_iconv-0.9.2-ast12.diff | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net-misc/asterisk-app_iconv/files/app_iconv-0.9.2-ast12.diff b/net-misc/asterisk-app_iconv/files/app_iconv-0.9.2-ast12.diff new file mode 100644 index 000000000000..464ff80c04cd --- /dev/null +++ b/net-misc/asterisk-app_iconv/files/app_iconv-0.9.2-ast12.diff @@ -0,0 +1,17 @@ +--- app_iconv-0.9.2/app_iconv.c.orig 2005-11-27 11:03:40.000000000 +0000 ++++ app_iconv-0.9.2/app_iconv.c 2006-04-15 22:22:23.000000000 +0000 +@@ -82,12 +82,9 @@ + strconvert(convert_from, convert_to, string, result); + + if(strcmp("CALLERIDNAME", varname)==0) { +- char *cidnum, *cidname, newcid[256] = ""; +- ast_callerid_parse(chan->callerid, &cidname, &cidnum); +- snprintf(newcid, sizeof(newcid), "\"%s\" <%s>", result, cidnum); + if(option_verbose > 2) +- ast_verbose (VERBOSE_PREFIX_3 "Iconv: set CID to %s\n", newcid); +- ast_set_callerid (chan, newcid, 0); ++ ast_verbose (VERBOSE_PREFIX_3 "Iconv: set CIDNAME to %s\n", result); ++ ast_set_callerid (chan, NULL, result, NULL); + } else { + pbx_builtin_setvar_helper(chan, varname, result); + } |