mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-01 11:02:53 +00:00
Fix segfault in mod_cdr_mongo when "number" is null. Thanks Dave May for bug report and patch. Fixes FS-4843.
This commit is contained in:
parent
961a6fbcad
commit
6c2baed108
@ -204,8 +204,8 @@ static switch_status_t my_on_reporting(switch_core_session_t *session)
|
||||
|
||||
bson_append_start_object(&cdr, "extension");
|
||||
|
||||
bson_append_string(&cdr, "name", caller_profile->caller_extension->extension_name);
|
||||
bson_append_string(&cdr, "number", caller_profile->caller_extension->extension_number);
|
||||
bson_append_string(&cdr, "name", switch_str_nil(caller_profile->caller_extension->extension_name));
|
||||
bson_append_string(&cdr, "number", switch_str_nil(caller_profile->caller_extension->extension_number));
|
||||
|
||||
if (caller_profile->caller_extension->current_application) {
|
||||
bson_append_string(&cdr, "current_app", caller_profile->caller_extension->current_application->application_name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user