add user_via to ack in case with track calls

This commit is contained in:
Anthony Minessale 2012-03-07 15:40:55 -06:00
parent a6f7ad07ea
commit f558247d7d
1 changed files with 7 additions and 5 deletions

View File

@ -5698,7 +5698,9 @@ static void sofia_handle_sip_i_state(switch_core_session_t *session, int status,
nua_ack(nh,
TAG_IF(invite_full_from, SIPTAG_FROM_STR(invite_full_from)),
TAG_IF(invite_full_to, SIPTAG_TO_STR(invite_full_to)),
TAG_IF(!zstr(invite_full_via), SIPTAG_VIA_STR(invite_full_via)),
TAG_IF(!zstr(tech_pvt->user_via), SIPTAG_VIA_STR(tech_pvt->user_via)),
TAG_IF((zstr(tech_pvt->user_via) && !zstr(invite_full_via)), SIPTAG_VIA_STR(invite_full_via)),
TAG_IF(!zstr(invite_route_uri), SIPTAG_ROUTE_STR(invite_route_uri)),
TAG_END());