[Freeswitch-users] Local call uses public context?

Brian West brian at freeswitch.org
Mon Dec 28 14:57:49 PST 2009


acl.conf.xml

    <list name="domains" default="deny">                                                                                                                        
      <node type="allow" domain="$${domain}"/>                                                                                                                  
    </list> 


sofia profile:

<domains>                                                                                                                                                     
    <domain name="all" alias="true" parse="false"/>                                                                                                             
  </domains>

and

<param name="apply-inbound-acl" value="domains"/>

Then here is an example of a user:

  <user id="1000" cidr=1.2.3.4/32>                                                                                                                                              
    <params>                                                                                                                                                    
      <param name="password" value="$${default_password}"/>                                                                                                     
      <param name="vm-password" value="1000"/>                                                                                                                  
    </params>                                                                                                                                                   
    <variables>                                                                                                                                                 
      <variable name="toll_allow" value="domestic,international,local"/>                                                                                        
      <variable name="accountcode" value="1000"/>                                                                                                               
      <variable name="user_context" value="default"/>                                                                                                           
      <variable name="effective_caller_id_name" value="Extension 1000"/>                                                                                        
      <variable name="effective_caller_id_number" value="1000"/>                                                                                                
      <variable name="outbound_caller_id_name" value="$${outbound_caller_name}"/>                                                                               
      <variable name="outbound_caller_id_number" value="$${outbound_caller_id}"/>                                                                               
      <variable name="callgroup" value="techsupport"/>                                                                                                          
    </variables>                                                                                                                                                
  </user>             


Now save that.. restart freeswitch and you now let that user in from 1.2.3.4/32 and set the user_context to default.


/b





More information about the FreeSWITCH-users mailing list