]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
res_pjsip: Only invoke unidentified endpoint logic when unidentified. 63/3863/2
authorJoshua Colp <jcolp@digium.com>
Fri, 9 Sep 2016 10:39:51 +0000 (10:39 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 9 Sep 2016 10:43:58 +0000 (10:43 +0000)
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

res/res_pjsip/pjsip_distributor.c

index ea3fff69b10bf5dd39e9f0f6cf1177651488791d..79006110a7c15efb1ed7cb391417f605aab3e83c 100644 (file)
@@ -583,7 +583,7 @@ static pj_bool_t endpoint_lookup(pjsip_rx_data *rdata)
 
        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;