[Freeswitch-svn] [commit] r10138 - freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml

Freeswitch SVN anthm at freeswitch.org
Thu Oct 23 20:31:40 EDT 2008


Author: anthm
Date: Thu Oct 23 20:31:40 2008
New Revision: 10138

Modified:
   freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c

Log:
add patch from stangor

Modified: freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c
==============================================================================
--- freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c	(original)
+++ freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c	Thu Oct 23 20:31:40 2008
@@ -204,6 +204,10 @@
 	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);



More information about the Freeswitch-svn mailing list