mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-25 20:19:36 +00:00
stfu voicemuppet
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6767 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
5be3251166
commit
04faa8a80c
@ -110,6 +110,9 @@ static switch_xml_t xml_url_fetch(const char *section, const char *tag_name, con
|
|||||||
struct curl_slist *slist = NULL;
|
struct curl_slist *slist = NULL;
|
||||||
long httpRes = 0;
|
long httpRes = 0;
|
||||||
struct curl_slist *headers = NULL;
|
struct curl_slist *headers = NULL;
|
||||||
|
char hostname[256] = "";
|
||||||
|
|
||||||
|
gethostname(hostname, sizeof(hostname));
|
||||||
|
|
||||||
if (!binding) {
|
if (!binding) {
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -125,7 +128,8 @@ static switch_xml_t xml_url_fetch(const char *section, const char *tag_name, con
|
|||||||
return xml;
|
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,
|
section,
|
||||||
tag_name ? tag_name : "",
|
tag_name ? tag_name : "",
|
||||||
key_name ? key_name : "",
|
key_name ? key_name : "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user