From: Anthony Minessale Date: Thu, 13 Dec 2007 20:08:53 +0000 (+0000) Subject: stfu voicemuppet X-Git-Tag: v1.0-rc1~1087 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04faa8a80c08a079c3a3f4b3684d3ddff1632e05;p=thirdparty%2Ffreeswitch.git stfu voicemuppet git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6767 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c b/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c index 0e2ef17eee..7cadcc72ed 100644 --- a/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c +++ b/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c @@ -110,6 +110,9 @@ static switch_xml_t xml_url_fetch(const char *section, const char *tag_name, con struct curl_slist *slist = NULL; long httpRes = 0; struct curl_slist *headers = NULL; + char hostname[256] = ""; + + gethostname(hostname, sizeof(hostname)); if (!binding) { return NULL; @@ -125,7 +128,8 @@ static switch_xml_t xml_url_fetch(const char *section, const char *tag_name, con return xml; } - if (!(data = switch_mprintf("section=%s&tag_name=%s&key_name=%s&key_value=%s%s%s", + if (!(data = switch_mprintf("hostname=%s§ion=%s&tag_name=%s&key_name=%s&key_value=%s%s%s", + hostname, section, tag_name ? tag_name : "", key_name ? key_name : "",