The 2nd time, my custom freeswitch moh is heard (on the b_leg) when playAndGetDigits is called (on the a_leg).
Here are the instruction which are causing me headaches :
/* Change the moh on the A leg */
api:executeString("uuid_setvar ".. b_leg_uuid .. " hold_music /usr/local/freeswitch/sounds/fr/ca/june/voxService/fr_wait_email.wav");
/* Play and request digit (B leg) */
digit = session:playAndGetDigits(1, 1, 1, 5000, '#', '/usr/local/freeswitch/sounds/
fr/ca/june/voxService/fr_ask_email.wav', '', '\\d+');
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.
Is that a normal behaviour ? If yes, what would be the correct way of changing the moh when bind_digit_action is executed ?
Regards,
Julien