Advertisement
Guest User

Untitled

a guest
Nov 21st, 2015
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.33 KB | None | 0 0
  1. # !KAMAILIO
  2.  
  3. #!def WITH_DEBUG
  4.  
  5. #!ifdef WITH_DEBUG
  6. debug=4
  7. log_stderror=yes
  8. #!else
  9. debug=2
  10. log_stderror=no
  11. #!endif
  12.  
  13. memdbg=5
  14. memlog=5
  15.  
  16. log_facility=LOG_LOCAL0
  17.  
  18. fork=yes
  19. children=4
  20.  
  21. /* uncomment the next line to disable TCP (default on) */
  22. #disable_tcp=yes
  23.  
  24. /* uncomment the next line to disable the auto discovery of local aliases
  25. based on reverse DNS on IPs (default on) */
  26. #auto_aliases=no
  27.  
  28. #!ifdef WITH_TLS
  29. enable_tls=yes
  30. #!endif
  31.  
  32. # life time of TCP connection when there is no traffic
  33. # - a bit higher than registration expires to cope with UA behind NAT
  34. tcp_connection_lifetime=3605
  35. tcp_accept_no_cl=yes
  36. tcp_rd_buf_size=16384
  37.  
  38. ####### Modules Section ########
  39.  
  40. # set paths to location of modules (to sources or installation folders)
  41. #!ifdef WITH_SRCPATH
  42. mpath="modules"
  43. #!else
  44. mpath="/usr/local/lib64/kamailio/modules/"
  45. #!endif
  46.  
  47. loadmodule "db_mysql.so"
  48. loadmodule "textopsx.so"
  49.  
  50. loadmodule "websocket.so"
  51. loadmodule "xhttp.so"
  52.  
  53. loadmodule "mi_fifo.so"
  54. loadmodule "kex.so"
  55. loadmodule "corex.so"
  56. loadmodule "tm.so"
  57. loadmodule "tmx.so"
  58. loadmodule "sl.so"
  59. loadmodule "rr.so"
  60. loadmodule "pv.so"
  61. loadmodule "maxfwd.so"
  62. loadmodule "usrloc.so"
  63. loadmodule "registrar.so"
  64. loadmodule "textops.so"
  65. loadmodule "siputils.so"
  66. loadmodule "xlog.so"
  67. loadmodule "sanity.so"
  68. loadmodule "ctl.so"
  69. loadmodule "cfg_rpc.so"
  70. loadmodule "mi_rpc.so"
  71. loadmodule "sdpops.so"
  72.  
  73. #!ifdef WITH_AUTH
  74. loadmodule "auth.so"
  75. loadmodule "auth_db.so"
  76. #!endif
  77.  
  78. #!ifdef WITH_NAT
  79. loadmodule "nathelper.so"
  80. loadmodule "rtpengine.so"
  81. #!endif
  82.  
  83. #!ifdef WITH_TLS
  84. loadmodule "tls.so"
  85. #!endif
  86.  
  87. #!ifdef WITH_DEBUG
  88. loadmodule "debugger.so"
  89. #!endif
  90.  
  91. loadmodule "dialog.so"
  92. loadmodule "cnxcc.so"
  93.  
  94. # loadmodule "evapi.so"
  95. # loadmodule "jansson.so"
  96. # loadmodule "rtjson.so"
  97.  
  98.  
  99.  
  100.  
  101.  
  102. # ----------------- setting module-specific parameters ---------------
  103.  
  104.  
  105. # ----- mi_fifo params -----
  106. modparam("mi_fifo", "fifo_name", "/tmp/kamailio_fifo")
  107.  
  108.  
  109. # ----- tm params -----
  110. # auto-discard branches from previous serial forking leg
  111. modparam("tm", "failure_reply_mode", 3)
  112. # default retransmission timeout: 30sec
  113. modparam("tm", "fr_timer", 30000)
  114. # default invite retransmission timeout after 1xx: 120sec
  115. modparam("tm", "fr_inv_timer", 120000)
  116.  
  117.  
  118. # ----- rr params -----
  119. # add value to ;lr param to cope with most of the UAs
  120. modparam("rr", "enable_full_lr", 1)
  121. # do not append from tag to the RR (no need for this script)
  122. modparam("rr", "append_fromtag", 0)
  123.  
  124. modparam("corex", "alias_subdomains", "MY_DOMAIN")
  125.  
  126. # ----- registrar params -----
  127. modparam("registrar", "method_filtering", 1)
  128. /* uncomment the next line to disable parallel forking via location */
  129. # modparam("registrar", "append_branches", 0)
  130. /* uncomment the next line not to allow more than 10 contacts per AOR */
  131. #modparam("registrar", "max_contacts", 10)
  132. # max value for expires of registrations
  133. modparam("registrar", "max_expires", 3600)
  134. # set it to 1 to enable GRUU
  135. modparam("registrar", "gruu_enabled", 0)
  136.  
  137. # ----- usrloc params -----
  138. /* enable DB persistency for location entries */
  139. modparam("usrloc", "db_url", DBURL)
  140. modparam("usrloc", "db_mode", 1)
  141.  
  142. # ----- auth_db params -----
  143. #!ifdef WITH_AUTH
  144. modparam("auth_db", "db_url", DBURL)
  145. modparam("auth_db", "calculate_ha1", yes)
  146. modparam("auth_db", "password_column", "password")
  147. modparam("auth_db", "load_credentials", "")
  148. # modparam("auth_db", "use_domain", DOMAIN)
  149. #!endif
  150.  
  151.  
  152. #!ifdef WITH_NAT
  153. # ----- rtpproxy params -----
  154. modparam("rtpengine", "rtpengine_sock", "udp:127.0.0.1:2223")
  155.  
  156. # ----- nathelper params -----
  157. modparam("nathelper", "natping_interval", 15)
  158. modparam("nathelper", "ping_nated_only", 1)
  159. modparam("nathelper", "sipping_bflag", FLB_NATSIPPING)
  160. modparam("nathelper", "sipping_from", "sip:pinger@kamailio.org")
  161.  
  162. # params needed for NAT traversal in other modules
  163. modparam("nathelper|registrar", "received_avp", "$avp(RECEIVED)")
  164. modparam("usrloc", "nat_bflag", FLB_NATB)
  165. #!endif
  166.  
  167.  
  168. #!ifdef WITH_TLS
  169. # ----- tls params -----
  170. modparam("tls", "config", "/usr/local/etc/kamailio/tls.cfg")
  171. #!endif
  172.  
  173. #!ifdef WITH_DEBUG
  174. # ----- debugger params -----
  175. modparam("debugger", "cfgtrace", 1)
  176. #!endif
  177. # modparam("evapi", "bind_addr", "127.0.0.1:8448")
  178.  
  179. modparam("cnxcc", "redis", "addr=127.0.0.1;port=6379;db=1")
  180. modparam("cnxcc", "credit_check_period", 1)
  181.  
  182. modparam("dialog", "dlg_flag", 13)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement