[Freeswitch-svn] [commit] r6113 - freeswitch/trunk/src/mod/endpoints/mod_sofia
Author: anthm Date: Wed Oct 31 18:26:54 2007 New Revision: 6113 Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Log: inbound_context and inbound_dialplan vars in regged user to direct callflow Modified: freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c ============================================================================== --- freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c (original) +++ freeswitch/trunk/src/mod/endpoints/mod_sofia/sofia.c Wed Oct 31 18:26:54 2007 @@ -1919,6 +1919,7 @@ const char *destination_number = NULL; const char *from_user = NULL, *from_host = NULL; const char *context = NULL; + const char *dialplan = NULL; char network_ip[80]; switch_event_t *v_event = NULL; uint32_t sess_count = switch_core_session_count(); @@ -2128,6 +2129,9 @@ } } + if (!context) { + context = switch_channel_get_variable(channel, "inbound_context"); + } if (!context) { if (profile->context && !strcasecmp(profile->context, "_domain_")) { @@ -2137,9 +2141,13 @@ } } + if (!(dialplan = switch_channel_get_variable(channel, "inbound_dialplan"))) { + dialplan = profile->dialplan; + } + tech_pvt->caller_profile = switch_caller_profile_new(switch_core_session_get_pool(session), from_user, - profile->dialplan, + dialplan, displayname, from_user, network_ip,
participants (1)
-
Freeswitch SVN