]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
MODSOFIA-91
authorBrian West <brian@freeswitch.org>
Tue, 17 Aug 2010 14:41:21 +0000 (09:41 -0500)
committerBrian West <brian@freeswitch.org>
Tue, 17 Aug 2010 14:44:36 +0000 (09:44 -0500)
src/mod/endpoints/mod_sofia/mod_sofia.c

index ba8f7b71c7c4f2e971b8fdef0d3117fc89a89c03..2791692cab28e58bc5fa0b5712de25d2346ca7dd 100644 (file)
@@ -1679,14 +1679,16 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
                                                to_host = switch_channel_get_variable(rchannel, "sip_to_host");
                                                from_user = switch_channel_get_variable(channel, "sip_from_user");
                                                from_host = switch_channel_get_variable(channel, "sip_from_host");
+                                               to_tag = switch_channel_get_variable(rchannel, "sip_to_tag");
+                                               from_tag = switch_channel_get_variable(rchannel, "sip_from_tag");
                                        } else {
                                                to_host = switch_channel_get_variable(channel, "sip_to_host");
                                                from_user = switch_channel_get_variable(rchannel, "sip_from_user");
                                                from_host = switch_channel_get_variable(rchannel, "sip_from_host");
+                                               from_tag = switch_channel_get_variable(rchannel, "sip_to_tag");
+                                               to_tag = switch_channel_get_variable(rchannel, "sip_from_tag");
                                        }
 
-                                       to_tag = switch_channel_get_variable(rchannel, "sip_to_tag");
-                                       from_tag = switch_channel_get_variable(rchannel, "sip_from_tag");
                                        switch_core_session_rwunlock(rsession);
                                }
                        }