[Freeswitch-users] Setting Restrictions on Default Dialplan
Edmar Cruz
darklion11 at yahoo.com
Sun Dec 20 22:31:13 PST 2009
Where should I write this line
<extension name="international dialing">
<condition field="${toll_allow}" expression="international">
<anti-action application="playfile"
data="misc/you-are-not-authorized.wav"/>
<anti-action application="hangup"/>
</condition>
<condition field="destination_number" expression="^(\d+)$"> <!-- use
whatever value works for you -->
<action application="bridge" data="sofia/internal/$1 at whatever"/>
</condition>
on the default.xml or in the default category?
Edmar Cruz wrote:
>
> Hi Sir,
>
> How can I allow international calling in the dialing plan but for
> select accounts only?
>
> For example i want to restrict 8555555 to call this ip address
> 182.138.252.12 using the default configuration.. Does this command should
> be put in the default.xml or in the default folder and the filename is
> 00_restict.xml?
>
> <extension name="dialsample">
>
> <condition field="destination_number" expression="^(8555555)$"\>
> <action application="set"
> data="effective_caller_name=${effective_caller_id_name}"/>
> <action application="set"
> data="effective_caller_number=${effective_caller_id_number}"/>
> <action application="set" data="hang_up_after_bridge=true"/>
> <action application="bridge" data="sofia/default/$1 at 182.138.252.12"/>
> </condition>
>
> </extension>
>
> When i tried this command both of them nothing happen 8555555 can call
> 182.138.252.12 i want it to restrict this account for not calling
> 182.138.252.12..
>
> Please help..
>
> Thanks,
> Edmar
>
--
View this message in context: http://old.nabble.com/Setting-Restrictions-on-Default-Dialplan-tp26868725p26870380.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.
More information about the FreeSWITCH-users
mailing list