[Freeswitch-users] bind_digit_action

Rafqat . rafonline at hotmail.com
Tue Jan 11 10:57:26 MSK 2011



Hi,

I moved the bind_digit_action so my dialplan looks something like this:

<extension name="call-me-service">
  <condition field="destination_number" expression="^9999$">
    <action application="answer"/>
    .........
    <action application="set" data="bridge_pre_execute_bleg_app=execute_extension"/>
    <action application="set" data="bridge_pre_execute_bleg_data=START_LISTENING XML private"/>
    <action application="bind_digit_action" data="start,##,exec:hangup,unknown"/>
    .......
  </condition>
</extension>

<extension name="setup bind_digit_action_listening">
  <condition field="destination_number" expression="^START_LISTENING$">
    <action application="log" data="INFO Configuring bind_digit_action to listen..."/>
    <action application="digit_action_set_realm" data="start"/>
  </condition>
</extension>

Unfortunalety, now when leg A presses ##, it hangs up leg A. I would like to make it hang up leg B only.

I am sure it is my lack of understanding of bind_digit_action.

Apreciate all the help I can get.

Cheers

Raf


________________________________
> Date: Mon, 10 Jan 2011 23:04:52 +0000
> From: msc at freeswitch.org
> To: freeswitch-users at lists.freeswitch.org
> Subject: Re: [Freeswitch-users] bind_digit_action
>
> Just to confirm: you want Leg A to press ## to hangup leg B? If so then
> you need to set the bind_digit_action on Leg A. The way you have it now
> is that Leg B would need to dial ##.
>
> -MC
>
> On Mon, Jan 10, 2011 at 10:46 PM, Rafqat .
> > wrote:
>
>
>
> Hi,
>
> Can someone please help here.
>
> I am trying to use bind_digit_action to hangup leg B only, if leg A
> presses ##, but it doesn't seem to be working. The INFO message is
> displayed but when I press ##, nothing happens.
>
> Any help will be much appreciated.
>
>
>
>
>
>
> .........
> > data="bridge_pre_execute_bleg_app=execute_extension"/>
> > data="bridge_pre_execute_bleg_data=START_LISTENING XML private"/>
> .......
>
>
>
>
>
>
>
> > data="start,##,exec:hangup,unknown"/>
>
>
>
>
>
> Cheers
>
> Raf
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
> _______________________________________________ FreeSWITCH-users
> mailing list FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
 		 	   		  


More information about the FreeSWITCH-users mailing list