From 26d493033fdf72566a586826fa27d75e61e20212 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 24 Oct 2008 00:31:40 +0000 Subject: [PATCH] add patch from stangor git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10138 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c b/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c index 1984aaf188..c73dc66846 100644 --- a/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c +++ b/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c @@ -204,6 +204,10 @@ static switch_status_t dialplan_xml_locate(switch_core_session_t *session, switc switch_event_create(¶ms, SWITCH_EVENT_REQUEST_PARAMS); switch_assert(params); + if (!switch_strlen_zero(caller_profile->context)) { + switch_event_add_header_string(params, SWITCH_STACK_BOTTOM, "Hunt-Context", caller_profile->context); + } + switch_channel_event_set_data(channel, params); status = switch_xml_locate("dialplan", NULL, NULL, NULL, root, node, params);