[Freeswitch-svn] [commit] r13378 - freeswitch/trunk/src

FreeSWITCH SVN mikej at freeswitch.org
Mon May 18 10:11:47 PDT 2009


Author: mikej
Date: Mon May 18 12:11:47 2009
New Revision: 13378

Log:
abolish mailbox attribute in users and use number-alias attribute instead MODAPP-218

Modified:
   freeswitch/trunk/src/switch_ivr.c

Modified: freeswitch/trunk/src/switch_ivr.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr.c	(original)
+++ freeswitch/trunk/src/switch_ivr.c	Mon May 18 12:11:47 2009
@@ -2026,7 +2026,7 @@
 SWITCH_DECLARE(switch_status_t) switch_ivr_set_user(switch_core_session_t *session, const char *data)
 {
 	switch_xml_t x_domain, xml = NULL, x_user, x_param, x_params, x_group = NULL;
-	char *user, *mailbox, *domain;
+	char *user, *number_alias, *domain;
 	switch_channel_t *channel = switch_core_session_get_channel(session);
 	switch_status_t status = SWITCH_STATUS_FALSE;
 
@@ -2049,8 +2049,8 @@
 
 	status = SWITCH_STATUS_SUCCESS;
 
-	if ((mailbox = (char *) switch_xml_attr(x_user, "mailbox"))) {
-		switch_channel_set_variable(channel, "mailbox", mailbox);
+	if ((number_alias = (char *) switch_xml_attr(x_user, "number-alias"))) {
+		switch_channel_set_variable(channel, "number_alias", number_alias);
 	}
 
 	if ((x_params = switch_xml_child(x_domain, "variables"))) {



More information about the Freeswitch-svn mailing list