diff options
author | Sean Bright <sean.bright@gmail.com> | 2017-11-01 14:58:32 -0400 |
---|---|---|
committer | Sean Bright <sean.bright@gmail.com> | 2017-11-01 13:59:09 -0500 |
commit | 65c718ab50803df6b73831ebe6846e53f94c053b (patch) | |
tree | cff405f7c6c1524e797edc8338b5e90024be8109 /res/res_pjsip/pjsip_message_filter.c | |
parent | 21b922b565bdba9254445d1002a8a077d50ebe88 (diff) |
pjsip_message_filter: Only do interface lookup for wildcard addresses.
Change-Id: Ie083987e69dc43b6861671c218cacacc11b2072f
Diffstat (limited to 'res/res_pjsip/pjsip_message_filter.c')
-rw-r--r-- | res/res_pjsip/pjsip_message_filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip/pjsip_message_filter.c b/res/res_pjsip/pjsip_message_filter.c index 978aeb070..085d9787e 100644 --- a/res/res_pjsip/pjsip_message_filter.c +++ b/res/res_pjsip/pjsip_message_filter.c @@ -236,7 +236,7 @@ static pj_status_t filter_on_tx_message(pjsip_tx_data *tdata) pjsip_tpmgr_fla2_param_default(&prm); prm.tp_type = tdata->tp_info.transport->key.type; pj_strset2(&prm.dst_host, tdata->tp_info.dst_name); - prm.local_if = PJ_TRUE; + prm.local_if = is_bound_any(tdata->tp_info.transport); /* If we can't get the local address use best effort and let it pass */ if (pjsip_tpmgr_find_local_addr2(pjsip_endpt_get_tpmgr(ast_sip_get_pjsip_endpoint()), tdata->pool, &prm) != PJ_SUCCESS) { |