diff options
author | Igor Goncharovskiy <igor.goncharovsky@gmail.com> | 2012-12-10 05:29:04 +0000 |
---|---|---|
committer | Igor Goncharovskiy <igor.goncharovsky@gmail.com> | 2012-12-10 05:29:04 +0000 |
commit | 1042d43160e89f96db9be9b0a134a1857fbbd85f (patch) | |
tree | b3e3a09317434619bfea9afef2a7deb5f3a3220e /channels/chan_unistim.c | |
parent | ac16a70dce44d714a68b702430171e340b742838 (diff) |
Remove trailing whitespaces in number from incoming redial list.
Reported by: Igor Olhovskiy
........
Merged revisions 377577 from http://svn.asterisk.org/svn/asterisk/branches/11
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@377579 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/chan_unistim.c')
-rw-r--r-- | channels/chan_unistim.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_unistim.c b/channels/chan_unistim.c index 21805a26c..2179cb65e 100644 --- a/channels/chan_unistim.c +++ b/channels/chan_unistim.c @@ -3859,6 +3859,7 @@ static void show_entry_history(struct unistimsession *pte, FILE ** f) 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 @@ static void show_entry_history(struct unistimsession *pte, FILE ** f) } 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 @@ static void show_entry_history(struct unistimsession *pte, FILE ** f) } 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 @@ static void show_entry_history(struct unistimsession *pte, FILE ** f) } 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); |