]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
make extensions linkable (thanks mishehu)
authorAnthony Minessale <anthony.minessale@gmail.com>
Sat, 3 Jun 2006 17:06:06 +0000 (17:06 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sat, 3 Jun 2006 17:06:06 +0000 (17:06 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1537 d0543943-73ff-0310-b7d9-9358b9ac24b2

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

index d35fa99a5e43ddada68a4ff31015ca6ac31a6d0e..8b146ba6165159f8d733c69ccdde2fcdc46496d8 100644 (file)
@@ -112,6 +112,7 @@ struct switch_caller_extension {
        switch_caller_application_t *last_application;
        /*! Pointer to the entire stack of applications for this extension */
        switch_caller_application_t *applications;
+       struct switch_caller_extension *next;
 };
 
 /*!
index c0c4207d306c694739109d8fc46b5fe7c156dc1e..937ca3e61c71a346dc9436e2a010a045695fc85b 100644 (file)
@@ -757,7 +757,11 @@ SWITCH_DECLARE(void) switch_channel_set_caller_extension(switch_channel_t *chann
                                                                                                                 switch_caller_extension_t *caller_extension)
 {
        assert(channel != NULL);
+
+       switch_mutex_lock(channel->profile_mutex);
+       caller_extension->next = channel->caller_extension;
        channel->caller_extension = caller_extension;
+       switch_mutex_unlock(channel->profile_mutex);
 }