[asterisk-commits] kharwell: branch kharwell/pimp_sip_callgroup r390395 - /team/kharwell/pimp_si...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jun 4 09:35:29 CDT 2013


Author: kharwell
Date: Tue Jun  4 09:35:28 2013
New Revision: 390395

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=390395
Log:
return error if variable is not found in group handlers

Modified:
    team/kharwell/pimp_sip_callgroup/res/res_sip/sip_configuration.c

Modified: team/kharwell/pimp_sip_callgroup/res/res_sip/sip_configuration.c
URL: http://svnview.digium.com/svn/asterisk/team/kharwell/pimp_sip_callgroup/res/res_sip/sip_configuration.c?view=diff&rev=390395&r1=390394&r2=390395
==============================================================================
--- team/kharwell/pimp_sip_callgroup/res/res_sip/sip_configuration.c (original)
+++ team/kharwell/pimp_sip_callgroup/res/res_sip/sip_configuration.c Tue Jun  4 09:35:28 2013
@@ -299,8 +299,10 @@
 
 	if (!strncmp(var->name, "callgroup", 9)) {
 		endpoint->callgroup = ast_get_group(var->value);
-	} else {
+	} else if (!strncmp(var->name, "pickupgroup", 11)) {
 		endpoint->pickupgroup = ast_get_group(var->value);
+	} else {
+		return -1;
 	}
 
 	return 0;
@@ -312,8 +314,10 @@
 
 	if (!strncmp(var->name, "namedcallgroup", 14)) {
 		endpoint->named_callgroups = ast_get_namedgroups(var->value);
-	} else {
+	} else if (!strncmp(var->name, "namedpickupgroup", 16)) {
 		endpoint->named_pickupgroups = ast_get_namedgroups(var->value);
+	} else {
+		return -1;
 	}
 
 	return 0;




More information about the asterisk-commits mailing list