]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
debugging tweak
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 18 Feb 2010 17:26:15 +0000 (17:26 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 18 Feb 2010 17:26:15 +0000 (17:26 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16692 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/include/switch_channel.h
src/switch_channel.c

index 5ef0778b70b4c7949ec12ac0833930e6e8ab6cd0..1f7f733aefb64cdba9902eccd07cf96ac682ecc9 100644 (file)
@@ -536,7 +536,8 @@ SWITCH_DECLARE(switch_status_t) switch_channel_set_timestamps(_In_ switch_channe
 
 #define switch_channel_stop_broadcast(_channel)        for(;;) {if (switch_channel_test_flag(_channel, CF_BROADCAST)) {switch_channel_set_flag(_channel, CF_STOP_BROADCAST); switch_channel_set_flag(_channel, CF_BREAK); } break;}
 
-SWITCH_DECLARE(void) switch_channel_audio_sync(switch_channel_t *channel);
+SWITCH_DECLARE(void) switch_channel_perform_audio_sync(switch_channel_t *channel, const char *file, const char *func, int line);
+#define switch_channel_audio_sync(_c)  switch_channel_perform_audio_sync(_c, __FILE__, __SWITCH_FUNC__, __LINE__)
 
 SWITCH_DECLARE(void) switch_channel_set_private_flag(switch_channel_t *channel, uint32_t flags);
 SWITCH_DECLARE(void) switch_channel_clear_private_flag(switch_channel_t *channel, uint32_t flags);
index 4b4470a36d7ab8ea8d74ae84bbbce0bcb8c0cf24..561f323657a7d701e8b510b5ee632c9b2ed38cf6 100644 (file)
@@ -173,12 +173,15 @@ SWITCH_DECLARE(switch_call_cause_t) switch_channel_get_cause(switch_channel_t *c
 }
 
 
-SWITCH_DECLARE(void) switch_channel_audio_sync(switch_channel_t *channel)
+SWITCH_DECLARE(void) switch_channel_perform_audio_sync(switch_channel_t *channel, const char *file, const char *func, int line)
 {
        if (switch_channel_media_ready(channel)) {
                switch_core_session_message_t msg = { 0 };
                msg.message_id = SWITCH_MESSAGE_INDICATE_AUDIO_SYNC;
                msg.from = channel->name;
+               msg._file = file;
+               msg._func = func;
+               msg._line = line;
                switch_core_session_receive_message(channel->session, &msg);
        }
 }