[asterisk-commits] res pjsip: Only invoke unidentified endpoint logic when unid... (asterisk[13.11])

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Sep 9 11:08:45 CDT 2016


Joshua Colp has submitted this change and it was merged.

Change subject: res_pjsip: Only invoke unidentified endpoint logic when unidentified.
......................................................................


res_pjsip: Only invoke unidentified endpoint logic when unidentified.

The code was incorrectly invoking the unidentified logic when
an endpoint had actually been identified, causing log messages
to be output.

ASTERISK-26349 #close

Change-Id: Id8104fc9e3d138d5e8b6f6977ecc08765fd17d4f
---
M res/res_pjsip/pjsip_distributor.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Joshua Colp: Looks good to me, approved; Verified
  Matthew Fredrickson: Looks good to me, but someone else must approve



diff --git a/res/res_pjsip/pjsip_distributor.c b/res/res_pjsip/pjsip_distributor.c
index b4faf89..1618e75 100644
--- a/res/res_pjsip/pjsip_distributor.c
+++ b/res/res_pjsip/pjsip_distributor.c
@@ -583,7 +583,7 @@
 
 	rdata->endpt_info.mod_data[endpoint_mod.id] = endpoint;
 
-	if (!is_ack) {
+	if ((endpoint == artificial_endpoint) && !is_ack) {
 		char name[AST_UUID_STR_LEN] = "";
 		pjsip_uri *from = rdata->msg_info.from->uri;
 

-- 
To view, visit https://gerrit.asterisk.org/3873
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id8104fc9e3d138d5e8b6f6977ecc08765fd17d4f
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13.11
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Matthew Fredrickson <creslin at digium.com>



More information about the asterisk-commits mailing list