⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pdt.cfg

📁 用来作为linux中SIP SERVER,完成VOIP网络电话中服务器的功能
💻 CFG
字号:
## $Id: pdt.cfg,v 1.3 2003/11/03 13:03:58 janakj Exp $## simple quick-start config script# # ----------- global configuration parameters ------------------------ debug=9          # debug level (cmd line: -dddddddddd) fork=no log_stderror=yes# (cmd line: -E) check_via=no    # (cmd. line: -v) dns=no           # (cmd. line: -r) rev_dns=no      # (cmd. line: -R) port=5060 children=4 fifo="/tmp/ser_fifo" listen=193.175.135.170 # ------------------ module loading ---------------------------------- # Uncomment this if you want to use SQL database loadmodule "modules/mysql/mysql.so" loadmodule "modules/sl/sl.so" loadmodule "modules/tm/tm.so" loadmodule "modules/rr/rr.so" loadmodule "modules/maxfwd/maxfwd.so" loadmodule "modules/usrloc/usrloc.so" loadmodule "modules/registrar/registrar.so" loadmodule "modules/pdt/pdt.so" # Uncomment this if you want digest authentication # mysql.so must be loaded ! #loadmodule "/usr/lib/ser/modules/auth.so" # ----------------- setting module-specific parameters --------------- # -- usrloc params -- modparam("usrloc", "db_mode",   0) # Uncomment this if you want to use SQL database  # for persistent storage and comment the previous line #modparam("usrloc", "db_mode", 2) # -- auth params -- # Uncomment if you are using auth module # #modparam("auth", "secret", "alsdkhglaksdhfkloiwr") #modparam("auth", "calculate_ha1", yes) # # If you set "calculate_ha1" parameter to yes (which true in this config),  # uncomment also the following parameter) # #modparam("auth", "password_column", "password") modparam("pdt", "db_url", "mysql://root@localhost/pdt")     modparam("pdt", "db_table", "domains") modparam("pdt", "prefix", "2") modparam("pdt", "start_range", 2000) modparam("pdt", "hsize_2pow", 2)  # -------------------------  request routing logic ------------------- # main routing logic route{         	 # initial sanity checks -- messages with         # max_forwars==0, or excessively long requests         if (!mf_process_maxfwd_header("10")) {	      sl_send_reply("483","Too Many Hops");    	      break;        };        	if (len_gt( max_len )) {          sl_send_reply("513", "Message too big");          break;        };	loose_route();	prefix2domain();				  		record_route();    	# forward to current uri now	if (!t_relay()) {    	    sl_reply_error();	};}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -