Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Event parsing issue

#66

I've enabled Cdr event in asterisk in cdr_manager.conf:


[general]
enabled=yes

I do recieve Cdr events in adhearsion in events.rb:


events.asterisk.manager_interface.each do |event|
ahn_log.events event.inspect if event.name == 'Cdr'
end

But parsing is incorrect (from logs): INFO events: #<Adhearsion::VoIP::Asterisk::Manager::ManagerInterfaceEvent:0x1a8c6a8 @headers={"AMAFlags"=>"DOCUMENTATION", "Disposition"=>"ANSWERED", "BillableSeconds"=>"5", "EndTime: 2009-04-16 09:29"=>"52", "StartTime: 2009-04-16 09:29"=>"45", "DestinationChannel"=>"SIP/1_2000-0082ae00", "Channel"=>"SIP/1_2001-00822000", "Destination"=>"2000", "LastData"=>"SIP/1_2000|15|tT", "LastApplication"=>"Dial", "UniqueID"=>"1239866985.2", "DestinationContext"=>"yago", "Source"=>"1_2001", "AnswerTime: 2009-04-16 09:29"=>"47", "CallerID"=>""Test 1" <1_2001>", "Privilege"=>"call,all", "UserField"=>"", "AccountCode"=>"", "Duration"=>"7"}, @name="Cdr">

"AnswerTime: 2009-04-16 09:29"=>"47" should be "AnswerTime"=>"2009-04-16 09:29:47". The first ':' should be used to seperate key from value instead of the last one.

Reported by Deleted User · April 16th, 2009 @ 04:06 AM

State: resolved
Milestone: none
Assigned to: Jay Phillips Jay Phillips

Activity

  1. Deleted User
    Deleted User

    duplicate with issue #45 'Channel' improperly parsed in Events the correction works fine :-)

    April 16th, 2009 @ 05:09 AM

  2. Jay Phillips
    Jay Phillips
    • State changed from new to resolved

    This should be fixed in master.

    April 23rd, 2009 @ 08:30 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.