Commit 27b103bd authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Added nua_callstate_name().

parent e4991806
......@@ -229,3 +229,20 @@ char const *nua_event_name(nua_event_t event)
default: return "NUA_UNKNOWN";
/** Return name of call state */
char const *nua_callstate_name(enum nua_callstate state)
switch (state) {
case nua_callstate_init: return "init";
case nua_callstate_calling: return "calling";
case nua_callstate_proceeding: return "proceeding";
case nua_callstate_received: return "received";
case nua_callstate_early: return "early";
case nua_callstate_ready: return "ready";
case nua_callstate_terminating: return "terminating";
case nua_callstate_terminated: return "terminated";
default: return "UNKNOWN";
......@@ -1046,6 +1046,9 @@ enum nua_callstate {
nua_callstate_terminated /**< BYE complete */
/** Get name for NUA call state */
char const *nua_callstate_name(enum nua_callstate state);
/** Subscription state
* @par Used with
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment