From: Anthony Minessale Date: Fri, 8 Jun 2007 23:05:12 +0000 (+0000) Subject: doh X-Git-Tag: v1.0-beta1~222 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb717cf2504d8fb58e0a048f5900f53cbf0cdeaa;p=thirdparty%2Ffreeswitch.git doh git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5298 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index 572d9d9f17..a17c27b4e1 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -1763,6 +1763,7 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_ } return; } + switch_channel_set_variable(channel, "sip_authorized", "true"); } if (!(session = switch_core_session_request(&sofia_endpoint_interface, NULL))) { @@ -1786,7 +1787,8 @@ void sofia_handle_sip_i_invite(nua_t *nua, sofia_profile_t *profile, nua_handle_ get_addr(network_ip, sizeof(network_ip), &((struct sockaddr_in *) msg_addrinfo(nua_current_request(nua))->ai_addr)->sin_addr); channel = switch_core_session_get_channel(session); - switch_channel_set_variable(channel, "sip_authorized", "true"); + + if (v_event) {