sorry you have to hangup the bridge before to try another bridge..
----- Original Message -----
From: Madovsky
To: FreeSWITCH Users Help
Sent: Friday, October 21, 2011 1:14 PM
Subject: Re: [Freeswitch-users] Transparent external call

so use hangup_cause in condition
----- Original Message -----
From: Hynek Cihlar
To: FreeSWITCH Users Help
Sent: Friday, October 21, 2011 12:56 PM
Subject: Re: [Freeswitch-users] Transparent external call

My apology. Forgot to mention that I need the hangup_after_bridge to be false. There is additional processing on the legs after hangup.


  <context name="default">
     <extension name="ext">
      <condition field="destination_number" expression="^(\d+)$">
          NO HANGUP IS ESSENTIAL
          <action application="set" data="hangup_after_bridge=false"/>
          <action application="bridge" data="sofia/internal/$1%${domain_name}"/>
          
           HOW TO RUN THIS ACTION, ONLY IF THE ABOVE BRIDGE FAILS (THE DST NUMBER IS NOT AN EXTENSION OF A REGED USER)?
          <action application="bridge" data="sofia/external/$1@${host}"/>
      </condition>
    </extension>


Hynek



On Fri, Oct 21, 2011 at 6:40 PM, Madovsky <infos@madovsky.org> wrote:
take a look at hangup_after_bridge and continue_on_fail wiki
and make condition with hangup_cause
----- Original Message -----
Sent: Friday, October 21, 2011 9:09 AM
Subject: [Freeswitch-users] Transparent external call

  <context name="default">
     <extension name="ext">
      <condition field="destination_number" expression="^(\d+)$">
          <action application="bridge" data="sofia/internal/$1%${domain_name}"/>
          
           HOW TO RUN THIS ACTION, ONLY IF THE ABOVE BRIDGE FAILS (THE DST NUMBER IS NOT AN EXTENSION OF A REGED USER)?
          <action application="bridge" data="sofia/external/$1@${host}"/>
      </condition>
    </extension>



Hynek



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



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




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



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