From: Spencer Thomason Date: Thu, 19 Feb 2015 23:36:54 +0000 (-0800) Subject: FS-7192: [mod_sofia] do not include Expires header in INVITEs responding to a auth... X-Git-Tag: v1.4.17~1^2~10^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54f16398310846a6b793491d21778e0961b48712;p=thirdparty%2Ffreeswitch.git FS-7192: [mod_sofia] do not include Expires header in INVITEs responding to a auth challenge --- diff --git a/src/mod/endpoints/mod_sofia/sofia_reg.c b/src/mod/endpoints/mod_sofia/sofia_reg.c index 3212531a1e..8c3e4b6fab 100644 --- a/src/mod/endpoints/mod_sofia/sofia_reg.c +++ b/src/mod/endpoints/mod_sofia/sofia_reg.c @@ -2548,7 +2548,7 @@ void sofia_reg_handle_sip_r_challenge(int status, tl_gets(tags, NUTAG_CALLSTATE_REF(ss_state), SIPTAG_WWW_AUTHENTICATE_REF(authenticate), TAG_END()); nua_authenticate(nh, - TAG_IF(gateway, SIPTAG_EXPIRES_STR(gateway ? gateway->expires_str : "3600")), + TAG_IF(sofia_private && !zstr(sofia_private->gateway_name), SIPTAG_EXPIRES_STR(gateway ? gateway->expires_str : "3600")), NUTAG_AUTH(authentication), TAG_END()); goto end;