1234567891011121314151617181920212223242526272829303132333435363738394041 |
- # $Id$
- # sample config file for dispatcher module
- #
- debug=9 # debug level (cmd line: -dddddddddd)
- fork=no
- log_stderror=yes # (cmd line: -E)
- children=2
- check_via=no # (cmd. line: -v)
- dns=off # (cmd. line: -r)
- rev_dns=off # (cmd. line: -R)
- port=5060
- # for more info: sip_router -h
- # ------------------ module loading ----------------------------------
- loadmodule "../sip_router/modules/maxfwd/maxfwd.so"
- loadmodule "../sip_router/modules/sl/sl.so"
- # loadmodule "../sip_router/modules/tm/tm.so"
- loadmodule "../sip_router/modules/dispatcher/dispatcher.so"
- # ----------------- setting module-specific parameters ---------------
- # -- dispatcher params --
- modparam("dispatcher", "list_file", "../etc/dispatcher.list")
- # modparam("dispatcher", "force_dst", 1)
- route{
- if ( !mf_process_maxfwd_header("10") )
- {
- sl_send_reply("483","To Many Hops");
- drop();
- };
-
- ds_select_dst("2", "0");
-
- forward(uri:host, uri:port);
- # t_relay();
- }
|