]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
abolish mailbox attribute in users and use number-alias attribute instead MODAPP-218
authorMichael Jerris <mike@jerris.com>
Mon, 18 May 2009 17:11:47 +0000 (17:11 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 18 May 2009 17:11:47 +0000 (17:11 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13378 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr.c

index a661bb4825f6af5d70a03ee182e3f5572a6de211..dc6cda2aa9ed48e97c4a826b307205fc5312743e 100644 (file)
@@ -2026,7 +2026,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_say(switch_core_session_t *session, c
 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 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_set_user(switch_core_session_t *sessi
 
        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"))) {