From c0a6abad73c612d9b65229a596d6008c227a6905 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 26 Apr 2010 02:11:46 -0400 Subject: [PATCH] mod_xml_cdr: add leg param to query string (XML-24) --- src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c b/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c index 3097b2144b..b8dc08ff3f 100644 --- a/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c +++ b/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c @@ -337,7 +337,8 @@ static switch_status_t my_on_reporting(switch_core_session_t *session) switch_yield(globals.delay * 1000000); } - destUrl = switch_mprintf("%s?uuid=%s", globals.urls[globals.url_index], switch_core_session_get_uuid(session)); + destUrl = switch_mprintf("%s?uuid=%s&leg=%c", globals.urls[globals.url_index], switch_core_session_get_uuid(session), + is_b ? 'b' : 'a'); curl_easy_setopt(curl_handle, CURLOPT_URL, destUrl); if (!strncasecmp(destUrl, "https", 5)) {