]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-5009
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 10 Jan 2013 18:44:35 +0000 (12:44 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 10 Jan 2013 18:44:35 +0000 (12:44 -0600)
src/mod/endpoints/mod_sofia/sofia.c

index 6029da396dca72fcde76f29f2cf7d4b0bcb2aead..68b9a38e3840f2fe6d052cf29ef716a0dd41616e 100644 (file)
@@ -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);
                }