[asterisk-commits] seanbright: branch 1.4 r114245 - /branches/1.4/channels/chan_sip.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Apr 18 08:33:33 CDT 2008


Author: seanbright
Date: Fri Apr 18 08:33:32 2008
New Revision: 114245

URL: http://svn.digium.com/view/asterisk?view=rev&rev=114245
Log:
Only complete the SIP channel name once for 'sip show channel <channel>'

Modified:
    branches/1.4/channels/chan_sip.c

Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=114245&r1=114244&r2=114245
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Fri Apr 18 08:33:32 2008
@@ -10871,6 +10871,10 @@
 	struct sip_pvt *cur;
 	char *c = NULL;
 	int wordlen = strlen(word);
+
+	if (pos != 3) {
+		return NULL;
+	}
 
 	ast_mutex_lock(&iflock);
 	for (cur = iflist; cur; cur = cur->next) {




More information about the asterisk-commits mailing list