[Freeswitch-dev] Answering Machine Detection
David.Brazier at 360crm.co.uk
Mon Jun 2 02:47:52 EDT 2008
Maybe this should have been on freeswitch-dev in the first place.
After a bit more research, I see that switch_input_args_t has read_frame_callback - so maybe one could use that from an app to calculate the energy in successive frames in the same way that switch_ivr_record_file does. But I can't see any other apps that use read_frame_callback. Also, I'd need to call some switch function that takes a switch_input_args_t parameter - and those I can see like speak, playback and record all do things I don't want to do. Though perhaps I could record to /dev/null.
Is there another way to get access to the media stream in an application?
Anyway, I may give read_frame_callback a go, but views/hints welcome.
From: David Brazier
Sent: 30 May 2008 17:59
To: freeswitch-users at lists.freeswitch.org
Subject: Answering Machine Detection
Just wanted to clarify:
* Is there any means of answering machine detection in FreeSwitch (along the lines of Asterisk app_amd)?
* If not, could something like that be implemented in a custom app (I'm not sure if there is sufficient access to the media stream?), or does it need to be in the core?
* If in the core, switch_ivr_record_file seems like a good starting point, as it already does speech detection.
I would hope I would be able to implement something starting from switch_ivr_record_file, but I didn't want to charge in at that level if it would be better done elsewhere.
Any thoughts appreciated.
PS Great project - a real credit to the open source community!
360CRM Limited, registered address, Caledonia House, 89 Seaward Street, Glasgow, G41 1HJ, Registered in Scotland, company number SC261952.
This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of 360CRM Ltd. This email does not form any part of a contract. If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or show them to anyone. Please contact the sender if you believe you have received this email in error.
More information about the Freeswitch-dev