mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-24 05:02:10 +00:00
FS-6540 #comment please test this patch for the added notify functionality
This commit is contained in:
@@ -1180,10 +1180,22 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
|
||||
break;
|
||||
case SWITCH_MESSAGE_INDICATE_BLIND_TRANSFER_RESPONSE:
|
||||
{
|
||||
const char *event = switch_channel_get_variable(channel, "sip_blind_transfer_event");
|
||||
const char *uuid = switch_channel_get_variable(channel, "blind_transfer_uuid");
|
||||
const char *event;
|
||||
const char *uuid;
|
||||
char *xdest;
|
||||
|
||||
if (msg->string_arg) {
|
||||
nua_notify(tech_pvt->nh, NUTAG_NEWSUB(1), SIPTAG_CONTENT_TYPE_STR("message/sipfrag;version=2.0"),
|
||||
NUTAG_SUBSTATE(nua_substate_terminated),
|
||||
SIPTAG_SUBSCRIPTION_STATE_STR("terminated;reason=noresource"),
|
||||
SIPTAG_PAYLOAD_STR(msg->string_arg),
|
||||
SIPTAG_EVENT_STR("refer"), TAG_END());
|
||||
goto end;
|
||||
}
|
||||
|
||||
event = switch_channel_get_variable(channel, "sip_blind_transfer_event");
|
||||
uuid = switch_channel_get_variable(channel, "blind_transfer_uuid");
|
||||
|
||||
if (event && uuid) {
|
||||
char payload_str[255] = "SIP/2.0 403 Forbidden\r\n";
|
||||
if (msg->numeric_arg) {
|
||||
|
||||
Reference in New Issue
Block a user