]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add patch from stangor
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 24 Oct 2008 00:31:40 +0000 (00:31 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 24 Oct 2008 00:31:40 +0000 (00:31 +0000)
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

index 1984aaf18866de6dae63c33c42938d479d0de0c0..c73dc668469be3fd474fe2e1cf3a099314a5f2e0 100644 (file)
@@ -204,6 +204,10 @@ static switch_status_t dialplan_xml_locate(switch_core_session_t *session, switc
        switch_event_create(&params, 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);