voiceip / oreka

OpenSource G711, G722, G729, Opus & Other Format VoIP SIP Recorder
GNU General Public License v3.0
145 stars 76 forks source link

record control #117

Closed harold-yh closed 1 year ago

harold-yh commented 1 year ago

Will there be several practical functional requirements in the future?

1: Record after answered only。

2: Stop recording after answered (only recrord ring)

At present, there is only full recording

kingster commented 1 year ago

Hi @harold-yh

As per the original documentation and OrekaAPI.pdf the start/stop control of the recordings can be controlled externally. Hopefully, this will suffice your use case.

harold-yh commented 1 year ago

I read the document. The document only provides conditional recording (for example, recording by calling, called and other conditions), but what I need is the recording time, such as recording when the phone was answered or when the call is invitied

kingster commented 1 year ago

By using a combination of conditional recording and external API control (start/stop), you can have recordings post pickup, or just have a recording of the ringing duration.

IMO this kind of custom recording logic would be user-logic specific and would be out of the current scope of orkaudio to provide inbuilt support, and the only possible way would be external API control. But that said, you can raise a PR with this feature and I would be happy to merge this feature

harold-yh commented 1 year ago

Okay,I'll try do it.