The documented behavior is:
- if not set at all, set to 180s by default
- if set to 0, then will be ignored in media player
- if set to > 0, then will be used to set the value
Current code is inconsistent, 0 is always reset to 180s,
hence 0 value can never lead to ignoring.
Only reset to 180s the `-1` (default value, means never parsed).
Also clarify a little bit more the description of the option.
Change-Id: I5c3e63ffaca6271424783eeba828578e54c819e5
{"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,&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,"Max possible duration (in milliseconds) that can be spent on playing a file. If set to 0 then will be ignored.","INT"},
{"moh-max-duration",0,0,G_OPTION_ARG_INT,&rtpe_config.moh_max_duration,"Max possible duration (in milliseconds) that can be spent on playing a file. If set to 0 then will be ignored. If not set at all, will be set to 180s by default.","INT"},
{"moh-max-repeats",0,0,G_OPTION_ARG_INT,&rtpe_config.moh_max_repeats,"Max possible amount of playback repeats for the music on hold. player-max-duration always takes a precedence over it.","INT"},
{"moh-attr-name",0,0,G_OPTION_ARG_STRING,&rtpe_config.moh_attr_name,"Controls the value to be added to the session level of SDP whenever MoH is triggered.","STRING"},
{"moh-prevent-double-hold",0,0,G_OPTION_ARG_NONE,&rtpe_config.moh_prevent_double_hold,"Protects against double MoH played.",NULL},