"intercept_unbridged_only=true" Not Working
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
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@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@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@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale Sent: Monday, November 15, 2010 10:17 AM To: freeswitch-dev@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@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@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@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900 _______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org
commit 36ba0f24625291c85cd1a82e295238ad05fbdf67 Author: Anthony Minessale <anthm@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@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@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Anthony Minessale Sent: Monday, November 15, 2010 10:17 AM To: freeswitch-dev@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@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@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@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@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@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@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
On Mon, Nov 15, 2010 at 11:59 AM, Anthony Minessale < anthony.minessale@gmail.com> wrote:
commit 36ba0f24625291c85cd1a82e295238ad05fbdf67 Author: Anthony Minessale <anthm@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.
FYI I created the necessary links, stub, etc. so that all you have to do is confirm that the information on this page is correct: http://wiki.freeswitch.org/wiki/Variable_intercept_unanswered_only Also, if there are any other caveats please add them to this page. -MC
Okay, maybe something is wrong with my configuration? FS is connecting the call when I dial "**<extension>" from another phone after the call was answered at extension. I posted a trace to the pastebin: http://pastebin.freeswitch.org/14499. CONFIGURATION: Freeswitch Server: FreeSWITCH Version 1.0.head (git-97c65a0 2010-11-15 12-22-09 -0600)) Hardphone Ext 1003 Hardphone Ext 1004 Hardphone Ext 1005 conf/dialplan/default.xml: <extension name="intercept-ext"> <condition field="destination_number" expression="^\*\*(\d+)$"> <action application="set" data="intercept_unanswered_only=true"/> <action application="answer"/> <action application="intercept" data="${hash(select/${domain_name}-last_dial_ext/$1)}"/> <action application="sleep" data="2000"/> </condition> </extension> SCENARIO: 1) 1004 calls 1003 2) 1003 answers call 3) 1005 calls **1003 4) Freeswitch takes call from 1003 and establishes talk path between 1004 and 1005 Thanks, Jerry From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Michael Collins Sent: Monday, November 15, 2010 12:13 PM To: freeswitch-dev@lists.freeswitch.org Subject: Re: [Freeswitch-dev] "intercept_unbridged_only=true" Not Working On Mon, Nov 15, 2010 at 11:59 AM, Anthony Minessale <anthony.minessale@gmail.com<mailto:anthony.minessale@gmail.com>> wrote: commit 36ba0f24625291c85cd1a82e295238ad05fbdf67 Author: Anthony Minessale <anthm@freeswitch.org<mailto:anthm@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. FYI I created the necessary links, stub, etc. so that all you have to do is confirm that the information on this page is correct: http://wiki.freeswitch.org/wiki/Variable_intercept_unanswered_only Also, if there are any other caveats please add them to this page. -MC
I think the patch didn't push confirm you have the revision i posted. On Mon, Nov 15, 2010 at 4:41 PM, Jerry Richards <jerry.richards@teotech.com> wrote:
Okay, maybe something is wrong with my configuration? FS is connecting the call when I dial "**<extension>" from another phone after the call was answered at extension. I posted a trace to the pastebin: http://pastebin.freeswitch.org/14499.
CONFIGURATION:
Freeswitch Server: FreeSWITCH Version 1.0.head (git-97c65a0 2010-11-15 12-22-09 -0600))
Hardphone Ext 1003
Hardphone Ext 1004
Hardphone Ext 1005
conf/dialplan/default.xml:
<extension name="intercept-ext">
<condition field="destination_number" expression="^\*\*(\d+)$">
<action application="set" data="intercept_unanswered_only=true"/>
<action application="answer"/>
<action application="intercept" data="${hash(select/${domain_name}-last_dial_ext/$1)}"/>
<action application="sleep" data="2000"/>
</condition>
</extension>
SCENARIO:
1) 1004 calls 1003
2) 1003 answers call
3) 1005 calls **1003
4) Freeswitch takes call from 1003 and establishes talk path between 1004 and 1005
Thanks,
Jerry
From: freeswitch-dev-bounces@lists.freeswitch.org [mailto:freeswitch-dev-bounces@lists.freeswitch.org] On Behalf Of Michael Collins Sent: Monday, November 15, 2010 12:13 PM
To: freeswitch-dev@lists.freeswitch.org Subject: Re: [Freeswitch-dev] "intercept_unbridged_only=true" Not Working
On Mon, Nov 15, 2010 at 11:59 AM, Anthony Minessale <anthony.minessale@gmail.com> wrote:
commit 36ba0f24625291c85cd1a82e295238ad05fbdf67 Author: Anthony Minessale <anthm@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.
FYI I created the necessary links, stub, etc. so that all you have to do is confirm that the information on this page is correct:
http://wiki.freeswitch.org/wiki/Variable_intercept_unanswered_only
Also, if there are any other caveats please add them to this page.
-MC
_______________________________________________ FreeSWITCH-dev mailing list FreeSWITCH-dev@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@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900
participants (3)
-
Anthony Minessale
-
Jerry Richards
-
Michael Collins