[Freeswitch-svn] [commit] r13497 - freeswitch/trunk/src/mod/endpoints/mod_sofia

FreeSWITCH SVN brian at freeswitch.org
Thu May 28 16:39:47 PDT 2009


Author: brian
Date: Thu May 28 18:39:46 2009
New Revision: 13497

Log:
 doh this is the right way for this 

Modified:
   freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
   freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/mod_sofia.c	Thu May 28 18:39:46 2009
@@ -1256,7 +1256,7 @@
 				} else {
 					snprintf(message, sizeof(message), "P-Asserted-Identity: \"%s\" <%s>", msg->string_arg, tech_pvt->caller_profile->destination_number);
 					nua_update(tech_pvt->nh,
-							   SIPTAG_HEADER_STR(message),
+							   TAG_IF(!switch_strlen_zero_buf(message), SIPTAG_HEADER_STR(message)),
 							   TAG_END());
 				}
 			}

Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c
==============================================================================
--- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	(original)
+++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c	Thu May 28 18:39:46 2009
@@ -5070,7 +5070,7 @@
 					snprintf(message, sizeof(message), "P-Asserted-Identity: \"%s\" <%s>", acp->caller_id_name, acp->caller_id_number);
 				}
 				nua_update(b_tech_pvt->nh,
-						   SIPTAG_HEADER_STR(message),
+						   TAG_IF(!switch_strlen_zero_buf(message), SIPTAG_HEADER_STR(message)),
 						   TAG_END());
 			}
 		}



More information about the Freeswitch-svn mailing list