|
247 | 247 | participants in the conference bridge. If disabled then no text
|
248 | 248 | messages are sent to the user.</para></description>
|
249 | 249 | </configOption>
|
| 250 | + <configOption name="answer_channel" default="yes"> |
| 251 | + <synopsis>Sets if a user's channel should be answered if currently unanswered.</synopsis> |
| 252 | + </configOption> |
250 | 253 | </configObject>
|
251 | 254 | <configObject name="bridge_profile">
|
252 | 255 | <synopsis>A named profile to apply to specific bridges.</synopsis>
|
@@ -1609,9 +1612,12 @@ static char *handle_cli_confbridge_show_user_profile(struct ast_cli_entry *e, in
|
1609 | 1612 | ast_cli(a->fd,"Announce User Count all: %s\n",
|
1610 | 1613 | u_profile.flags & USER_OPT_ANNOUNCEUSERCOUNTALL ?
|
1611 | 1614 | "enabled" : "disabled");
|
1612 |
| - ast_cli(a->fd,"Text Messaging: %s\n", |
1613 |
| - u_profile.flags & USER_OPT_TEXT_MESSAGING ? |
1614 |
| - "enabled" : "disabled"); |
| 1615 | + ast_cli(a->fd,"Text Messaging: %s\n", |
| 1616 | + u_profile.flags & USER_OPT_TEXT_MESSAGING ? |
| 1617 | + "enabled" : "disabled"); |
| 1618 | + ast_cli(a->fd,"Answer Channel: %s\n", |
| 1619 | + u_profile.flags & USER_OPT_ANSWER_CHANNEL ? |
| 1620 | + "true" : "false"); |
1615 | 1621 | ast_cli(a->fd, "\n");
|
1616 | 1622 |
|
1617 | 1623 | return CLI_SUCCESS;
|
@@ -2410,6 +2416,7 @@ int conf_load_config(void)
|
2410 | 2416 | aco_option_register(&cfg_info, "jitterbuffer", ACO_EXACT, user_types, "no", OPT_BOOLFLAG_T, 1, FLDSET(struct user_profile, flags), USER_OPT_JITTERBUFFER);
|
2411 | 2417 | aco_option_register(&cfg_info, "timeout", ACO_EXACT, user_types, "0", OPT_UINT_T, 0, FLDSET(struct user_profile, timeout));
|
2412 | 2418 | aco_option_register(&cfg_info, "text_messaging", ACO_EXACT, user_types, "yes", OPT_BOOLFLAG_T, 1, FLDSET(struct user_profile, flags), USER_OPT_TEXT_MESSAGING);
|
| 2419 | + aco_option_register(&cfg_info, "answer_channel", ACO_EXACT, user_types, "yes", OPT_BOOLFLAG_T, 1, FLDSET(struct user_profile, flags), USER_OPT_ANSWER_CHANNEL); |
2413 | 2420 |
|
2414 | 2421 | /* This option should only be used with the CONFBRIDGE dialplan function */
|
2415 | 2422 | aco_option_register_custom(&cfg_info, "template", ACO_EXACT, user_types, NULL, user_template_handler, 0);
|
|
0 commit comments