diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 6029da396d..68b9a38e38 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -7754,7 +7754,7 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia } if (sip && sip->sip_to) { - user = switch_core_session_sprintf(session, "%s@%s", sip->sip_to->a_url->url_user, sip->sip_to->a_url->url_host); + user = switch_core_session_sprintf(session, "%s@%s", sip->sip_from->a_url->url_user, sip->sip_from->a_url->url_host); switch_ivr_set_user(session, user); }