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

George Joseph asteriskteam at digium.com
Fri Sep 9 11:04:05 CDT 2016


George Joseph has uploaded a new change for review.

  https://gerrit.asterisk.org/3873

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(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/73/3873/1

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: newchange
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>



More information about the asterisk-code-review mailing list