mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-13 12:40:17 +00:00
now this is interesting
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6570 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
02f96bf9d6
commit
4232c281a9
@ -1,117 +1,6 @@
|
|||||||
<!--the domain or ip (the right hand side of the @ in the addr-->
|
<include>
|
||||||
<domain name="$${domain}">
|
<!--the domain or ip (the right hand side of the @ in the addr-->
|
||||||
<!--the user id (the left hand side of the @ in the addr-->
|
<domain name="$${domain}">
|
||||||
<user id="default"> <!--if id is numeric mailbox param is not necessary-->
|
<X-PRE-PROCESS cmd="include" data="*/*.xml"/>
|
||||||
<variables>
|
</domain>
|
||||||
<!--all variables here will be set on all inbound calls that originate from this user -->
|
</include>
|
||||||
<!-- set these to take advantage of a dialplan localized to this user -->
|
|
||||||
<variable name="numbering_plan" value="US"/>
|
|
||||||
<!-- <variable name="default_area_code" value="434"/> -->
|
|
||||||
</variables>
|
|
||||||
</user>
|
|
||||||
|
|
||||||
<user id="brian" mailbox="1000"> <!--if id is numeric mailbox param is not necessary-->
|
|
||||||
<!-- Outbound Registrations Related to this user -->
|
|
||||||
<gateways>
|
|
||||||
<!--<gateway name="asterlink.com">-->
|
|
||||||
<!--/// account username *required* ///-->
|
|
||||||
<!--<param name="username" value="cluecon"/>-->
|
|
||||||
<!--/// auth realm: *optional* same as gateway name, if blank ///-->
|
|
||||||
<!--<param name="realm" value="asterlink.com"/>-->
|
|
||||||
<!--/// username to use in from: *optional* same as username, if blank ///-->
|
|
||||||
<!--<param name="from-user" value="cluecon"/>-->
|
|
||||||
<!--/// domain to use in from: *optional* same as realm, if blank ///-->
|
|
||||||
<!--<param name="from-domain" value="asterlink.com"/>-->
|
|
||||||
<!--/// account password *required* ///-->
|
|
||||||
<!--<param name="password" value="2007"/>-->
|
|
||||||
<!--/// replace the INVITE from user with the channel's caller-id ///-->
|
|
||||||
<!--<param name="caller-id-in-from" value="false"/>-->
|
|
||||||
<!--/// extension for inbound calls: *optional* same as username, if blank ///-->
|
|
||||||
<!--<param name="extension" value="cluecon"/>-->
|
|
||||||
<!--/// proxy host: *optional* same as realm, if blank ///-->
|
|
||||||
<!--<param name="proxy" value="asterlink.com"/>-->
|
|
||||||
<!--/// send register to this proxy: *optional* same as proxy, if blank ///-->
|
|
||||||
<!--<param name="register-proxy" value="mysbc.com"/>-->
|
|
||||||
<!--/// expire in seconds: *optional* 3600, if blank ///-->
|
|
||||||
<!--<param name="expire-seconds" value="60"/>-->
|
|
||||||
<!--/// do not register ///-->
|
|
||||||
<!--<param name="register" value="false"/>-->
|
|
||||||
<!-- which transport to use for register -->
|
|
||||||
<!--<param name="register-transport" value="udp"/>-->
|
|
||||||
<!--How many seconds before a retry when a failure or timeout occurs -->
|
|
||||||
<!--<param name="retry_seconds" value="30"/>-->
|
|
||||||
<!--Use the callerid of an inbound call in the from field on outbound calls via this gateway -->
|
|
||||||
<!--<param name="caller-id-in-from" value="false"/>-->
|
|
||||||
<!--extra sip params to send in the contact-->
|
|
||||||
<!--<param name="contact-params" value="tport=tcp"/>-->
|
|
||||||
<!--</gateway>-->
|
|
||||||
</gateways>
|
|
||||||
<params>
|
|
||||||
<!-- omit password for authless registration -->
|
|
||||||
<param name="password" value="1234"/>
|
|
||||||
<param name="vm-password" value="1234"/><!--if vm-password is omitted password param is used-->
|
|
||||||
<!--<param name="email-addr" value="me@mydomain.com"/>-->
|
|
||||||
<!--<param name="vm-delete-file" value="true"/>-->
|
|
||||||
<!--<param name="vm-attach-file" value="true"/>-->
|
|
||||||
<!--<param name="vm-mailto" value="me@mydomain.com"/>-->
|
|
||||||
<!--<param name="vm-email-all-messages" value="true"/>-->
|
|
||||||
<!-- optionally use this instead if you want to store the hash of user:domain:pass-->
|
|
||||||
<!--<param name="a1-hash" value="c6440e5de50b403206989679159de89a"/>-->
|
|
||||||
</params>
|
|
||||||
<variables>
|
|
||||||
<!--all variables here will be set on all inbound calls that originate from this user -->
|
|
||||||
<variable name="testing" value="this"/>
|
|
||||||
|
|
||||||
<!-- limit the max number of outgoing calls for this user -->
|
|
||||||
<!--<variable name="max_calls" value="2"/>-->
|
|
||||||
|
|
||||||
<!-- send presence information if FS is configured to do so -->
|
|
||||||
<!--<variable name="presence_id" value="1000@$${domain}"/>-->
|
|
||||||
|
|
||||||
<!-- set these to take advantage of a dialplan localized to this user -->
|
|
||||||
<!--<variable name="numbering_plan" value="US"/>-->
|
|
||||||
<!--<variable name="default_area_code" value="434"/>-->
|
|
||||||
<!--<variable name="default_gateway" value="asterlink.com"/>-->
|
|
||||||
|
|
||||||
<!--<variable name="sip-force-contact" value="nat-connectile-dysfunction"/>-->
|
|
||||||
<!--<variable name="sip-force-expires" value="10"/>-->
|
|
||||||
<!--<variable name="sip-register-gateway" value="cluecon.com"/>-->
|
|
||||||
</variables>
|
|
||||||
|
|
||||||
<vcard>
|
|
||||||
<!-- insert optional compliant vcard xml here-->
|
|
||||||
</vcard>
|
|
||||||
</user>
|
|
||||||
|
|
||||||
<!-- this is an example of a user with auth and various settings -->
|
|
||||||
<user id="1000" mailbox="1000">
|
|
||||||
<params>
|
|
||||||
<param name="password" value="mypass"/>
|
|
||||||
<param name="vm-password" value="1234"/>
|
|
||||||
<!--<param name="vm-mailto" value="me@mydomain.com"/>-->
|
|
||||||
<!--<param name="vm-email-all-messages" value="true"/>-->
|
|
||||||
<param name="dial-string" value="sofia/${use_profile}/888@conference.freeswitch.org"/>
|
|
||||||
</params>
|
|
||||||
</user>
|
|
||||||
|
|
||||||
<!-- authless users and mailboxes -->
|
|
||||||
<user id="1001"/>
|
|
||||||
<user id="1002"/>
|
|
||||||
<user id="1003"/>
|
|
||||||
<user id="1004"/>
|
|
||||||
<user id="1005"/>
|
|
||||||
<user id="1006"/>
|
|
||||||
<user id="1007"/>
|
|
||||||
<user id="1008"/>
|
|
||||||
<user id="1009"/>
|
|
||||||
<user id="1010"/>
|
|
||||||
<user id="1011"/>
|
|
||||||
<user id="1012"/>
|
|
||||||
<user id="1013"/>
|
|
||||||
<user id="1014"/>
|
|
||||||
<user id="1015"/>
|
|
||||||
<user id="1016"/>
|
|
||||||
<user id="1017"/>
|
|
||||||
<user id="1018"/>
|
|
||||||
<user id="1019"/>
|
|
||||||
</domain>
|
|
||||||
|
11
conf/directory/default/1000.xml
Normal file
11
conf/directory/default/1000.xml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1000" mailbox="1000">
|
||||||
|
<params>
|
||||||
|
<param name="password" value="mypass"/>
|
||||||
|
<param name="vm-password" value="1234"/>
|
||||||
|
<!--<param name="vm-mailto" value="me@mydomain.com"/>-->
|
||||||
|
<!--<param name="vm-email-all-messages" value="true"/>-->
|
||||||
|
<param name="dial-string" value="sofia/${use_profile}/888@conference.freeswitch.org"/>
|
||||||
|
</params>
|
||||||
|
</user>
|
||||||
|
</include>
|
3
conf/directory/default/1001.xml
Normal file
3
conf/directory/default/1001.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1001"/>
|
||||||
|
</include>
|
3
conf/directory/default/1002.xml
Normal file
3
conf/directory/default/1002.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1002"/>
|
||||||
|
</include>
|
3
conf/directory/default/1003.xml
Normal file
3
conf/directory/default/1003.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1003"/>
|
||||||
|
</include>
|
3
conf/directory/default/1004.xml
Normal file
3
conf/directory/default/1004.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1004"/>
|
||||||
|
</include>
|
3
conf/directory/default/1005.xml
Normal file
3
conf/directory/default/1005.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1005"/>
|
||||||
|
</include>
|
3
conf/directory/default/1006.xml
Normal file
3
conf/directory/default/1006.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1006"/>
|
||||||
|
</include>
|
3
conf/directory/default/1007.xml
Normal file
3
conf/directory/default/1007.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1007"/>
|
||||||
|
</include>
|
3
conf/directory/default/1008.xml
Normal file
3
conf/directory/default/1008.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1008"/>
|
||||||
|
</include>
|
3
conf/directory/default/1009.xml
Normal file
3
conf/directory/default/1009.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1009"/>
|
||||||
|
</include>
|
3
conf/directory/default/1010.xml
Normal file
3
conf/directory/default/1010.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1010"/>
|
||||||
|
</include>
|
3
conf/directory/default/1011.xml
Normal file
3
conf/directory/default/1011.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1011"/>
|
||||||
|
</include>
|
3
conf/directory/default/1012.xml
Normal file
3
conf/directory/default/1012.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1012"/>
|
||||||
|
</include>
|
3
conf/directory/default/1013.xml
Normal file
3
conf/directory/default/1013.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1013"/>
|
||||||
|
</include>
|
3
conf/directory/default/1014.xml
Normal file
3
conf/directory/default/1014.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1014"/>
|
||||||
|
</include>
|
3
conf/directory/default/1015.xml
Normal file
3
conf/directory/default/1015.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1015"/>
|
||||||
|
</include>
|
3
conf/directory/default/1016.xml
Normal file
3
conf/directory/default/1016.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1016"/>
|
||||||
|
</include>
|
3
conf/directory/default/1017.xml
Normal file
3
conf/directory/default/1017.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1017"/>
|
||||||
|
</include>
|
3
conf/directory/default/1018.xml
Normal file
3
conf/directory/default/1018.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1018"/>
|
||||||
|
</include>
|
3
conf/directory/default/1019.xml
Normal file
3
conf/directory/default/1019.xml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<include>
|
||||||
|
<user id="1019"/>
|
||||||
|
</include>
|
74
conf/directory/default/brian.xml
Normal file
74
conf/directory/default/brian.xml
Normal file
@ -0,0 +1,74 @@
|
|||||||
|
<include>
|
||||||
|
<user id="brian" mailbox="9999"> <!--if id is numeric mailbox param is not necessary-->
|
||||||
|
<!-- Outbound Registrations Related to this user -->
|
||||||
|
<gateways>
|
||||||
|
<!--<gateway name="asterlink.com">-->
|
||||||
|
<!--/// account username *required* ///-->
|
||||||
|
<!--<param name="username" value="cluecon"/>-->
|
||||||
|
<!--/// auth realm: *optional* same as gateway name, if blank ///-->
|
||||||
|
<!--<param name="realm" value="asterlink.com"/>-->
|
||||||
|
<!--/// username to use in from: *optional* same as username, if blank ///-->
|
||||||
|
<!--<param name="from-user" value="cluecon"/>-->
|
||||||
|
<!--/// domain to use in from: *optional* same as realm, if blank ///-->
|
||||||
|
<!--<param name="from-domain" value="asterlink.com"/>-->
|
||||||
|
<!--/// account password *required* ///-->
|
||||||
|
<!--<param name="password" value="2007"/>-->
|
||||||
|
<!--/// replace the INVITE from user with the channel's caller-id ///-->
|
||||||
|
<!--<param name="caller-id-in-from" value="false"/>-->
|
||||||
|
<!--/// extension for inbound calls: *optional* same as username, if blank ///-->
|
||||||
|
<!--<param name="extension" value="cluecon"/>-->
|
||||||
|
<!--/// proxy host: *optional* same as realm, if blank ///-->
|
||||||
|
<!--<param name="proxy" value="asterlink.com"/>-->
|
||||||
|
<!--/// send register to this proxy: *optional* same as proxy, if blank ///-->
|
||||||
|
<!--<param name="register-proxy" value="mysbc.com"/>-->
|
||||||
|
<!--/// expire in seconds: *optional* 3600, if blank ///-->
|
||||||
|
<!--<param name="expire-seconds" value="60"/>-->
|
||||||
|
<!--/// do not register ///-->
|
||||||
|
<!--<param name="register" value="false"/>-->
|
||||||
|
<!-- which transport to use for register -->
|
||||||
|
<!--<param name="register-transport" value="udp"/>-->
|
||||||
|
<!--How many seconds before a retry when a failure or timeout occurs -->
|
||||||
|
<!--<param name="retry_seconds" value="30"/>-->
|
||||||
|
<!--Use the callerid of an inbound call in the from field on outbound calls via this gateway -->
|
||||||
|
<!--<param name="caller-id-in-from" value="false"/>-->
|
||||||
|
<!--extra sip params to send in the contact-->
|
||||||
|
<!--<param name="contact-params" value="tport=tcp"/>-->
|
||||||
|
<!--</gateway>-->
|
||||||
|
</gateways>
|
||||||
|
<params>
|
||||||
|
<!-- omit password for authless registration -->
|
||||||
|
<param name="password" value="1234"/>
|
||||||
|
<param name="vm-password" value="1234"/><!--if vm-password is omitted password param is used-->
|
||||||
|
<!--<param name="email-addr" value="me@mydomain.com"/>-->
|
||||||
|
<!--<param name="vm-delete-file" value="true"/>-->
|
||||||
|
<!--<param name="vm-attach-file" value="true"/>-->
|
||||||
|
<!--<param name="vm-mailto" value="me@mydomain.com"/>-->
|
||||||
|
<!--<param name="vm-email-all-messages" value="true"/>-->
|
||||||
|
<!-- optionally use this instead if you want to store the hash of user:domain:pass-->
|
||||||
|
<!--<param name="a1-hash" value="c6440e5de50b403206989679159de89a"/>-->
|
||||||
|
</params>
|
||||||
|
<variables>
|
||||||
|
<!--all variables here will be set on all inbound calls that originate from this user -->
|
||||||
|
<variable name="testing" value="this"/>
|
||||||
|
|
||||||
|
<!-- limit the max number of outgoing calls for this user -->
|
||||||
|
<!--<variable name="max_calls" value="2"/>-->
|
||||||
|
|
||||||
|
<!-- send presence information if FS is configured to do so -->
|
||||||
|
<!--<variable name="presence_id" value="1000@$${domain}"/>-->
|
||||||
|
|
||||||
|
<!-- set these to take advantage of a dialplan localized to this user -->
|
||||||
|
<!--<variable name="numbering_plan" value="US"/>-->
|
||||||
|
<!--<variable name="default_area_code" value="434"/>-->
|
||||||
|
<!--<variable name="default_gateway" value="asterlink.com"/>-->
|
||||||
|
|
||||||
|
<!--<variable name="sip-force-contact" value="nat-connectile-dysfunction"/>-->
|
||||||
|
<!--<variable name="sip-force-expires" value="10"/>-->
|
||||||
|
<!--<variable name="sip-register-gateway" value="cluecon.com"/>-->
|
||||||
|
</variables>
|
||||||
|
|
||||||
|
<vcard>
|
||||||
|
<!-- insert optional compliant vcard xml here-->
|
||||||
|
</vcard>
|
||||||
|
</user>
|
||||||
|
</include>
|
10
conf/directory/default/default.xml
Normal file
10
conf/directory/default/default.xml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
<include>
|
||||||
|
<user id="default"> <!--if id is numeric mailbox param is not necessary-->
|
||||||
|
<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="US"/>
|
||||||
|
<!-- <variable name="default_area_code" value="434"/> -->
|
||||||
|
</variables>
|
||||||
|
</user>
|
||||||
|
</include>
|
Loading…
x
Reference in New Issue
Block a user