]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add header to event
authorAnthony Minessale <anthony.minessale@gmail.com>
Sat, 22 Aug 2009 01:45:03 +0000 (01:45 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sat, 22 Aug 2009 01:45:03 +0000 (01:45 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14593 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_async.c

index 5d33049f62c05edd5563f2006f836b2422ac6cf1..c5fd4d9fae8132b2cc22b981a96b173c08032ad5 100644 (file)
@@ -438,6 +438,7 @@ static switch_bool_t record_callback(switch_media_bug_t *bug, void *user_data, s
        switch (type) {
        case SWITCH_ABC_TYPE_INIT:
                if (switch_event_create(&event, SWITCH_EVENT_RECORD_START) == SWITCH_STATUS_SUCCESS) {
+                       switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Record-File-Path", rh->file);
                        switch_channel_event_set_data(channel, event);
                        switch_event_fire(&event);
                }
@@ -453,6 +454,7 @@ static switch_bool_t record_callback(switch_media_bug_t *bug, void *user_data, s
                        
                        if (switch_event_create(&event, SWITCH_EVENT_RECORD_STOP) == SWITCH_STATUS_SUCCESS) {
                                switch_channel_event_set_data(channel, event);
+                               switch_event_add_header_string(event, SWITCH_STACK_BOTTOM, "Record-File-Path", rh->file);
                                switch_event_fire(&event);
                        }