<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 24, 2013 at 6:12 AM, julien terrasson <span dir="ltr"><<a href="mailto:julien.terrasson@gmail.com" target="_blank">julien.terrasson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_quote">Hi Michael,<br><div dir="ltr"><div><div><div><br></div>Thanks for your answer (quoted hereafter)..<br>
<br>"To
answer your initial question: yes, what you are trying to accomplish is
definitely possible. However if you want the caller ("A" in your
scenario) to press only a single key then you can't use bind_meta_app
(BMA). BMA requires two key presses: * and one other DTMF. That's why
your scenario requires ** to trigger."<br><br>... but i'm already using bind_digit_action :-)<br></div></div></div></div></div></blockquote><div>Oops, I didn't read that too well. <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><div><br>I probably gave too much information and made the problem description unclear. <br>Sorry about that & let me try to explain again :<br>
</div><br>Every time the star key is pressed, it will correctly execute the lua script, no problem here.. But<br><br>When executing that lua script :<br></div><div>The first time, the standard freeswitch moh is heard (on the b_leg) when playAndGetDigits is called (on the a_leg).<br>
</div><div><div><div><div>
The 2nd time, my custom freeswitch moh is heard (on the b_leg) when playAndGetDigits is called (on the a_leg).<br><br></div><div>Here are the instruction which are causing me headaches :<br></div><div><br><div><u>/* Change the moh on the A leg */<br>
</u>api:executeString("uuid_setvar ".. b_leg_uuid .. " hold_music /usr/local/freeswitch/sounds/fr/ca/june/voxService/<b>fr_wait_</b><b>email.wav</b>");<u><br>/* Play and request digit (B leg) */</u><br>
</div>digit = session:playAndGetDigits(1, 1, 1, 5000, '#', '/usr/local/freeswitch/sounds/<div>fr/ca/june/voxService/fr_ask_email.wav', '', '\\d+');</div><br></div><div>I was expecting fr_wait_email.wav to be played every time, but it look like "uuid_setvar <b_leg_uuid> hold_music <custom_wav>" is not taken into account on-the-fly, but only after bind_digit_action is finished.<br>
Is that a normal behaviour ? If yes, what would be the correct way of changing the moh when bind_digit_action is executed ?<br><br></div></div></div></div></div></div></div></blockquote><div>Please pastebin a console debug of the call. It may yield clues as to what is happening.<br>
</div><div>-MC <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div><div><div><div></div><div>Regards,<br>
<br></div><div>Julien <br></div></div><div><br></div><div><br><div>
<br></div><div><br><div><br></div><br></div></div></div></div></div>
</div><br></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>
</div></div>