let sofia recover work in some tcp situations

This commit is contained in:
Anthony Minessale committed 2013-07-23 13:52:49 -05:00
1 parent 22715d36ed
commit 3ddbad4dd3
3 files changed
+8 -7

No files matched your search

+1 -1
View File
@@ -253,7 +253,7 @@ static void extract_header_vars(sofia_profile_t *profile, sip_t const *sip,
switch_channel_set_variable(channel, "sip_full_via", (char *)stream.data);
if (switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND) {
if (switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND || switch_stristr("TCP", (char *)stream.data)) {
switch_channel_set_variable(channel, "sip_recover_via", (char *)stream.data);
}