mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
patch which causes directory xml_curl requests to pass the sofia profile name
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5727 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1201,7 +1201,8 @@ SWITCH_DECLARE(switch_status_t) switch_xml_locate_user(char *user_name, char *do
|
||||
char *ip,
|
||||
switch_xml_t *root,
|
||||
switch_xml_t *domain,
|
||||
switch_xml_t *user)
|
||||
switch_xml_t *user,
|
||||
char *profile_name)
|
||||
{
|
||||
char params[1024] = "";
|
||||
switch_status_t status;
|
||||
@@ -1209,7 +1210,7 @@ SWITCH_DECLARE(switch_status_t) switch_xml_locate_user(char *user_name, char *do
|
||||
*user = NULL;
|
||||
*domain = NULL;
|
||||
|
||||
snprintf(params, sizeof(params), "user=%s&domain=%s&ip=%s", switch_str_nil(user_name), switch_str_nil(domain_name), switch_str_nil(ip));
|
||||
snprintf(params, sizeof(params), "user=%s&domain=%s&ip=%s&profile=%s", switch_str_nil(user_name), switch_str_nil(domain_name), switch_str_nil(ip), profile_name);
|
||||
if ((status = switch_xml_locate_domain(domain_name, params, root, domain)) != SWITCH_STATUS_SUCCESS) {
|
||||
return status;
|
||||
}
|
||||
|
Reference in New Issue
Block a user