Confbridge question

I’d like to leave the conference by pressing # to return to the main menu, but I already have a leave_conference with key 8. What do you think of this structure?

[sample_user_menu]

type=menu

*=playback_and_continue(conference_une)

*1=toogle_mute

1=toogle_mute

*4=decrease_listening_volume

4=decrease_listening_volume

*6=increase_listening_volume

6=increase_listening_volume

*7=decrease_talking_volume

7=decrease_talking_volume

*8=leave_conference

8=leave_conference

*9=increase_talking_volume

9=increase_talking_volume

#=leave_conference

First of all, why are there so many repeated options in the menu?

Second, when you use the “#” character as part of a menu option (“#1”, “#2”, or even just “#”), you must escape it with a backslash, so #=leave_conference becomes \#=leave_conference.

Regarding the leave conference you have in option 8, it’s your choice to leave it there or remove it. I just suggest you design this menu in a way that makes sense to you or meets your application’s requirements.

Ha! I almost forgot! The correct option is “toggle_mute”, not “toogle_mute”

Hello Knuppalex I have rectified.

[sample_user_menu]

type=menu

*=playback_and_continue(conference_une)

*1=toggle_mute

1=toggle_mute

*4=decrease_listening_volume

4=decrease_listening_volume

*6=increase_listening_volume

6=increase_listening_volume

*7=decrease_talking_volume

7=decrease_talking_volume

*8=leave_conference

8=leave_conference

*9=increase_talking_volume

9=increase_talking_volume

#=leave_conference

I’m afraid I don’t understand why you use duplicated options.

What about this?

[sample_user_menu]
type=menu

* = playback_and_continue(conference_une) ; Help/info message

1 = toggle_mute
4 = decrease_listening_volume
6 = increase_listening_volume
7 = decrease_talking_volume
9 = increase_talking_volume

8 = leave_conference
# = leave_conference ; Quick exit

If you really need advanced or double-key behavior (like hold down * + another key), it’s better implemented via ARI or dialplan logic — not ConfBridge menus.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.