[Freeswitch-dev] "intercept_unbridged_only=true" Not Working
Jerry Richards
jerry.richards at teotech.com
Mon Nov 15 11:05:54 PST 2010
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
More information about the FreeSWITCH-dev
mailing list