mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
passing non-null value to generate_xml_cdr now implies its an initalized xml object
This commit is contained in:
@@ -133,7 +133,7 @@ static rc_handle *my_radius_init(void)
|
||||
|
||||
static switch_status_t my_on_routing(switch_core_session_t *session)
|
||||
{
|
||||
switch_xml_t cdr;
|
||||
switch_xml_t cdr = NULL;
|
||||
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||
rc_handle *rad_config;
|
||||
switch_status_t retval = SWITCH_STATUS_TERM;
|
||||
@@ -377,7 +377,7 @@ static switch_status_t my_on_routing(switch_core_session_t *session)
|
||||
|
||||
static switch_status_t my_on_reporting(switch_core_session_t *session)
|
||||
{
|
||||
switch_xml_t cdr;
|
||||
switch_xml_t cdr = NULL;
|
||||
switch_channel_t *channel = switch_core_session_get_channel(session);
|
||||
rc_handle *rad_config;
|
||||
switch_status_t retval = SWITCH_STATUS_TERM;
|
||||
|
||||
@@ -2090,7 +2090,7 @@ static JSBool session_pre_answer(JSContext * cx, JSObject * obj, uintN argc, jsv
|
||||
static JSBool session_cdr(JSContext * cx, JSObject * obj, uintN argc, jsval * argv, jsval * rval)
|
||||
{
|
||||
struct js_session *jss = JS_GetPrivate(cx, obj);
|
||||
switch_xml_t cdr;
|
||||
switch_xml_t cdr = NULL;
|
||||
|
||||
/*Always a pessimist... sheesh! */
|
||||
*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
|
||||
|
||||
@@ -179,7 +179,7 @@ static switch_status_t set_xml_cdr_log_dirs()
|
||||
|
||||
static switch_status_t my_on_reporting(switch_core_session_t *session)
|
||||
{
|
||||
switch_xml_t cdr;
|
||||
switch_xml_t cdr = NULL;
|
||||
char *xml_text = NULL;
|
||||
char *path = NULL;
|
||||
char *curl_xml_text = NULL;
|
||||
|
||||
Reference in New Issue
Block a user