[Freeswitch-svn] [commit] r6767 - freeswitch/trunk/src/mod/xml_int/mod_xml_curl
Freeswitch SVN
anthm at freeswitch.org
Thu Dec 13 15:08:54 EST 2007
Author: anthm
Date: Thu Dec 13 15:08:53 2007
New Revision: 6767
Modified:
freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c
Log:
stfu voicemuppet
Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c
==============================================================================
--- freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c (original)
+++ freeswitch/trunk/src/mod/xml_int/mod_xml_curl/mod_xml_curl.c Thu Dec 13 15:08:53 2007
@@ -110,6 +110,9 @@
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 @@
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 : "",
More information about the Freeswitch-svn
mailing list