i am trying to allow a "phone roulette" situation where two callers from the ivr can be randomly be joined together. I need the following options 2 for next caller 0 go back to ivr menu the matchup seems to work but once in a bridge the caller who press 2 moves on but the other caller gets hung up on from the whole system and has to call back. is there a better way to match callers in this scenario without the hangup. here is the extension: <extension name="valet_parking_destination_ext" > <condition field="destination_number" expression="^533$"> <action application="answer"/> <action application="clear_digit_action" data="all"/> <action application="bind_digit_action" data="moderator,0,exec:transfer,399 XML default"/> <action application="bind_digit_action" data="moderator,2,exec:transfer,533 XML default"/> <action application="playback" data="C:/Program Files/FreeSWITCH/recordings/randomchatsimple.wav"/> <action application="valet_park" data="valet_lot 533"/> <action application="transfer" data="533 xml default"/> </condition> </extension>
You can set the action to be taken on both legs. Note the syntax for bda: http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bind_digit_action Something like this: <action application="bind_digit_action" data="moderator,0,exec:transfer,399 XML default,both,both"/> Tinker with that syntax and see if you can make the other leg also get x-fered instead of disconnected. -MC On Sun, Jan 8, 2012 at 4:19 AM, Rodney <notlikeme75@yahoo.com> wrote:
i am trying to allow a "phone roulette" situation where two callers from the ivr can be randomly be joined together. I need the following options
2 for next caller 0 go back to ivr menu
the matchup seems to work but once in a bridge the caller who press 2 moves on but the other caller gets hung up on from the whole system and has to call back. is there a better way to match callers in this scenario without the hangup. here is the extension:
<extension name="valet_parking_destination_ext" >
<condition field="destination_number" expression="^533$">
<action application="answer"/>
<action application="clear_digit_action" data="all"/> <action application="bind_digit_action" data="moderator,0,exec:transfer,399 XML default"/> <action application="bind_digit_action" data="moderator,2,exec:transfer,533 XML default"/> <action application="playback" data="C:/Program Files/FreeSWITCH/recordings/randomchatsimple.wav"/> <action application="valet_park" data="valet_lot 533"/>
<action application="transfer" data="533 xml default"/>
</condition> </extension>
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list 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
participants (2)
-
Michael Collins
-
Rodney