<div dir="ltr"><div><div><div><div>Thanks Michael,<br><br></div>I&#39;ved created the following dialplan (fs v1.2.14) :<br><br>&lt;context name=&quot;bridging_capture&quot;&gt;<br>    &lt;extension name=&quot;beidgin&quot;&gt;<br>

      &lt;condition field=&quot;destination_number&quot; expression=&quot;(^.*$)&quot; &gt;<br>        &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=false&quot; /&gt;<br>        &lt;action application=&quot;digit_action_set_realm&quot; data=&quot;bridging_capture&quot; /&gt;<br>

        &lt;action application=&quot;set&quot; data=&quot;bridge_pre_execute_bleg_app=bind_digit_action&quot;/&gt;<br>        &lt;action application=&quot;set&quot; data=&quot;bridge_pre_execute_bleg_data=bridging_capture&quot;/&gt;<br>

        &lt;!--action application=&quot;bind_digit_action&quot; data=&quot;bridging_capture,200,exec:hangup,self,peer&quot; /--&gt;<br>          &lt;action application=&quot;bind_digit_action&quot; data=&quot;bridging_capture,~200\*[0-9]{3,10},exec:execute_extension,digits,self,peer&quot;/&gt;<br>

        &lt;action application=&quot;bridge&quot; data=&quot;user/2002&quot; /&gt;<br>        &lt;!--action application=&quot;transfer&quot; data=&quot;digits&quot; /--&gt;<br>      &lt;/condition&gt;<br>    &lt;/extension&gt;<br>

    &lt;extension name=&quot;digits&quot;&gt;<br>      &lt;!--condition field=&quot;destination_number&quot; expression=&quot;^200\*([0-9]{3,10})$&quot;--&gt;<br>      &lt;condition field=&quot;destination_number&quot; expression=&quot;^.*$&quot;&gt;<br>

         &lt;action application=&quot;hangup&quot; /&gt;<br>      &lt;/condition&gt;<br>    &lt;/extension&gt;<br> &lt;/context&gt;<br><br><br></div>bind_digit_action constantly reporting <br>Syntax Error, USAGE &lt;realm&gt;,&lt;digits|~regex&gt;,&lt;string&gt;[,&lt;value&gt;][,&lt;dtmf target leg&gt;][,&lt;event target leg&gt;]<br>

<br><br></div>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.<br></div>When using execute_extension with <br><pre>&quot;exec_after_bridge_app=execute_extension<br>

&quot;exec_after_bridge_arg=digits ${bridging_capture}&quot;</pre><div><div>It makes leg-b constantly ring after the call hangup. So does the transfer action that is commented out.<br><br></div><div>So what am I doing wrong here ?<br>

</div><div>Thanks,<br><br></div><div>Ido<br></div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Oct 22, 2013 at 1:21 AM, Michael Collins <span dir="ltr">&lt;<a href="mailto:msc@freeswitch.org" target="_blank">msc@freeswitch.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote"><div class="im">On Sun, Oct 20, 2013 at 8:50 AM, ik <span dir="ltr">&lt;<a href="mailto:idokan@gmail.com" target="_blank">idokan@gmail.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div><div>Hello List,<br><br></div>I&#39;m a newbie to Freeswitch.<br></div>


</div></div></div></div></div></div></div></blockquote></div><div>Welcome!<br> <br></div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">

<div><div><div><div><div>
<div><div><br></div>I need to bridge an inbound call to another call, and detect pattren of DTMF.<br></div>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.<br>


</div></div></div></div></div></div></blockquote></div><div>Does the B leg already exist? If so, you&#39;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.<br>


<br></div><div>For matching a pattern your best bet is the bind_digit_action dialplan app.<br><br></div><div>For &quot;doing stuff&quot; on the A you&#39;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 &quot;stuff.&quot; If by &quot;stuff&quot; you mean run an external script then checkout the api_hangup_hook variable.<br>


</div><div class="im"><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>

<br></div>If Leg B was disconnected, I need hangup leg A as well.<br></div></div></div></div></div></blockquote></div><div>This happens naturally unless you have the chan var hangup_after_bridge set to false. <br> <br></div>

<div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div><div><br></div>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&#39;s usage :)<br></div></div></div>


</div></blockquote></div><div>I like to use the navigation buttons on the left side. You can look up dialplan applications (&quot;apps&quot;), FreeSWITCH API commands, (&quot;APIs&quot;), or channel variables, (&quot;chan vars&quot;). Don&#39;t forget to check out the IRC channel as well: #freeswitch on <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a>. <br>


</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><div dir="ltr"><div><div><div>

<br></div>So any help on this matter is more then welcome.<br><br></div>Thanks<br></div>Ido<br></div>
<br></div>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br>

<a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>
</font></span></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br></div>