mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-24 06:53:41 +00:00
Handle temporary failures on gk registration
Introduce new 'stopped' state for gk client and restart gk client on failures Remove ooh323 stack command lock as it is not need now. (closes issue ASTERISK-21960) Reported by: Dmitry Melekhov Patches: ASTERISK-21960.patch ASTERISK-21960-stacklockup-2.patch Tested by: Dmitry Melekhov ........ Merged revisions 404318 from http://svn.asterisk.org/svn/asterisk/branches/11 ........ Merged revisions 404320 from http://svn.asterisk.org/svn/asterisk/branches/12 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@404321 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2851,13 +2851,13 @@ int ooGkClientHandleClientOrGkFailure(ooGkClient *pGkClient)
|
||||
{
|
||||
OOTRACEERR1("Error: Gatekeeper error detected. Closing GkClient as "
|
||||
"Gk mode is UseSpecifcGatekeeper\n");
|
||||
ooGkClientDestroy();
|
||||
pGkClient->state = GkClientStopped;
|
||||
return OO_FAILED;
|
||||
}
|
||||
else{
|
||||
OOTRACEERR1("Error: Gatekeeper error detected. Closing GkClient. NEED"
|
||||
" to implement recovery by rediscovering another gk\n");
|
||||
ooGkClientDestroy();
|
||||
pGkClient->state = GkClientStopped;
|
||||
return OO_FAILED;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user