Commit 6a2373d9 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

nua.docs, nua.c: updated documentation.

darcs-hash:20070102084842-65a35-cfc559839428a5ed24fe24554b641eaa49192638.gz
parent b1b9bedf
...@@ -104,7 +104,8 @@ su_log_t nua_log[] = { SU_LOG_INIT("nua", "NUA_DEBUG", SU_DEBUG) }; ...@@ -104,7 +104,8 @@ su_log_t nua_log[] = { SU_LOG_INIT("nua", "NUA_DEBUG", SU_DEBUG) };
* NUTAG_UICC() \n * NUTAG_UICC() \n
* NUTAG_CERTIFICATE_DIR() \n * NUTAG_CERTIFICATE_DIR() \n
* and all tags listed in nua_set_params(), \n * and all tags listed in nua_set_params(), \n
* and all relevant NTATAG_* are passed to NTA. * and all relevant NTATAG_* are passed to NTA \n
* and all tport tags listed in <sofia-sip/tport_tag.h>
* *
* @note * @note
* From the @VERSION_1_12_2 all the nua_set_params() tags are processed. * From the @VERSION_1_12_2 all the nua_set_params() tags are processed.
...@@ -954,7 +955,12 @@ void nua_signal(nua_t *nua, nua_handle_t *nh, msg_t *msg, int always, ...@@ -954,7 +955,12 @@ void nua_signal(nua_t *nua, nua_handle_t *nh, msg_t *msg, int always,
e->e_status = status; e->e_status = status;
e->e_phrase = phrase; e->e_phrase = phrase;
if (su_msg_send(sumsg) != 0) if (nua_log->log_level >= 7) {
char const *name = nua_event_name(event) + 4;
SU_DEBUG_7(("nua(%p): signal %s\n", nh, name));
}
if (su_msg_send(sumsg) != 0 && event != nua_r_destroy)
nua_handle_unref(nh); nua_handle_unref(nh);
} }
else { else {
...@@ -981,6 +987,10 @@ void nua_event(nua_t *root_magic, su_msg_r sumsg, event_t *e) ...@@ -981,6 +987,10 @@ void nua_event(nua_t *root_magic, su_msg_r sumsg, event_t *e)
} }
if (!nh || !nh->nh_valid) { /* Handle has been destroyed */ if (!nh || !nh->nh_valid) { /* Handle has been destroyed */
if (nua_log->log_level >= 7) {
char const *name = nua_event_name(e->e_event) + 4;
SU_DEBUG_7(("nua(%p): event %s dropped\n", nh, name));
}
if (nh && !NH_IS_DEFAULT(nh) && nua_handle_unref(nh)) { if (nh && !NH_IS_DEFAULT(nh) && nua_handle_unref(nh)) {
SU_DEBUG_9(("nua(%p): freed by application\n", nh)); SU_DEBUG_9(("nua(%p): freed by application\n", nh));
} }
......
...@@ -1124,7 +1124,7 @@ follows: ...@@ -1124,7 +1124,7 @@ follows:
<td>terminating</td> <td>terminating</td>
<td>Process answer</td> <td>Process answer</td>
<td> <td>
If there was an failure in SDP negotiation or other failure with media, If there was a failure in SDP negotiation or other failure with media,
the stack will automatically terminate the call. The BYE follows the stack will automatically terminate the call. The BYE follows
immediatelhy after the ACK. immediatelhy after the ACK.
</td></tr> </td></tr>
...@@ -1262,7 +1262,7 @@ does not include the extensions like @b 100rel or @b UPDATE. ...@@ -1262,7 +1262,7 @@ does not include the extensions like @b 100rel or @b UPDATE.
| +---------------| | : | : | +---------------| | : | :
| | +------------+ : | : | | +------------+ : | :
| | | : | : | | | : | :
| | nua_respond/18X (2) : | : | | nua_respond/18X (2a) : | :
| | | : | : | | | : | :
| | V V | : | | V V | :
| | +------------+ | : | | +------------+ | :
...@@ -2219,7 +2219,7 @@ NUTAG_AUTOANSWER(0) on B side, NUTAG_AUTOACK(0) on A side. ...@@ -2219,7 +2219,7 @@ NUTAG_AUTOANSWER(0) on B side, NUTAG_AUTOACK(0) on A side.
* @param nh operation handle associated with the notifier * @param nh operation handle associated with the notifier
* @param hmagic operation magic associated with the notifier * @param hmagic operation magic associated with the notifier
* @param sip response to MESSAGE request or NULL upon an error * @param sip response to MESSAGE request or NULL upon an error
* (error code and message are in status an phrase parameters) * (error code and message are in status and phrase parameters)
* @param tags empty * @param tags empty
* *
* @sa nua_chat(), #nua_r_message * @sa nua_chat(), #nua_r_message
......
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