[Freeswitch-svn] [commit] r8334 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/nua
Freeswitch SVN
mikej at freeswitch.org
Fri May 9 13:44:02 EDT 2008
Author: mikej
Date: Fri May 9 13:44:02 2008
New Revision: 8334
Modified:
freeswitch/trunk/libs/sofia-sip/.update
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_stack.c
Log:
Wed May 7 10:05:57 EDT 2008 Pekka Pessi <first.last at nokia.com>
* nua_stack.c: if nua_register() fails to provide To, use From.
Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update (original)
+++ freeswitch/trunk/libs/sofia-sip/.update Fri May 9 13:44:02 2008
@@ -1 +1 @@
-Fri May 9 13:43:01 EDT 2008
+Fri May 9 13:43:35 EDT 2008
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_stack.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_stack.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nua/nua_stack.c Fri May 9 13:44:02 2008
@@ -2290,6 +2290,12 @@
sip_add_dup(msg, sip, (sip_header_t *)nua->nua_from) < 0)
return nua_client_return(cr, NUA_ERROR_AT(__FILE__, __LINE__), msg);
+ if (sip->sip_to == NULL && cr->cr_method == sip_method_register &&
+ sip_add_dup_as(msg, sip, sip_to_class,
+ (sip_header_t *)sip->sip_from) < 0) {
+ return nua_client_return(cr, NUA_ERROR_AT(__FILE__, __LINE__), msg);
+ }
+
if (cr->cr_dialog) {
ds->ds_leg = nta_leg_tcreate(nua->nua_nta,
nua_stack_process_request, nh,
More information about the Freeswitch-svn
mailing list