mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-30 18:33:46 +00:00
FS-4404 regression from b9b4db7d40159ec1b8d2a0c0f41655339daa0887
This commit is contained in:
parent
27155bcb71
commit
6904ae6f3b
@ -1074,13 +1074,15 @@ static void our_sofia_event_callback(nua_event_t event,
|
|||||||
|
|
||||||
case nua_i_cancel:
|
case nua_i_cancel:
|
||||||
|
|
||||||
switch_channel_set_variable(channel, "sip_hangup_disposition", "recv_cancel");
|
if (sip && channel) {
|
||||||
|
switch_channel_set_variable(channel, "sip_hangup_disposition", "recv_cancel");
|
||||||
|
|
||||||
if (sip && channel && sip->sip_reason) {
|
if (sip->sip_reason) {
|
||||||
char *reason_header = sip_header_as_string(nh->nh_home, (void *) sip->sip_reason);
|
char *reason_header = sip_header_as_string(nh->nh_home, (void *) sip->sip_reason);
|
||||||
|
|
||||||
if (!zstr(reason_header)) {
|
if (!zstr(reason_header)) {
|
||||||
switch_channel_set_variable_partner(channel, "sip_reason", reason_header);
|
switch_channel_set_variable_partner(channel, "sip_reason", reason_header);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user