Sorry in advance if my question makes no sense to you. I am newbie in asterisk, and what I am trying to do is writing a dial plan which can connects 2 soft phone end point (VoIP client end points) and then try to detect silence in ongoing call. I am able to make through call by using following dial plan
exten = 100, 1, Answer()
same = 100, n, Monitor()
same = 100, n, Dial(SIP/client1,15)
when I dialed 100, it makes call to client1, which I received gracefully and now call is on going, now I mute my both end mics (caller and callee), the call is still going. Recording of each channel is creating properly. Now I need to fire an event whenever there is silence detected for 3 seconds and I need to grab that audio chunk till silence.
Any idea how I can achieve this objective ?