]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Thu May 14 13:05:11 CDT 2009 Pekka Pessi <first.last@nokia.com>
authorMichael Jerris <mike@jerris.com>
Mon, 1 Jun 2009 22:51:27 +0000 (22:51 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 1 Jun 2009 22:51:27 +0000 (22:51 +0000)
  * nta_outgoing_tcreate(): log offending tag

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13542 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/sofia-sip/.update
libs/sofia-sip/libsofia-sip-ua/nta/nta.c

index 6bfd8e752bb1f6988e9c1c90a02d7a6b843a36b9..6915fe71c6d5a61651e54ba151d576565da46f26 100644 (file)
@@ -1 +1 @@
-Mon Jun  1 17:50:41 CDT 2009
+Mon Jun  1 17:51:14 CDT 2009
index 48ce86614631ce8802a6dbe55caa4b8c3af783e4..89f5b359d068e52013ef59e9c16f8aa904279e3b 100644 (file)
@@ -7196,6 +7196,7 @@ nta_outgoing_t *nta_outgoing_tcreate(nta_leg_t *leg,
   sip_t *sip;
   nta_outgoing_t *orq = NULL;
   ta_list ta;
+  tagi_t const *tagi;
 
   if (leg == NULL)
     return NULL;
@@ -7209,8 +7210,15 @@ nta_outgoing_t *nta_outgoing_tcreate(nta_leg_t *leg,
 
   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))