[Freeswitch-users] newbie: bridge control
ik
idokan at gmail.com
Tue Oct 22 11:26:08 MSD 2013
Thanks Michael,
I'ved created the following dialplan (fs v1.2.14) :
<context name="bridging_capture">
<extension name="beidgin">
<condition field="destination_number" expression="(^.*$)" >
<action application="set" data="hangup_after_bridge=false" />
<action application="digit_action_set_realm"
data="bridging_capture" />
<action application="set"
data="bridge_pre_execute_bleg_app=bind_digit_action"/>
<action application="set"
data="bridge_pre_execute_bleg_data=bridging_capture"/>
<!--action application="bind_digit_action"
data="bridging_capture,200,exec:hangup,self,peer" /-->
<action application="bind_digit_action"
data="bridging_capture,~200\*[0-9]{3,10},exec:execute_extension,digits,self,peer"/>
<action application="bridge" data="user/2002" />
<!--action application="transfer" data="digits" /-->
</condition>
</extension>
<extension name="digits">
<!--condition field="destination_number"
expression="^200\*([0-9]{3,10})$"-->
<condition field="destination_number" expression="^.*$">
<action application="hangup" />
</condition>
</extension>
</context>
bind_digit_action constantly reporting
Syntax Error, USAGE <realm>,<digits|~regex>,<string>[,<value>][,<dtmf
target leg>][,<event target leg>]
The original aim of the program is the capture the numbers after 200*, and
bridge leg-a to the new number, but first disconnecting current leg-b.
When using execute_extension with
"exec_after_bridge_app=execute_extension
"exec_after_bridge_arg=digits ${bridging_capture}"
It makes leg-b constantly ring after the call hangup. So does the transfer
action that is commented out.
So what am I doing wrong here ?
Thanks,
Ido
On Tue, Oct 22, 2013 at 1:21 AM, Michael Collins <msc at freeswitch.org> wrote:
>
>
>
> On Sun, Oct 20, 2013 at 8:50 AM, ik <idokan at gmail.com> wrote:
>
>> Hello List,
>>
>> I'm a newbie to Freeswitch.
>>
> Welcome!
>
>
>>
>> I need to bridge an inbound call to another call, and detect pattren of
>> DTMF.
>> If the the pattern happen, I need to capture it to a variable, and hangup
>> leg B (the bridged one), and continue doing stuff with Leg A.
>>
> Does the B leg already exist? If so, you'll need something like
> uuid_bridge API. If it does not already exist and you need to create it
> then use the bridge dialplan app.
>
> For matching a pattern your best bet is the bind_digit_action dialplan app.
>
> For "doing stuff" on the A you'll need to be more specific. Do you need to
> interact with the caller? If so, use the transfer dialplan application to
> send the call elsewhere in the dialplan to do more "stuff." If by "stuff"
> you mean run an external script then checkout the api_hangup_hook variable.
>
>
>>
>> If Leg B was disconnected, I need hangup leg A as well.
>>
> This happens naturally unless you have the chan var hangup_after_bridge
> set to false.
>
>
>>
>> I wish to better understand how to look such thing on the wiki, prior for
>> direct answer on how to do it, in order to better learn FS and it's usage :)
>>
> I like to use the navigation buttons on the left side. You can look up
> dialplan applications ("apps"), FreeSWITCH API commands, ("APIs"), or
> channel variables, ("chan vars"). Don't forget to check out the IRC channel
> as well: #freeswitch on irc.freenode.net.
>
>>
>> So any help on this matter is more then welcome.
>>
>> Thanks
>> Ido
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>>
>>
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://wiki.freeswitch.org
>> http://www.cluecon.com
>>
>> 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
>>
>>
>
>
> --
> Michael S Collins
> Twitter: @mercutioviz
> http://www.FreeSWITCH.org
> http://www.ClueCon.com
> http://www.OSTAG.org
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20131022/6820214e/attachment-0001.html
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list