[asterisk-commits] igorg: branch 11 r377577 - /branches/11/channels/chan_unistim.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Sun Dec 9 23:23:26 CST 2012
Author: igorg
Date: Sun Dec 9 23:23:24 2012
New Revision: 377577
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=377577
Log:
Remove trailing whitespaces in number from incoming redial list.
Reported by: Igor Olhovskiy
Modified:
branches/11/channels/chan_unistim.c
Modified: branches/11/channels/chan_unistim.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/channels/chan_unistim.c?view=diff&rev=377577&r1=377576&r2=377577
==============================================================================
--- branches/11/channels/chan_unistim.c (original)
+++ branches/11/channels/chan_unistim.c Sun Dec 9 23:23:24 2012
@@ -3859,6 +3859,7 @@
char line[TEXT_LENGTH_MAX + 1], status[STATUS_LENGTH_MAX + 1], func1[10], func2[10],
func3[10];
+ /* Display date/time and call status */
if (fread(line, TEXT_LENGTH_MAX, 1, *f) != 1) {
display_last_error("Can't read history date entry");
fclose(*f);
@@ -3872,6 +3873,7 @@
} else {
send_text(TEXT_LINE0, TEXT_NORMAL, pte, line);
}
+ /* Display number */
if (fread(line, TEXT_LENGTH_MAX, 1, *f) != 1) {
display_last_error("Can't read callerid entry");
fclose(*f);
@@ -3879,6 +3881,7 @@
}
line[sizeof(line) - 1] = '\0';
ast_copy_string(pte->device->lst_cid, line, sizeof(pte->device->lst_cid));
+ ast_trim_blanks(pte->device->lst_cid);
if (pte->device->height == 1) {
if (pte->buff_entry[3] == 2) {
send_text(TEXT_LINE0, TEXT_NORMAL, pte, line);
@@ -3886,6 +3889,7 @@
} else {
send_text(TEXT_LINE1, TEXT_NORMAL, pte, line);
}
+ /* Display name */
if (fread(line, TEXT_LENGTH_MAX, 1, *f) != 1) {
display_last_error("Can't read callername entry");
fclose(*f);
More information about the asterisk-commits
mailing list