Revision
14850
Author
brian
Date
2009-09-14 14:39:33 -0500 (Mon, 14 Sep 2009)

Log Message

 XML-10 

Modified Paths

Diff

Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c (14849 => 14850)


--- freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c	2009-09-14 19:34:35 UTC (rev 14849)
+++ freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c	2009-09-14 19:39:33 UTC (rev 14850)
@@ -176,6 +176,11 @@
 	switch_assert(data);
 
 	if (binding->use_dynamic_url) {
+		if (!params) {
+			switch_event_create(&params, SWITCH_EVENT_REQUEST_PARAMS);
+			switch_assert(params);
+		}
+
 		switch_event_add_header_string(params, SWITCH_STACK_TOP, "hostname", hostname);
 		switch_event_add_header_string(params, SWITCH_STACK_TOP, "section", switch_str_nil(section));
 		switch_event_add_header_string(params, SWITCH_STACK_TOP, "tag_name", switch_str_nil(tag_name));