[asterisk-app-dev] ARI Snoop Channel CPU Usage

George Ladoff georgeladoff at gmail.com
Tue Apr 7 20:32:59 CDT 2015


Didn't have a lot of luck frame copying directly from the channel. I
imagine it has something to do with not being able to actually answer the
spyee channel in snoop for blocking reasons.

Can I trouble you for one more clue: might extending Snoop with the
Framehook API be an option? And then I imagine creating some sort of frame
buffer (similar to the Audiohook's slin buffer) that snoop_read accesses at
the same/similar interval internal?

Please forgive me if I'm overextending the purpose of this list, I'm newish
to the world of Asterisk development at the source level and having a time
just getting used to some of the general "givens" of the environment.

Also, FWIW, when I stripped out the Audiohook references from the Snoop
driver, the CPU issue stopped showing up.


On Fri, Apr 3, 2015 at 4:43 PM, George Ladoff <georgeladoff at gmail.com>
wrote:

> Good to know, at least as a starting point. Thank you Joshua. Greatly
> appreciated.
>
> On Fri, Apr 3, 2015 at 4:41 PM, Joshua Colp <jcolp at digium.com> wrote:
>
>> George Ladoff wrote:
>>
>>> Gotcha. In most cases I do just need to snoop one direction.
>>>
>>> Do you mean that the audiohook API would work in the way I was hoping in
>>> those cases? Or do you mean that I may have some options of altering the
>>> audiohook API but only if that were the case?
>>>
>>
>> I *think* it would be possible to extend the Snoop channel functionality
>> so it would copy the frame as-is instead of turning it into signed linear,
>> outside the audiohook API.
>>
>>
>> --
>> Joshua Colp
>> Digium, Inc. | Senior Software Developer
>> 445 Jan Davis Drive NW - Huntsville, AL 35806 - US
>> Check us out at: www.digium.com & www.asterisk.org
>>
>> _______________________________________________
>> asterisk-app-dev mailing list
>> asterisk-app-dev at lists.digium.com
>> http://lists.digium.com/cgi-bin/mailman/listinfo/asterisk-app-dev
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-app-dev/attachments/20150407/879236d8/attachment.html>


More information about the asterisk-app-dev mailing list