Add duration limit for the moh functionality.
This is required due to a possibility to get
monologues and hence packet streams stuck
forever and sending audio to recipients
which already don't exist.
A configuration option that controls that:
`moh-max-duration` - gets a value in milliseconds.
By default is set to 1800000 (half an hour).
Change-Id: Id50a0a10ce5b52b3876a3122fb16a71accec90ff
{"janus-secret",0,0,G_OPTION_ARG_STRING,&rtpe_config.janus_secret,"Admin secret for Janus protocol","STRING"},
{"rtcp-interval",0,0,G_OPTION_ARG_INT,&rtpe_config.rtcp_interval,"Delay in milliseconds between RTCP packets when generate-rtcp flag is on, where random dispersion < 1 sec is added on top","INT"},
{"moh-max-duration",0,0,G_OPTION_ARG_INT,&rtpe_config.moh_max_duration,"Music-on-hold max possible duration (in milliseconds). If set to 0 then will be ignored.","INT"},
{"max-recv-iters",0,0,G_OPTION_ARG_INT,&rtpe_config.max_recv_iters,"Maximum continuous reading cycles in UDP poller loop.","INT"},
{"vsc-start-rec",0,0,G_OPTION_ARG_STRING,&rtpe_config.vsc_start_rec.s,"DTMF VSC to start recording.","STRING"},
{"vsc-stop-rec",0,0,G_OPTION_ARG_STRING,&rtpe_config.vsc_stop_rec.s,"DTMF VSC to stop recording.","STRING"},