brian.xml 4.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <include>
  2. <!--
  3. ipauth if you have an cidr= in the user attributes ie cidr="1.2.3.4/32"
  4. see <node type="allow" domain="$${domain}"/> in default acl.conf.xml
  5. -->
  6. <user id="brian" cidr="192.0.2.0/24">
  7. <!-- Outbound Registrations Related to this user -->
  8. <gateways>
  9. <!--<gateway name="asterlink.com">-->
  10. <!--/// account username *required* ///-->
  11. <!--<param name="username" value="cluecon"/>-->
  12. <!--/// auth realm: *optional* same as gateway name, if blank ///-->
  13. <!--<param name="realm" value="asterlink.com"/>-->
  14. <!--/// username to use in from: *optional* same as username, if blank ///-->
  15. <!--<param name="from-user" value="cluecon"/>-->
  16. <!--/// domain to use in from: *optional* same as realm, if blank ///-->
  17. <!--<param name="from-domain" value="asterlink.com"/>-->
  18. <!--/// account password *required* ///-->
  19. <!--<param name="password" value="2007"/>-->
  20. <!--/// replace the INVITE from user with the channel's caller-id ///-->
  21. <!--<param name="caller-id-in-from" value="false"/>-->
  22. <!--/// extension for inbound calls: *optional* same as username, if blank ///-->
  23. <!--<param name="extension" value="cluecon"/>-->
  24. <!--/// proxy host: *optional* same as realm, if blank ///-->
  25. <!--<param name="proxy" value="asterlink.com"/>-->
  26. <!--/// send register to this proxy: *optional* same as proxy, if blank ///-->
  27. <!--<param name="register-proxy" value="mysbc.com"/>-->
  28. <!--/// expire in seconds: *optional* 3600, if blank ///-->
  29. <!--<param name="expire-seconds" value="60"/>-->
  30. <!--/// do not register ///-->
  31. <!--<param name="register" value="false"/>-->
  32. <!-- which transport to use for register -->
  33. <!--<param name="register-transport" value="udp"/>-->
  34. <!--How many seconds before a retry when a failure or timeout occurs -->
  35. <!--<param name="retry-seconds" value="30"/>-->
  36. <!--Use the callerid of an inbound call in the from field on outbound calls via this gateway -->
  37. <!--<param name="caller-id-in-from" value="false"/>-->
  38. <!--extra sip params to send in the contact-->
  39. <!--<param name="contact-params" value=""/>-->
  40. <!--send an options ping every x seconds, failure will unregister and/or mark it down-->
  41. <!--<param name="ping" value="25"/>-->
  42. <!--</gateway>-->
  43. </gateways>
  44. <params>
  45. <!-- omit password for authless registration -->
  46. <param name="password" value="$${default_password}"/>
  47. <param name="vm-password" value="9999"/><!--if vm-password is omitted password param is used-->
  48. <!--<param name="email-addr" value="me@mydomain.com"/>-->
  49. <!--<param name="vm-delete-file" value="true"/>-->
  50. <!--<param name="vm-attach-file" value="true"/>-->
  51. <!--<param name="vm-mailto" value="me@mydomain.com"/>-->
  52. <!--<param name="vm-email-all-messages" value="true"/>-->
  53. <!-- optionally use this instead if you want to store the hash of user:domain:pass-->
  54. <!--<param name="a1-hash" value="c6440e5de50b403206989679159de89a"/>-->
  55. <!-- What this user is allowed to acces -->
  56. <!--<param name="http-allowed-api" value="jsapi,voicemail,status"/> -->
  57. </params>
  58. <variables>
  59. <!--all variables here will be set on all inbound calls that originate from this user -->
  60. <variable name="user_context" value="default"/>
  61. <variable name="effective_caller_id_name" value="Brian West"/>
  62. <variable name="effective_caller_id_number" value="1000"/>
  63. <!-- Don't write a CDR if this is false valid values are: true, false, a_leg and b_leg -->
  64. <variable name="process_cdr" value="true"/>
  65. <!-- rtp_secure_media will offer mandatory SRTP on invite AES_CM_128_HMAC_SHA1_32, AES_CM_128_HMAC_SHA1_80 or true-->
  66. <variable name="rtp_secure_media" value="true"/>
  67. <!-- limit the max number of outgoing calls for this user -->
  68. <!--<variable name="max_calls" value="2"/>-->
  69. <!-- send presence information if FS is configured to do so -->
  70. <!--<variable name="presence_id" value="1000@$${domain}"/>-->
  71. <!-- set these to take advantage of a dialplan localized to this user -->
  72. <!--<variable name="numbering_plan" value="US"/>-->
  73. <!--<variable name="default_area_code" value="434"/>-->
  74. <!--<variable name="default_gateway" value="asterlink.com"/>-->
  75. <!--
  76. NDLB-connectile-dysfunction - Rewrite contact ip and port
  77. NDLB-tls-connectile-dysfunction - Rewrite contact port only.
  78. -->
  79. <!--<variable name="sip-force-contact" value="NDLB-connectile-dysfunction"/>-->
  80. <!--<variable name="sip-force-expires" value="10"/>-->
  81. <!--<variable name="sip-register-gateway" value="cluecon.com"/>-->
  82. <!-- Set the file format for a specific user -->
  83. <!--<variable name="vm_message_ext" value="mp3"/> -->
  84. </variables>
  85. <vcard>
  86. <!-- insert optional compliant vcard xml here-->
  87. </vcard>
  88. </user>
  89. </include>