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.

Recorded files lost when user hangs up in Asterisk 1.6

#107

Reported by anathematism on Github:

in asterisk 1.6, the recording gets discarded if caller hangup, or user didn't press # in max duration. I read that we need to pass 'k' option to keep the recording. Currently, the record method only pass max duration, and silence options to the execute method. Kindly look into this to cater for other options required by asterisk 1.6.

Thanks,
Atif

My notes:

Whatever the behavior is in Asterisk 1.4 we should attempt to preserve for Asterisk 1.6. This likely relies on the work GMLudo is doing to detect the version of Asterisk. I will try to fix this in time for 0.8.5, or at least provide a workaround.

Reported by Ben Klang · August 7th, 2010 @ 01:47 PM

State: resolved
Milestone: 0.8.5
Assigned to: Ben Klang Ben Klang

Activity

  1. Ben Klang
    Ben Klang
    • State changed from open to resolved

    It looks like the answer to this is to use Adhearsion's built-in "record" method rather than Asterisk's "Record" application.

    In other words, use this:

    record "my-sound-file", { :maxduration => 30 }
    

    ... instead of this:

    execute "Record", "my-sound-file", 5, 30
    

    The first one will save the recording if the user hangs up, while the second will not (assuming Asterisk version 1.6.0 or later).

    Note also that Adhearsion 0.8.4 and later uses the AGI native RECORD FILE command instead of "Execute Record", meaning that if you use the first example you are already protected from the change in Asterisk 1.6.

    August 24th, 2010 @ 04:33 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.