[Freeswitch-users] Setting Restrictions on Default Dialplan

Edmar Cruz darklion11 at yahoo.com
Sun Dec 20 18:39:54 PST 2009


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-tp26868725p26868725.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.





More information about the FreeSWITCH-users mailing list