[Freeswitch-users] Problem with "continue" in extension.

Michael Collins msc at freeswitch.org
Wed Mar 11 10:14:08 PDT 2009


On Wed, Mar 11, 2009 at 9:42 AM,  <mszlazak at aol.com> wrote:
> I changed that tag so that hangup_after_bridge is false:
>
>  <action application="set" data="hangup_after_bridge=false"/>
> but I still don't get the .js application working which is nothing more than
> a test script that ran if I dialed it's extension with the preceding one
> commented out:

Try adding a break="never" to your first extension:
    <extension name="myExtension" continue="true">
        <condition field="destination_number" expression="^1111$" break="never">
            <action application="info"/>
            <action application="set" data="bypass_media=true"/>
            <action application="set"
data="effective_caller_id_number=${caller_id_number}"/>
            <action application="set" data="hangup_after_bridge=true"/>
            <action application="bridge"
data="sofia/internal/${sip_to_user}@127.0.0.1:5068"/>
        </condition>
    </extension>

I believe that will cause the the dialplan to keep looking for "1111"
even after it has been matched once.
-MC




More information about the FreeSWITCH-users mailing list