fix build
This commit is contained in:
parent
8cf839690f
commit
6fc559effa
|
@ -473,6 +473,7 @@ struct sofia_gateway {
|
||||||
int32_t retry_seconds;
|
int32_t retry_seconds;
|
||||||
int32_t reg_timeout_seconds;
|
int32_t reg_timeout_seconds;
|
||||||
int32_t failure_status;
|
int32_t failure_status;
|
||||||
|
sub_state_t sub_state;
|
||||||
reg_state_t state;
|
reg_state_t state;
|
||||||
switch_memory_pool_t *pool;
|
switch_memory_pool_t *pool;
|
||||||
int deleted;
|
int deleted;
|
||||||
|
|
|
@ -110,7 +110,7 @@ static void sofia_reg_kill_sub(sofia_gateway_t *gateway_ptr)
|
||||||
nua_handle_bind(gateway_ptr->sub_nh, NULL);
|
nua_handle_bind(gateway_ptr->sub_nh, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gateway_ptr->state != SUB_STATE_SUBED && gateway_ptr->state != SUB_STATE_UNSUBSCRIBE) {
|
if (gateway_ptr->sub_state != SUB_STATE_SUBED && gateway_ptr->sub_state != SUB_STATE_UNSUBSCRIBE) {
|
||||||
if (gateway_ptr->sub_nh) {
|
if (gateway_ptr->sub_nh) {
|
||||||
nua_handle_destroy(gateway_ptr->sub_nh);
|
nua_handle_destroy(gateway_ptr->sub_nh);
|
||||||
gateway_ptr->sub_nh = NULL;
|
gateway_ptr->sub_nh = NULL;
|
||||||
|
@ -213,6 +213,8 @@ void sofia_sub_check_gateway(sofia_profile_t *profile, time_t now)
|
||||||
gw_sub_ptr->expires_str = "0";
|
gw_sub_ptr->expires_str = "0";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gateway_ptr->sub_state = gw_sub_ptr->state;
|
||||||
|
|
||||||
switch (ostate) {
|
switch (ostate) {
|
||||||
case SUB_STATE_NOSUB:
|
case SUB_STATE_NOSUB:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue