Hello,
I have a dialplan dedicated to record communications sent to Asterisk, there is no Dial command or anything else like that, but we also use the Playback application to send silence.
The issue is that I need to detect an incoming RTP timeout, to be able to stop the recording.
My dialplan looks like that :
exten => c,n,MixMonitor(/tmp/record.alaw)
exten => c,n,Answer()
exten => c,n,Set(TIMEOUT(response)=10)
exten => c,n,While(1==2)
exten => c,n,Playback(silence/10)
exten => c,n,EndWhile()
Is setting RTP_TIMEOUT would work in this case ? I read somewhere that it would not as monitor the incoming rtp stream, and that I could trick that by using a Dial command to a dummy destination.
The way we designed this plan, is that we try to record endlessly, until the remote party close the call, but we have issues when we don’t receive a sip bye, that’s why we try to monitor a incoming rtp timeout.
How would I do that ? (I am using Asterisk 22)
PS : should I put Answer before or after MixMonitor ?
Thanks.