]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4250 --resolve erase replaces header after using it
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 30 May 2012 18:08:31 +0000 (13:08 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 30 May 2012 18:08:31 +0000 (13:08 -0500)
src/mod/endpoints/mod_sofia/sofia_glue.c

index cb091daf8e62afb6b143f517e156d207def7a602..2cb2fdd551ab87da52f9def119b1b0c490b072c4 100644 (file)
@@ -2087,7 +2087,9 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
        }
 
 
-       rep = switch_channel_get_variable(channel, SOFIA_REPLACES_HEADER);
+       if ((rep = switch_channel_get_variable(channel, SOFIA_REPLACES_HEADER))) {
+               switch_channel_set_variable(channel, SOFIA_REPLACES_HEADER, NULL);
+       }
 
        switch_assert(tech_pvt != NULL);