]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3363 --resolve
authorMarc Olivier Chouinard <mochouinard@moctel.com>
Thu, 15 Dec 2011 18:22:14 +0000 (13:22 -0500)
committerMarc Olivier Chouinard <mochouinard@moctel.com>
Thu, 15 Dec 2011 18:22:14 +0000 (13:22 -0500)
src/mod/applications/mod_voicemail/mod_voicemail.c
src/mod/endpoints/mod_sofia/sofia_reg.c

index 7a1ce49bbd8231f0806f899a7b54175dcfe65488..efde2a327894a241a64065d13eccec1e3ae5739a 100644 (file)
@@ -2288,6 +2288,7 @@ static void voicemail_check_main(switch_core_session_t *session, vm_profile_t *p
 
                                        switch_event_create(&params, SWITCH_EVENT_GENERAL);
                                        switch_assert(params);
+                                       switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "action", "voicemail-lookup");
                                        switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "destination_number", caller_profile->destination_number);
                                        switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "caller_id_number", caller_id_number);
 
@@ -3170,10 +3171,10 @@ static switch_status_t voicemail_leave_main(switch_core_session_t *session, vm_p
                int ok = 1;
                switch_event_t *locate_params = NULL;
                const char *email_addr = NULL;
-               
 
                switch_event_create(&locate_params, SWITCH_EVENT_REQUEST_PARAMS);
                switch_assert(locate_params);
+               switch_event_add_header_string(locate_params, SWITCH_STACK_BOTTOM, "action", "voicemail-lookup");
 
                if (switch_xml_locate_user_merged("id", id, domain_name, switch_channel_get_variable(channel, "network_addr"),
                                                                                  &x_user, locate_params) == SWITCH_STATUS_SUCCESS) {
index dfd4677ebe428da7ddf086f2ff0b09b527e851b5..1fcafc07a490184d79201c98ca1ec8da2b162f8a 100644 (file)
@@ -2136,7 +2136,7 @@ void sofia_reg_handle_sip_r_challenge(int status,
                switch_event_create(&locate_params, SWITCH_EVENT_REQUEST_PARAMS);
                switch_assert(locate_params);
 
-               switch_event_add_header_string(locate_params, SWITCH_STACK_BOTTOM, "Action", "reverse-auth-lookup");
+               switch_event_add_header_string(locate_params, SWITCH_STACK_BOTTOM, "action", "reverse-auth-lookup");
 
                if (switch_xml_locate_user_merged("id", sip->sip_to->a_url->url_user, sip->sip_to->a_url->url_host, NULL,
                                                                                  &x_user, locate_params) == SWITCH_STATUS_SUCCESS) {