This commit is contained in:
Anthony Minessale 2011-11-19 17:28:32 -06:00
parent ee869fe517
commit 5bb2d51cf7

View File

@ -183,11 +183,13 @@ static void extract_header_vars(sofia_profile_t *profile, sip_t const *sip,
} }
} }
if (switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND) {
if (sip->sip_contact) { if (sip->sip_contact) {
char *c = sip_header_as_string(nh->nh_home, (void *) sip->sip_contact); char *c = sip_header_as_string(nh->nh_home, (void *) sip->sip_contact);
switch_channel_set_variable(channel, "sip_recover_contact", c); switch_channel_set_variable(channel, "sip_recover_contact", c);
su_free(nh->nh_home, c); su_free(nh->nh_home, c);
} }
}
if (sip->sip_record_route) { if (sip->sip_record_route) {
sip_record_route_t *rrp; sip_record_route_t *rrp;