[asterisk-users] Can' correlate AMI MonitorStart with CDR

Mike Diehl mdiehlenator at gmail.com
Sat Jul 27 01:30:33 CDT 2013


Hi all.

I'm trying to write an AMI handler to take care of cases where a user
uses the feature code to start recording a call.

When a user starts a recording, my AMI listener receives this event:

$VAR1 = {
          'Server' => 'example.com',
          'Event' => 'MonitorStart',
          'Uniqueid' => 'server-1374906101.132305',
          'Privilege' => 'call,all',
          'Channel' => 'SIP/trunk-000200d0'
        };

However, when I then go and look up that call in the cdr table using
Uniqueid = 'server-1374906101.132305', my query doesn't find anything.

If I then ask the cdr database for the Uniqueid of the call in
question, I get something slightly different, such as:

server-1374906100.132304

In general, it seems that the two strings only differ in the last character.

So, how am I supposed to correlate this?

TIA,

Mike Diehl.



More information about the asterisk-users mailing list