mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-01 11:02:53 +00:00
fix missing name and potential segfault in gateway status
This commit is contained in:
parent
e0c37c1f6e
commit
40ac860aaa
@ -2293,11 +2293,14 @@ static const char *sofia_state_names[] = {
|
||||
"FAIL_WAIT",
|
||||
"EXPIRED",
|
||||
"NOREG",
|
||||
"TIMEOUT",
|
||||
NULL
|
||||
};
|
||||
|
||||
const char *sofia_state_string(int state)
|
||||
{
|
||||
if (state >= REG_STATE_LAST) return "";
|
||||
|
||||
return sofia_state_names[state];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user