From c0d656de05389884b0acd7611ded428bc567192f Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Sat, 14 Apr 2007 00:43:50 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4932 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 95007d2984..514c6154f9 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -1653,7 +1653,7 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_ sofia_glue_sofia_glue_tech_set_codecs(tech_pvt); switch_channel_set_variable(channel, SWITCH_ENDPOINT_DISPOSITION_VARIABLE, "INBOUND CALL"); - sofia_presence_set_chat_hash(tech_pvt, sip); + if (switch_test_flag(tech_pvt, TFLAG_INB_NOMEDIA)) { switch_set_flag_locked(tech_pvt, TFLAG_NOMEDIA); @@ -1739,7 +1739,7 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_ } memset(tech_pvt->sofia_private, 0, sizeof(*tech_pvt->sofia_private)); tech_pvt->sofia_private->home = su_home_new(sizeof(*tech_pvt->sofia_private->home)); - + sofia_presence_set_chat_hash(tech_pvt, sip); switch_copy_string(tech_pvt->sofia_private->uuid, switch_core_session_get_uuid(session), sizeof(tech_pvt->sofia_private->uuid)); nua_handle_bind(nh, tech_pvt->sofia_private); tech_pvt->nh = nh;