mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-03-14 21:20:28 +01:00
Set Codec in CallLog to values defined by TR-104
This commit is contained in:
parent
652c33bc10
commit
46a7b776e7
1 changed files with 5 additions and 1 deletions
|
|
@ -151,7 +151,11 @@ static int get_ServicesVoiceServiceCallLog_FarEndIpAddress(char *refparam, struc
|
|||
static int get_ServicesVoiceServiceCallLog_SessionDSPCodec(char *refparam, struct dmctx *ctx, void *data, char *instance, char **value)
|
||||
{
|
||||
struct call_log_entry *entry = (struct call_log_entry *)data;
|
||||
*value = (entry) ? dmstrdup(entry->codec) : "";
|
||||
if (entry) {
|
||||
const char *codec_name = get_codec_name(entry->codec);
|
||||
*value = codec_name ? dmstrdup(codec_name) : "";
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue