signalwire / freeswitch

FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a versatile software implementation that runs on any commodity hardware. From a Raspberry PI to a multi-core server, FreeSWITCH can unlock the telecommunications potential of any device.
https://freeswitch.com/#getting-started
Other
3.49k stars 1.4k forks source link

[mod_odbc_cdr]mysql database field is empty when saves "Caller-Unique-ID" #184

Open gitliuyf opened 4 years ago

gitliuyf commented 4 years ago

I have FreeSWITCH Version 1.6.20 in debain 8. And I use mod_odbc_cdr to save CDRs to mysql database, refers to https://freeswitch.org/confluence/display/FREESWITCH/mod_odbc_cdr . But in table cdr_table_both, the chan-var-name="Caller-Unique-ID" hasn't saved, the filed is null. When I change Caller-Unique-ID to Channel-Call-UUID, it is null too. When I change Caller-Unique-ID to call_uuid, if caller hangup , it is same as bleg's uuid;if callee hang up, it is same as aleg's uuid. But Why? Is there any channel variables always indicate the same phone call, whether it's a leg or b leg?

MartinJPaterson commented 3 years ago

I think the page you refer to is just wrong. The variable name is call_uuid. It is supposed to be the same in aleg and bleg CDRs according to this page: https://freeswitch.org/confluence/display/FREESWITCH/originating_leg_uuid (It doesn't seem to have a page for itself.)