]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 20 Nov 2008 14:22:41 +0000 (14:22 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 20 Nov 2008 14:22:41 +0000 (14:22 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10477 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_sofia/mod_sofia.c

index e84645c7a095f8ed3623a3484b150464e9ab5e57..90a652d7de3b6e7c26ce51a94e02a349a71e3266 100644 (file)
@@ -1134,8 +1134,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
                        switch_mutex_lock(tech_pvt->sofia_mutex);
                        
                        if ((var = switch_channel_get_variable(tech_pvt->channel, "sip_refer_reply"))) {
-                               msg->string_reply = strdup(var); 
-                               switch_set_flag(msg, SCSMF_FREE_STRING_REPLY);
+                               msg->string_reply = switch_core_session_strdup(session, var); 
                        } else {
                                msg->string_reply = "no reply";
                        }