mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
make extensions linkable (thanks mishehu)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1537 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
0019a2df8b
commit
15b99a3bbf
@ -112,6 +112,7 @@ struct switch_caller_extension {
|
|||||||
switch_caller_application_t *last_application;
|
switch_caller_application_t *last_application;
|
||||||
/*! Pointer to the entire stack of applications for this extension */
|
/*! Pointer to the entire stack of applications for this extension */
|
||||||
switch_caller_application_t *applications;
|
switch_caller_application_t *applications;
|
||||||
|
struct switch_caller_extension *next;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
@ -757,7 +757,11 @@ SWITCH_DECLARE(void) switch_channel_set_caller_extension(switch_channel_t *chann
|
|||||||
switch_caller_extension_t *caller_extension)
|
switch_caller_extension_t *caller_extension)
|
||||||
{
|
{
|
||||||
assert(channel != NULL);
|
assert(channel != NULL);
|
||||||
|
|
||||||
|
switch_mutex_lock(channel->profile_mutex);
|
||||||
|
caller_extension->next = channel->caller_extension;
|
||||||
channel->caller_extension = caller_extension;
|
channel->caller_extension = caller_extension;
|
||||||
|
switch_mutex_unlock(channel->profile_mutex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user