Issue: Lost CDR Uniqueid
Freepbx: 10.13.66-13
Asterisk: 11.23.1
i have appr running a macro when the user hit *100 i call a macro when i call the macro i get the next:
– Executing [s@macro-on:10] NoOp(“SIP/1000-00000d72”, “1476836678.4560”) in new stack
but when the call finish i get in the cdr record a diferent uniqueid
CDR Uniqued: 1476836678.4559
how i can have the same uniqueid of the cdr record in the macro when this run?
Note: this happens only white the incoming call from PSTN or other PBX Trunks when i run this command from extension to extension i get the same cdr uniqueid.
i am running asterisk-java in the pbx as local server, when the macro start go to the index.agi and insert in to database the information from the macro.
The Asterisk-Java package consists of a set of Java classes that allow you to easily build Java applications that interact with an Asterisk PBX Server.
I know exactly what the uniqueid is it is based on the “unix-time” of the event generated all the way down to microseconds, you REALLY have to go to the authors here, I doubt anyone here can help you in your edge case
If your goal is to have two threads with the same uniqueid, you’ve missed the ‘unique’ part of the uniqueid. This isn’t a rabbit hole, it’s full on Mad Hatter (or The Caterpillar).
As it turns out, Asterisk 12 removed all of this behaviour when it modified the bridging core to provide stable handles and lifetimes for channels/bridges. So, in 12+, the uniqueid for a channel will always remain the same - mostly because masquerades are no longer a visible operation.