]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10792: [mod_sofia] when behind 1-to-1 NAT, console logs invalid handle #resolve
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 15 Nov 2017 18:53:51 +0000 (12:53 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 15 Nov 2017 19:04:15 +0000 (13:04 -0600)
src/mod/endpoints/mod_sofia/sofia.c

index 758435d15d71046b9546007d50a529334bd99ede..fc8a8acfa780319fa3fadc2f570e18f814786b87 100644 (file)
@@ -10668,7 +10668,7 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia
 
        if (sofia_glue_check_nat(profile, tech_pvt->mparams.remote_ip)) {
                tech_pvt->user_via = sofia_glue_create_external_via(session, profile, tech_pvt->transport);
-               nua_set_hparams(tech_pvt->nh, SIPTAG_VIA_STR(tech_pvt->user_via), TAG_END());
+               nua_set_hparams(nh, SIPTAG_VIA_STR(tech_pvt->user_via), TAG_END());
        }
 
        if (sip->sip_contact) {