From 757916feff50bd5faa1a586ce4bdb94a35304f84 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Sun, 29 Apr 2007 02:02:05 +0000 Subject: [PATCH] hint... hint... git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5038 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_sofia/sofia.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_sofia/sofia.c b/src/mod/endpoints/mod_sofia/sofia.c index b67957b4e0..8b67c476a3 100644 --- a/src/mod/endpoints/mod_sofia/sofia.c +++ b/src/mod/endpoints/mod_sofia/sofia.c @@ -467,7 +467,9 @@ switch_status_t config_sofia(int reload, char *profile_name) return status; } - if (!(xml = switch_xml_open_cfg(cf, &cfg, NULL))) { + snprintf(url, sizeof(url), "profile=%s", switch_str_nil(profile_name)); + + if (!(xml = switch_xml_open_cfg(cf, &cfg, url))) { switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "open of %s failed\n", cf); status = SWITCH_STATUS_FALSE; goto done;