to_fox.cfg 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. #
  2. # iptel.org real world configuration
  3. #
  4. # $Id$
  5. #
  6. # ----------- global configuration parameters ------------
  7. debug=4 # debug level (cmd line: -dddddddddd)
  8. #fork=yes
  9. fork=no
  10. #log_stderror=no # (cmd line: -E)
  11. log_stderror=yes # (cmd line: -E)
  12. #check_via=yes # (cmd. line: -v)
  13. check_via=no# (cmd. line: -v)
  14. dns=on # (cmd. line: -r)
  15. rev_dns=yes # (cmd. line: -R)
  16. port=5060
  17. children=1
  18. # advertise IP address in Via (as opposed to advertising DNS name
  19. # which is annoying for downstream servers and some phones can
  20. # not handle DNS at all)
  21. listen=195.37.77.100
  22. #listen=bat.iptel.org
  23. # ------------------ module loading ----------------
  24. loadmodule "../sip_router/modules/print/print.so"
  25. #loadmodule "../sip_router/modules/tm/tm.so"
  26. loadmodule "../sip_router/modules/sl/sl.so"
  27. loadmodule "../sip_router/modules/maxfwd/maxfwd.so"
  28. # ----------------- setting module-specific parameters -------
  29. # -- tm params --
  30. modparam("tm", "fr_timer", 30 )
  31. modparam("tm", "fr_inv_timer", 30 )
  32. modparam("tm", "wt_timer", 3 )
  33. modparam("tm", "retr_timer2", 4 )
  34. modparam("tm", "retr_timer1p1", 4 )
  35. modparam("tm", "retr_timer1p2", 4 )
  36. modparam("tm", "retr_timer1p3", 4 )
  37. route{
  38. # filter local stateless ACK generated by authentication of mf replies
  39. sl_filter_ACK();
  40. if (len_gt( max_len )) {
  41. # if (len_gt( 100 )) {
  42. sl_send_reply("513", "Riesengross -- Message too large");
  43. log("XXX Riessengross: dropped\n");
  44. break;
  45. };
  46. # filter too old messages
  47. log("LOG: Checking maxfwd\n");
  48. if (!mf_process_maxfwd_header("0")) {
  49. log("LOG: Too many hops\n");
  50. sl_send_reply("483","Too Many Hops");
  51. break;
  52. };
  53. # if (uri=~"jiri@") {
  54. # seturi("sip:[email protected]");
  55. # log("jiri");
  56. # };
  57. seturi("sip:[email protected]");
  58. # t_fork_on_no_response("sip:[email protected]");
  59. # sethost("iptel.org");
  60. # seturi("sip:[email protected]:9");
  61. # t_fork_to_uri("sip:[email protected]:5064");
  62. # if (not method=="ACK") seturi("sip:[email protected]:5060");
  63. if (!t_relay()) {
  64. # if (!t_relay_to("iptel.org", "5060")) {
  65. sl_reply_error();
  66. break;
  67. };
  68. # THERE IT IS
  69. # seturi("sip:[email protected]:5060");
  70. # t_fork_on_no_response("sip:[email protected]");
  71. # t_relay();
  72. # t_relay_to("iptel.org","5060");
  73. # forward( uri:host, uri:port );
  74. # strip(9);
  75. # t_relay_to( "localhost", "9" );
  76. }