FS-3386
This commit is contained in:
parent
73ba5a562e
commit
1729078f56
|
@ -159,8 +159,8 @@ struct sofia_private {
|
|||
|
||||
#define set_param(ptr,val) if (ptr) {free(ptr) ; ptr = NULL;} if (val) {ptr = strdup(val);}
|
||||
#define set_anchor(t,m) if (t->Anchor) {delete t->Anchor;} t->Anchor = new SipMessage(m);
|
||||
//#define sofia_private_free(_pvt) if (_pvt && ! _pvt->is_static) {free(_pvt); _pvt = NULL;}
|
||||
#define sofia_private_free(_pvt) _pvt = NULL
|
||||
#define sofia_private_free(_pvt) if (_pvt && ! _pvt->is_static) {free(_pvt);} _pvt = NULL;
|
||||
|
||||
|
||||
/* Local Structures */
|
||||
/*************************************************************************************************************************************************************/
|
||||
|
|
|
@ -1240,6 +1240,7 @@ void sofia_event_callback(nua_event_t event,
|
|||
|
||||
memset(sofia_private, 0, sizeof(*sofia_private));
|
||||
sofia_private->is_call++;
|
||||
sofia_private->is_static++;
|
||||
sofia_private->de = de;
|
||||
nua_handle_bind(nh, sofia_private);
|
||||
return;
|
||||
|
|
|
@ -2308,6 +2308,7 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
|
|||
|
||||
memset(sofia_private, 0, sizeof(*sofia_private));
|
||||
sofia_private->is_call++;
|
||||
sofia_private->is_static++;
|
||||
|
||||
tech_pvt->sofia_private = sofia_private;
|
||||
switch_copy_string(tech_pvt->sofia_private->uuid, switch_core_session_get_uuid(session), sizeof(tech_pvt->sofia_private->uuid));
|
||||
|
|
Loading…
Reference in New Issue