mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
(MODENDP-112) custom sofia::gateway_state event
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9932 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1193,7 +1193,8 @@ static switch_status_t sofia_receive_event(switch_core_session_t *session, switc
|
||||
|
||||
typedef switch_status_t (*sofia_command_t) (char **argv, int argc, switch_stream_handle_t *stream);
|
||||
|
||||
static const char *sofia_state_names[] = { "UNREGED",
|
||||
static const char *sofia_state_names[] = {
|
||||
"UNREGED",
|
||||
"TRYING",
|
||||
"REGISTER",
|
||||
"REGED",
|
||||
@@ -1204,6 +1205,11 @@ static const char *sofia_state_names[] = { "UNREGED",
|
||||
NULL
|
||||
};
|
||||
|
||||
const char * sofia_state_string(int state)
|
||||
{
|
||||
return sofia_state_names[state];
|
||||
}
|
||||
|
||||
struct cb_helper {
|
||||
sofia_profile_t *profile;
|
||||
switch_stream_handle_t *stream;
|
||||
|
||||
Reference in New Issue
Block a user