net/freeswitch: Separated configs. Made -upstream-defaults config a separate package and added it to freeswitch-default. Also added -config-minimal and added it to freeswitch-minimal

git-svn-id: svn://svn.openwrt.org/openwrt/packages@21966 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
cshore
2010-06-27 13:36:34 +00:00
parent 542b16f10f
commit e70acbe91f
33 changed files with 3252 additions and 9 deletions

View File

@ -0,0 +1,43 @@
<!--
NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
FreeSWITCH works off the concept of users and domains just like email.
You have users that are in domains for example 1000@domain.com.
When freeswitch gets a register packet it looks for the user in the directory
based on the from or to domain in the packet depending on how your sofia profile
is configured. Out of the box the default domain will be the IP address of the
machine running FreeSWITCH. This IP can be found by typing "sofia status" at the
CLI. You will register your phones to the IP and not the hostname by default.
If you wish to register using the domain please open vars.xml in the root conf
directory and set the default domain to the hostname you desire. Then you would
use the domain name in the client instead of the IP address to register
with FreeSWITCH.
NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE
-->
<include>
<!--the domain or ip (the right hand side of the @ in the addr-->
<domain name="$${domain}">
<params>
<param name="dial-string" value="{presence_id=${dialed_user}@${dialed_domain}}${sofia_contact(${dialed_user}@${dialed_domain})}"/>
</params>
<variables>
<variable name="record_stereo" value="true"/>
<variable name="default_gateway" value="$${default_provider}"/>
<variable name="default_areacode" value="$${default_areacode}"/>
<variable name="transfer_fallback_extension" value="operator"/>
</variables>
<groups>
<group name="default">
<users>
<X-PRE-PROCESS cmd="include" data="default/*.xml"/>
</users>
</group>
</groups>
</domain>
</include>

View File

@ -0,0 +1,18 @@
<include>
<user id="1000">
<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>
</include>

View File

@ -0,0 +1,18 @@
<include>
<user id="1001">
<params>
<param name="password" value="$${default_password}"/>
<param name="vm-password" value="1001"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<variable name="accountcode" value="1001"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Extension 1001"/>
<variable name="effective_caller_id_number" value="1001"/>
<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>
</include>

View File

@ -0,0 +1,18 @@
<include>
<user id="1002">
<params>
<param name="password" value="$${default_password}"/>
<param name="vm-password" value="1002"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<variable name="accountcode" value="1002"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Extension 1002"/>
<variable name="effective_caller_id_number" value="1002"/>
<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>
</include>

View File

@ -0,0 +1,18 @@
<include>
<user id="1003">
<params>
<param name="password" value="$${default_password}"/>
<param name="vm-password" value="1003"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<variable name="accountcode" value="1003"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Extension 1003"/>
<variable name="effective_caller_id_number" value="1003"/>
<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>
</include>

View File

@ -0,0 +1,18 @@
<include>
<user id="1004">
<params>
<param name="password" value="$${default_password}"/>
<param name="vm-password" value="1004"/>
</params>
<variables>
<variable name="toll_allow" value="domestic,international,local"/>
<variable name="accountcode" value="1004"/>
<variable name="user_context" value="default"/>
<variable name="effective_caller_id_name" value="Extension 1004"/>
<variable name="effective_caller_id_number" value="1004"/>
<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>
</include>

View File

@ -0,0 +1,26 @@
<include>
<user id="default"> <!--if id is numeric mailbox param is not necessary-->
<!--
ATTENTION PLEASE READ THIS... (I know you won't but you've been warrned)
Let it be known that this user can register without a password but since we do not assign
this user a user_context and we don't authenticate this user they will be put in context 'public'.
This isn't a security issue as the endpoint would be put into the same context 'public' as the
sofia profile that starts on 5080 by default. If you're paranoid just remove this file and
remove the external profile also.
If you're this paranoid you might wanna go buy some more tinfoil and disconnect from the internets.
Cuz we all know the internets is for pr0n anyway.
-->
<variables>
<!--all variables here will be set on all inbound calls that originate from this user -->
<!-- set these to take advantage of a dialplan localized to this user -->
<variable name="numbering_plan" value="$${default_country}"/>
<variable name="default_areacode" value="$${default_areacode}"/>
<variable name="default_gateway" value="$${default_provider}"/>
</variables>
</user>
</include>