mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-17 09:12:25 +00:00
signal_lock sux on gtalk
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7940 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
5e32936eff
commit
489c9cddd6
@ -2538,8 +2538,6 @@ static ldl_status handle_signalling(ldl_handle_t * handle, ldl_session_t * dlses
|
|||||||
|
|
||||||
|
|
||||||
if ((session = ldl_session_get_private(dlsession))) {
|
if ((session = ldl_session_get_private(dlsession))) {
|
||||||
|
|
||||||
switch_core_session_signal_lock(session);
|
|
||||||
tech_pvt = switch_core_session_get_private(session);
|
tech_pvt = switch_core_session_get_private(session);
|
||||||
switch_assert(tech_pvt != NULL);
|
switch_assert(tech_pvt != NULL);
|
||||||
|
|
||||||
@ -2561,7 +2559,6 @@ static ldl_status handle_signalling(ldl_handle_t * handle, ldl_session_t * dlses
|
|||||||
}
|
}
|
||||||
if ((session = switch_core_session_request(dingaling_endpoint_interface, NULL)) != 0) {
|
if ((session = switch_core_session_request(dingaling_endpoint_interface, NULL)) != 0) {
|
||||||
switch_core_session_add_stream(session, NULL);
|
switch_core_session_add_stream(session, NULL);
|
||||||
switch_core_session_signal_lock(session);
|
|
||||||
|
|
||||||
if ((tech_pvt = (struct private_object *) switch_core_session_alloc(session, sizeof(struct private_object))) != 0) {
|
if ((tech_pvt = (struct private_object *) switch_core_session_alloc(session, sizeof(struct private_object))) != 0) {
|
||||||
char *exten;
|
char *exten;
|
||||||
@ -2946,11 +2943,9 @@ static ldl_status handle_signalling(ldl_handle_t * handle, ldl_session_t * dlses
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
|
||||||
if (session) {
|
|
||||||
switch_core_session_signal_unlock(session);
|
|
||||||
}
|
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user