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

Anthony Minessale anthony.minessale at gmail.com
Mon Nov 15 11:59:32 PST 2010


commit 36ba0f24625291c85cd1a82e295238ad05fbdf67
Author: Anthony Minessale <anthm at freeswitch.org>
Date:   Mon Nov 15 13:51:27 2010 -0600

    add intercept_unanswered_only var akin to intercept_unbridged_only

try this patch
if you could document it on the wiki i would appreciate it.


On Mon, Nov 15, 2010 at 1:05 PM, Jerry Richards
<jerry.richards at teotech.com> wrote:
> Okay, I thought bridged and answered were the same thing.  What would I need to do if I want it to only intercept unanswered calls?
>
>
> -----Original Message-----
> From: freeswitch-dev-bounces at lists.freeswitch.org [mailto:freeswitch-dev-bounces at lists.freeswitch.org] On Behalf Of Anthony Minessale
> Sent: Monday, November 15, 2010 10:17 AM
> To: freeswitch-dev at lists.freeswitch.org
> Subject: Re: [Freeswitch-dev] "intercept_unbridged_only=true" Not Working
>
> 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
>
> _______________________________________________
> 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
>
>
>
> _______________________________________________
> 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