I'm new to adhearsion (using with freeswitch / rayo).
I'm able to match a number dialled (using the router), play a little music and even do text to speech.
However I'm a little bit stumped about best practices.
For example if I want to send the user to an echo test, or a conference. This was easy using the default dial plan from freeswitch.
Now that adhearsion controls the call before Freeswitch's dialplan has a chance, how do I offer similar functionality?
Do I use Sofia (via adhearsion) to dial an extension for a an echo test in the default dial plan (XML) or do I have to write echo test functionality in adhearsion?
Some examples would be most appreciated.
Kind regards,
Chirag
--
You received this message because you are subscribed to the Google Groups "Adhearsion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adhearsion+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi all,
I'm new to adhearsion (using with freeswitch / rayo).
I'm able to match a number dialled (using the router), play a little music and even do text to speech.
However I'm a little bit stumped about best practices.
For example if I want to send the user to an echo test, or a conference. This was easy using the default dial plan from freeswitch.
Now that adhearsion controls the call before Freeswitch's dialplan has a chance, how do I offer similar functionality?
Do I use Sofia (via adhearsion) to dial an extension for a an echo test in the default dial plan (XML) or do I have to write echo test functionality in adhearsion?
Some examples would be most appreciated.
Kind regards,
Chirag
How do I give you a gist and trace?
My adhearsion.rb is vanilla (pretty much) after install.
Hi,
I think I got it working. Somehow I managed to have two instances of the same adhearsion app running. One daemon, on in the foreground and I didn't realise the daemon one was answering the calls with the old code and therefore recording was not working.
I can now record for 5 seconds and play it back, however this doesn't simulate the "echo" functionality I was looking to replicate.
I'm looking to do a never-ending get sound in, and play it back. I guess I could do this by setting the recording time to something really small like a fraction of a second and running it in a loop forever. I'm worried though that I'll end up with many recording files and I'll have to clean them up on the fly too.
Il giorno Aug 30, 2014, alle ore 10:18 AM, Chirag <c.d...@rxhost.co.uk> ha scritto:Hi,
I think I got it working. Somehow I managed to have two instances of the same adhearsion app running. One daemon, on in the foreground and I didn't realise the daemon one was answering the calls with the old code and therefore recording was not working.
I can now record for 5 seconds and play it back, however this doesn't simulate the "echo" functionality I was looking to replicate.
I'm looking to do a never-ending get sound in, and play it back. I guess I could do this by setting the recording time to something really small like a fraction of a second and running it in a loop forever. I'm worried though that I'll end up with many recording files and I'll have to clean them up on the fly too.You can use a basic loop. Try something like:say 'echo test'while call.active?result = record max_duration: 5play result.recording.uriend