Sounds to me like a possible solution would be adding a "break" option for "entry" so that the user could decide whether or not to break after the first match. However, I wonder if that's even necessary.<br>
<br>My question to you is why would you have two different actions for keypress "9" and yet not want the second action ever to be executed? If the menu only ever executed the first occurrence of a given digit then what would be the value of having another occurrence of that same digit? In your example, under what conditions would pressing "9" execute "transfer 8 XML ..." ?<br>
<br>There might be a less intrusive solution we could suggest if we knew more about why you have multiple different actions for a single keypress.<br><br>-MC<br><br><br><div class="gmail_quote">On Tue, Aug 24, 2010 at 8:41 AM, Antonio <span dir="ltr"><<a href="mailto:asilva@wirelessmundi.com">asilva@wirelessmundi.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">During the configuration of an ivr menu and test i just realized that if<br>
you have multiple actions with the same "digits" it executes the both<br>
actions.<br>
<br>
The execution of the multiple actions is normal?<br>
<br>
The normal behavior should executed only the action that is match first,<br>
reading the priority of the entries in the menu.<br>
I look at the code, and in the function, switch_ivr_menu_execute, looks<br>
like the loop that searches for the match/action should need a break<br>
after a success match, to avoid the continues search for other matches.<br>
<br>
Thanks,<br>
António<br>
<br>
<br>
/* configuration */<br>
<br>
<menu name="ivr"<br>
greet-long="/home/system/telephony/sounds/buraka.mp3"<br>
exit-sound="/home/system/telephony/sounds/prompt/en/conf-invalid.gsm"<br>
timeout ="2000"<br>
inter-digit-timeout="2000"<br>
max-failures="10"<br>
digit-len="4"<br>
><br>
<entry action="menu-exec-app" digits="/^(10[0-9])$/" param="transfer $1<br>
XML local"/><br>
<entry action="menu-exec-app" digits="9" param="transfer 9 XML<br>
ivr-[1]"/><br>
<entry action="menu-exec-app" digits="9" param="transfer 8 XML<br>
ivr-[1]"/><br>
</menu><br></blockquote></div><br>