#107 ✓resolved
Ben Klang

Recorded files lost when user hangs up in Asterisk 1.6

Reported by Ben Klang | August 7th, 2010 @ 01:47 PM | in 0.8.5

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.

Comments and changes to this ticket

  • Ben Klang

    Ben Klang August 24th, 2010 @ 04:33 PM

    • 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.

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Pages