VoIP Mailing List Archives
Mailing list archives for the VoIP community |
|
View previous topic :: View next topic |
Author |
Message |
matt at supportedbusin... Guest
|
Posted: Mon Feb 15, 2016 9:30 am Post subject: [Freeswitch-users] bind_digit_action in a conference |
|
|
Hi,
is it possible to bind a digit action and set the target as another member of a conference?
I would like to be able to press a digit and have another member execute an extension where they enter some digits before returning back to the conference.
thanks
Matt |
|
Back to top |
|
|
mike at jerris.com Guest
|
Posted: Mon Feb 15, 2016 10:37 am Post subject: [Freeswitch-users] bind_digit_action in a conference |
|
|
maybe if you entered a lua script and did those more advanced actions it could be done
On Monday, February 15, 2016, Matt Broad <matt@supportedbusiness.com (matt@supportedbusiness.com)> wrote:
Quote: | Hi,
is it possible to bind a digit action and set the target as another member of a conference?
I would like to be able to press a digit and have another member execute an extension where they enter some digits before returning back to the conference.
thanks
Matt
|
|
|
Back to top |
|
|
matt at supportedbusin... Guest
|
Posted: Mon Feb 15, 2016 11:02 am Post subject: [Freeswitch-users] bind_digit_action in a conference |
|
|
Hi Michael,
thanks for the response. I have tried this using javascript, but the digits are not collected.
A quick example is I sit in a loop until the mod presses the relevant key, on the keypress I clone the session of the user who is to enter the digits and have that execute an extension.
while (callConnected == true)
{
if(getDigits == true)
{
//set back to false to prevent this code block from being hit on the next loop
getDigits = false;
var _session = new session(uuid);
_session.execute("execute_extension", "collectdigits XML Testfeatures");
}
}
<extension name="collectdigits ">
<condition field="destination_number" expression="^collectdigits $">
<action application="flush_dtmf"/>
<action application="play_and_get_digits" data="3 3 2 5000 # $${sound_prefix}/reception/EnterDigits.mp3 $${sound_prefix}//${audiobase}tryagain.mp3 myDigits" />
</condition>
</extension>
If I set the bind_digit_action to the session that will enter the digits, it works fine but the issue is I would like the other member of the conference to instigate the request for digits
_session.execute("bind_digit_action", "card_digits,6,exec:execute_extension,collectdigits XML Testfeatures,self,self");
thanks
Matt
On 15 February 2016 at 15:35, Michael Jerris <mike@jerris.com (mike@jerris.com)> wrote:
|
|
Back to top |
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|