how to Block inbound(internal) sofia profile calls ?(don't allow for internal calls)
hi guys, i have defined two extensions named:1000 & 1001 so i am going to allow the above extension make outbound calls and disable inbount calls in other hand i dont want the ext:1000 able to make call to ext:1001 , and want to disable calling internal registerations sip how can i do that? thanks so much
if you are using xml dialplan, to block calls between and to 1000 and 1001 you can just remove any extension that routes calls between and to 1000 and 1001 in your dialplan (such as "Local_Extension" in sample configuration in default.xml) and to have outbound calls just add an extension that has a condition matching your destination. http://wiki.freeswitch.org/wiki/FreeSwitch_Dialplan_XML On Fri, Jun 8, 2012 at 4:13 PM, Samira Mh <saami_mh@ymail.com> wrote:
hi guys, i have defined two extensions named:1000 & 1001 so i am going to allow the above extension make outbound calls and disable inbount calls in other hand i dont want the ext:1000 able to make call to ext:1001 , and want to disable calling internal registerations sip how can i do that? thanks so much
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
hi, thanks for your reply; but default.xml is consist ad follow: <?xml version="1.0" encoding="utf-8"?> <include> <context name="default"> <X-PRE-PROCESS cmd="include" data="default/*.xml"/> </context> </include> but how can i limited internal calls? ________________________________ From: babak yakhchali <babak.freeswitch@gmail.com> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Sent: Friday, June 8, 2012 5:23 PM Subject: Re: [Freeswitch-users] how to Block inbound(internal) sofia profile calls ?(don't allow for internal calls) if you are using xml dialplan, to block calls between and to 1000 and 1001 you can just remove any extension that routes calls between and to 1000 and 1001 in your dialplan (such as "Local_Extension" in sample configuration in default.xml) and to have outbound calls just add an extension that has a condition matching your destination. http://wiki.freeswitch.org/wiki/FreeSwitch_Dialplan_XML On Fri, Jun 8, 2012 at 4:13 PM, Samira Mh <saami_mh@ymail.com> wrote: hi guys,
i have defined two extensions named:1000 & 1001 so i am going to allow the above extension make outbound calls and disable inbount calls in other hand i dont want the ext:1000 able to make call to ext:1001 , and want to disable calling internal registerations sip how can i do that? thanks so much _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com Join Us At ClueCon - Aug 7-9, 2012 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
hi, i have renamed /usr/local/freeswitch/conf/dialplan/default/999_v_local_extension.xml to 999_v_local_extension.xml.noload and reloadxml,and everythings worked correctly;;; thanks... cat 999_v_local_extension.xml <extension name="local_extension" > <condition field="destination_number" expression="(^\d{2,7}$)" > <action application="set" data="dialed_extension=$1" /> <action application="export" data="dialed_extension=$1" /> <action application="limit" data="hash ${domain_name} $1 ${limit_max} ${limit_destination}" /> <action application="bind_meta_app" data="1 b s execute_extension::dx XML features" /> <action application="bind_meta_app" data="2 b s record_session::$${recordings_dir}/archive/${strftime(%Y)}/${strftime(%b)}/${strftime(%d)}/${uuid}.wav" /> <action application="bind_meta_app" data="3 b s execute_extension::cf XML features" /> <action application="bind_meta_app" data="4 b s execute_extension::att_xfer XML features" /> <action application="set" data="ringback=${us-ring}" /> <action application="set" data="transfer_ringback=$${hold_music}" /> <action application="set" data="call_timeout=30" /> <action application="set" data="hangup_after_bridge=true" /> <action application="set" data="continue_on_fail=true" /> <action application="hash" data="insert/${domain_name}-call_return/${dialed_extension}/${caller_id_number}" /> <action application="hash" data="insert/${domain_name}-last_dial_ext/${dialed_extension}/${uuid}" /> <action application="set" data="called_party_call_group=${user_data(${dialed_extension}@${domain_name} var call_group)}" /> <action application="hash" data="insert/${domain_name}-last_dial/${called_party_call_group}/${uuid}" /> <action application="bridge" data="user/${user_data(${destination_number}@${domain_name} attr id)}@${domain_name}" /> <action application="answer" /> <action application="sleep" data="1000" /> <action application="voicemail" data="default ${domain_name} ${dialed_extension}" /> </condition> </extension> ________________________________ From: Samira Mh <saami_mh@ymail.com> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Sent: Friday, June 8, 2012 5:49 PM Subject: Re: [Freeswitch-users] how to Block inbound(internal) sofia profile calls ?(don't allow for internal calls) hi, thanks for your reply; but default.xml is consist ad follow: <?xml version="1.0" encoding="utf-8"?> <include> <context name="default"> <X-PRE-PROCESS cmd="include" data="default/*.xml"/> </context> </include> but how can i limited internal calls? ________________________________ From: babak yakhchali <babak.freeswitch@gmail.com> To: FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org> Sent: Friday, June 8, 2012 5:23 PM Subject: Re: [Freeswitch-users] how to Block inbound(internal) sofia profile calls ?(don't allow for internal calls) if you are using xml dialplan, to block calls between and to 1000 and 1001 you can just remove any extension that routes calls between and to 1000 and 1001 in your dialplan (such as "Local_Extension" in sample configuration in default.xml) and to have outbound calls just add an extension that has a condition matching your destination. http://wiki.freeswitch.org/wiki/FreeSwitch_Dialplan_XML On Fri, Jun 8, 2012 at 4:13 PM, Samira Mh <saami_mh@ymail.com> wrote: hi guys,
i have defined two extensions named:1000 & 1001 so i am going to allow the above extension make outbound calls and disable inbount calls in other hand i dont want the ext:1000 able to make call to ext:1001 , and want to disable calling internal registerations sip how can i do that? thanks so much _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com Join Us At ClueCon - Aug 7-9, 2012 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 _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com Join Us At ClueCon - Aug 7-9, 2012 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
participants (2)
-
babak yakhchali
-
Samira Mh