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);
}
}