add sip route header when uuid_phone_event'
This commit is contained in:
parent
218a00e2e9
commit
86331b65ca
|
@ -1837,6 +1837,7 @@ static switch_status_t sofia_receive_message(switch_core_session_t *session, swi
|
||||||
const char *session_id_header = sofia_glue_session_id_header(session, tech_pvt->profile);
|
const char *session_id_header = sofia_glue_session_id_header(session, tech_pvt->profile);
|
||||||
full_to = switch_str_nil(switch_channel_get_variable(channel, "sip_full_to"));
|
full_to = switch_str_nil(switch_channel_get_variable(channel, "sip_full_to"));
|
||||||
nua_notify(tech_pvt->nh, NUTAG_NEWSUB(1), NUTAG_SUBSTATE(nua_substate_active),
|
nua_notify(tech_pvt->nh, NUTAG_NEWSUB(1), NUTAG_SUBSTATE(nua_substate_active),
|
||||||
|
TAG_IF(!zstr(rr), SIPTAG_ROUTE_STR(rr), SIPTAG_ROUTE(rr)),
|
||||||
TAG_IF((full_to), SIPTAG_TO_STR(full_to)),SIPTAG_SUBSCRIPTION_STATE_STR("active"),
|
TAG_IF((full_to), SIPTAG_TO_STR(full_to)),SIPTAG_SUBSCRIPTION_STATE_STR("active"),
|
||||||
SIPTAG_EVENT_STR(event),
|
SIPTAG_EVENT_STR(event),
|
||||||
TAG_IF(!zstr(session_id_header), SIPTAG_HEADER_STR(session_id_header)),
|
TAG_IF(!zstr(session_id_header), SIPTAG_HEADER_STR(session_id_header)),
|
||||||
|
|
Loading…
Reference in New Issue