]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add action='user_call' to xml_curl lookups for the user endpoint
authorMichael Jerris <mike@jerris.com>
Fri, 26 Mar 2010 20:09:44 +0000 (20:09 +0000)
committerMichael Jerris <mike@jerris.com>
Fri, 26 Mar 2010 20:09:44 +0000 (20:09 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@17115 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_dptools/mod_dptools.c

index 8b0784242b2e17cd857a67c2448dc295af7f57d4..0dcd869fc29f3621d180378c956a3ea9de7fdf0e 100644 (file)
@@ -2660,6 +2660,7 @@ static switch_call_cause_t user_outgoing_channel(switch_core_session_t *session,
        switch_event_create(&params, SWITCH_EVENT_REQUEST_PARAMS);
        switch_assert(params);
        switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "as_channel", "true");
+       switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "action", "user_call");
 
        if (switch_xml_locate_user("id", user, domain, NULL, &xml, &x_domain, &x_user, &x_group, params) != SWITCH_STATUS_SUCCESS) {
                switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_WARNING, "Can't find user [%s@%s]\n", user, domain);