FS-3686
This commit is contained in:
parent
ee869fe517
commit
5bb2d51cf7
|
@ -183,10 +183,12 @@ static void extract_header_vars(sofia_profile_t *profile, sip_t const *sip,
|
|||
}
|
||||
}
|
||||
|
||||
if (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);
|
||||
su_free(nh->nh_home, c);
|
||||
if (switch_channel_direction(channel) == SWITCH_CALL_DIRECTION_OUTBOUND) {
|
||||
if (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);
|
||||
su_free(nh->nh_home, c);
|
||||
}
|
||||
}
|
||||
|
||||
if (sip->sip_record_route) {
|
||||
|
|
Loading…
Reference in New Issue