[Freeswitch-svn] [commit] r11948 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/nua
FreeSWITCH SVN
mikej at freeswitch.org
Thu Feb 12 13:13:20 PST 2009
Author: mikej
Date: Thu Feb 12 15:13:20 2009
New Revision: 11948
Log:
Thu Feb 12 14:11:37 CST 2009 Pekka Pessi <first.last at nokia.com>
* nua_client.c: fix request message reference counting problem
Ignore-this: ac81944c1c2c095fdc66a51ca857e87c
Internal error response already decreases reference count.
Modified:
freeswitch/trunk/libs/sofia-sip/.update
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_client.c
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_client.h
Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update (original)
+++ freeswitch/trunk/libs/sofia-sip/.update Thu Feb 12 15:13:20 2009
@@ -1 +1 @@
-Thu Feb 12 15:11:37 CST 2009
+Thu Feb 12 15:13:11 CST 2009
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_client.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_client.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_client.c Thu Feb 12 15:13:20 2009
@@ -877,7 +877,7 @@
else
error = nua_base_client_request(cr, msg, sip, NULL);
- if (error != 0 && error != -2)
+ if (error == -1)
msg_destroy(msg);
return error;
@@ -906,9 +906,9 @@
/** Send request.
*
* @retval 0 success
- * @retval -1 if error occurred, but event has not been sent
- * @retval -2 if error occurred, event has not been sent,
- * and @a msg has been destroyed
+ * @retval -1 if error occurred, but event has not been sent,
+ * and caller has to destroy request message @ msg
+ * @retval -2 if error occurred, event has not been sent
* @retval >=1 if error event has been sent
*/
int nua_base_client_request(nua_client_request_t *cr, msg_t *msg, sip_t *sip,
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_client.h
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_client.h (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_client.h Thu Feb 12 15:13:20 2009
@@ -71,8 +71,8 @@
*
* @retval 1 when request has been responded
* @retval 0 when request has been sent
- * @retval -1 upon an error (request message has not been destroyed)
- * @retval -2 upon an error (request message has been destroyed)
+ * @retval -1 upon an error (but request message has not been destroyed)
+ * @retval -2 upon an error
*/
int (*crm_send)(nua_client_request_t *,
msg_t *msg, sip_t *sip,
@@ -80,7 +80,7 @@
/** @a crm_check_restart is called each time when a response is received.
*
- * It is used to restart reqquest after responses with method-specific
+ * It is used to restart request after responses with method-specific
* status code or method-specific way of restarting the request.
*
* @retval 1 when request has been restarted
More information about the Freeswitch-svn
mailing list