mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-23 19:54:17 +00:00
Fix them all while we're at it
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13092 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
979c37786c
commit
7da470f67c
7 files changed
+16
-16
No files matched your search
@@ -989,7 +989,7 @@ SWITCH_STANDARD_APP(event_function)
|
||||
if (!strcasecmp(var,"Event-Name")) {
|
||||
switch_name_event(val, &event->event_id);
|
||||
switch_event_del_header(event, var);
|
||||
switch_event_add_header(event, SWITCH_STACK_BOTTOM, var, "%s", val);
|
||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, var, val);
|
||||
} else if (!strcasecmp(var,"Event-Subclass")) {
|
||||
size_t len = strlen(val) + 1;
|
||||
void *new = malloc(len);
|
||||
@@ -997,7 +997,7 @@ SWITCH_STANDARD_APP(event_function)
|
||||
memcpy(new, val, len);
|
||||
event->subclass_name = new;
|
||||
} else {
|
||||
switch_event_add_header(event, SWITCH_STACK_BOTTOM, var, "%s", val);
|
||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, var, val);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -323,7 +323,7 @@ static void find_beep(vmd_session_info_t * vmd_info, switch_frame_t * frame)
|
||||
|
||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Beep-Status", "stop");
|
||||
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Beep-Time", "%d", (int) vmd_info->timestamp / POINTS);
|
||||
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Unique-ID", "%s", switch_core_session_get_uuid(vmd_info->session));
|
||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Unique-ID", switch_core_session_get_uuid(vmd_info->session));
|
||||
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "Frequency", "%6.4lf", vmd_info->beep_freq);
|
||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "call-command", "vmd");
|
||||
|
||||
|
||||
@@ -1647,7 +1647,7 @@ static void update_mwi(vm_profile_t *profile, const char *id, const char *domain
|
||||
if (total_new_messages || total_new_urgent_messages) {
|
||||
yn = "yes";
|
||||
}
|
||||
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "MWI-Messages-Waiting", "%s", yn);
|
||||
switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "MWI-Messages-Waiting", yn);
|
||||
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "MWI-Message-Account", "%s@%s", id, domain_name);
|
||||
switch_event_add_header(event, SWITCH_STACK_BOTTOM, "MWI-Voice-Message", "%d/%d (%d/%d)", total_new_messages, total_saved_messages, total_new_urgent_messages, total_saved_urgent_messages);
|
||||
switch_event_fire(&event);
|
||||
|
||||
Reference in new issue
Block a user