[Freeswitch-dev] "intercept_unbridged_only=true" Not Working

Anthony Minessale anthony.minessale at gmail.com
Mon Nov 15 10:17:16 PST 2010


according to the code in switch_ivr_intercept_session

    if ((var = switch_channel_get_variable(channel,
"intercept_unbridged_only")) && switch_true(var)) {
        if ((switch_channel_test_flag(rchannel, CF_BRIDGED))) {
            switch_core_session_rwunlock(rsession);
            return;
        }
    }

so is your channel not bridged?
its not calls which are not answered its calls that are not bridged.



On Mon, Nov 15, 2010 at 12:05 PM, Jerry Richards
<jerry.richards at teotech.com> wrote:
> Hello,
>
>
>
> The <action application="set" data="intercept_unbridged_only=true"/>
> statement does not work for me.  I added it to the <extension
> name="intercept_ext"> of the default dialplan, but it still unconditionally
> bridges to a call even after it has already been answered.  Am I missing a
> tag?
>
>
>
>     <extension name="intercept-ext">
>
>       <condition field="destination_number" expression="^\*\*(\d+)$">
>
>       <action application="set" data="intercept_unbridged_only=true"/>
>
>        <action application="answer"/>
>
>        <action application="intercept"
> data="${hash(select/${domain_name}-last_dial_ext/$1)}"/>
>
>        <action application="sleep" data="2000"/>
>
>       </condition>
>
>     </extension>
>
>
>
> Thanks,
>
> Jerry
>
> _______________________________________________
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900



More information about the FreeSWITCH-dev mailing list