summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorSean Bright <sean@malleable.com>2008-04-18 13:38:07 +0000
committerSean Bright <sean@malleable.com>2008-04-18 13:38:07 +0000
commite4dce853311cc625959670f4e619a7d831137f03 (patch)
tree19e27df7446124406211659c566fcfb7190511ca /channels
parent2f33780bfab55524e701e89399bec23185ba9f9f (diff)
Merged revisions 114245 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r114245 | seanbright | 2008-04-18 09:33:32 -0400 (Fri, 18 Apr 2008) | 1 line Only complete the SIP channel name once for 'sip show channel <channel>' ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@114246 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index 4c95c3398..8a583f718 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -14038,6 +14038,10 @@ static char *complete_sipch(const char *line, const char *word, int pos, int sta
int wordlen = strlen(word);
struct ao2_iterator i;
+ if (pos != 3) {
+ return NULL;
+ }
+
i = ao2_iterator_init(dialogs, 0);
while ((cur = ao2_t_iterator_next(&i, "iterate thru dialogs"))) {