Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] bind_digit_action in a conference


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
matt at supportedbusin...
Guest





PostPosted: Mon Feb 15, 2016 9:30 am    Post subject: [Freeswitch-users] bind_digit_action in a conference Reply with 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
mike at jerris.com
Guest





PostPosted: Mon Feb 15, 2016 10:37 am    Post subject: [Freeswitch-users] bind_digit_action in a conference Reply with quote

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





PostPosted: Mon Feb 15, 2016 11:02 am    Post subject: [Freeswitch-users] bind_digit_action in a conference Reply with quote

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:
Quote:
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




_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org (consulting@freeswitch.org)
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users@lists.freeswitch.org (FreeSWITCH-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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

VoiceMeUp - Corporate & Wholesale VoIP Services