[asterisk-commits] mjordan: branch group/asterisk-13-sipit r424093 - /team/group/asterisk-13-sip...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Sep 29 08:16:50 CDT 2014


Author: mjordan
Date: Mon Sep 29 08:16:44 2014
New Revision: 424093

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=424093
Log:
res/res_hep_pjsip: Don't attempt to format an empty address

This will throw an assertion in pjproject :-(

Modified:
    team/group/asterisk-13-sipit/res/res_hep_pjsip.c

Modified: team/group/asterisk-13-sipit/res/res_hep_pjsip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/asterisk-13-sipit/res/res_hep_pjsip.c?view=diff&rev=424093&r1=424092&r2=424093
==============================================================================
--- team/group/asterisk-13-sipit/res/res_hep_pjsip.c (original)
+++ team/group/asterisk-13-sipit/res/res_hep_pjsip.c Mon Sep 29 08:16:44 2014
@@ -121,8 +121,12 @@
 		return PJ_SUCCESS;
 	}
 
-	pj_sockaddr_print(&rdata->tp_info.transport->local_addr, local_buf, sizeof(local_buf), 3);
-	pj_sockaddr_print(&rdata->pkt_info.src_addr, remote_buf, sizeof(remote_buf), 3);
+	if (rdata->tp_info.transport->addr_len) {
+		pj_sockaddr_print(&rdata->tp_info.transport->local_addr, local_buf, sizeof(local_buf), 3);
+	}
+	if (rdata->pkt_info.src_addr_len) {
+		pj_sockaddr_print(&rdata->pkt_info.src_addr, remote_buf, sizeof(remote_buf), 3);
+	}
 
 	uuid = assign_uuid(&rdata->msg_info.cid->id, &rdata->msg_info.to->tag, &rdata->msg_info.from->tag);
 	if (!uuid) {




More information about the asterisk-commits mailing list