[Freeswitch-svn] [commit] r13542 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/nta

FreeSWITCH SVN mikej at freeswitch.org
Mon Jun 1 15:51:27 PDT 2009


Author: mikej
Date: Mon Jun  1 17:51:27 2009
New Revision: 13542

Log:
Thu May 14 13:05:11 CDT 2009  Pekka Pessi <first.last at nokia.com>
  * nta_outgoing_tcreate(): log offending tag



Modified:
   freeswitch/trunk/libs/sofia-sip/.update
   freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c

Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update	(original)
+++ freeswitch/trunk/libs/sofia-sip/.update	Mon Jun  1 17:51:27 2009
@@ -1 +1 @@
-Mon Jun  1 17:50:41 CDT 2009
+Mon Jun  1 17:51:14 CDT 2009

Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c	(original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/nta/nta.c	Mon Jun  1 17:51:27 2009
@@ -7196,6 +7196,7 @@
   sip_t *sip;
   nta_outgoing_t *orq = NULL;
   ta_list ta;
+  tagi_t const *tagi;
 
   if (leg == NULL)
     return NULL;
@@ -7209,8 +7210,15 @@
 
   ta_start(ta, tag, value);
 
-  if (sip_add_tl(msg, sip, ta_tags(ta)) < 0)
-    ;
+  tagi = ta_args(ta);
+
+  if (sip_add_tagis(msg, sip, &tagi) < 0) {
+    if (tagi && tagi->t_tag) {
+      tag_type_t t = tagi->t_tag;
+      SU_DEBUG_5(("%s(): bad tag %s::%s\n", __func__,
+		  t->tt_ns ? t->tt_ns : "", t->tt_name ? t->tt_name : ""));
+    }
+  }
   else if (route_url == NULL && leg->leg_route &&
 	   leg->leg_loose_route &&
 	   !(route_url = (url_string_t *)leg->leg_route->r_url))



More information about the Freeswitch-svn mailing list