mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 20:50:41 +00:00
reset handle on bad reg
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15365 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
1329f30f03
commit
92e5245f0f
@ -1381,6 +1381,16 @@ void sofia_reg_handle_sip_r_register(int status,
|
||||
nua_t *nua, sofia_profile_t *profile, nua_handle_t *nh, sofia_private_t *sofia_private, sip_t const *sip,
|
||||
tagi_t tags[])
|
||||
{
|
||||
if (status >= 900) {
|
||||
if (sofia_private && sofia_private->gateway) {
|
||||
nua_handle_destroy(sofia_private->gateway->nh);
|
||||
sofia_private->gateway->nh = NULL;
|
||||
sofia_private->gateway->state = REG_STATE_UNREGED;
|
||||
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (sofia_private && sofia_private->gateway) {
|
||||
reg_state_t ostate = sofia_private->gateway->state;
|
||||
switch (status) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user