I've got problems running SER. I installed it into /usr/local/etc/src/ser as root. SER is located at /usr/local/sbin/. When I try to start it as mentioned in the document "SER getting started" with the command /usr/local/sbin/ser -D -E I get the following error: 0(19374) parse error (11,1-5) : syntax error 0(19374) parse error (11,1-5) : ERROR: bad config file (2 errors)
I dont know what the error could be because I'm using the "Hello World" ser.cfg as introduced in the document mentioned above. I'll post it at the end of this mail.
Thanks
1. debug=3 2. fork=no 3. log_stderror=yes 4. 5. listen=192.0.2.13 # INSERT YOUR IP ADDRESS HERE 6. port=5060 7. children=4 8. 9. dns=no 10. rev_dns=no 11. fifo="/tmp/ser_fifo" 12. 13. loadmodule "/usr/local/lib/ser/modules/sl.so" 14. loadmodule "/usr/local/lib/ser/modules/tm.so" 15. loadmodule "/usr/local/lib/ser/modules/rr.so" 16. loadmodule "/usr/local/lib/ser/modules/maxfwd.so" 17. loadmodule "/usr/local/lib/ser/modules/usrloc.so" 18. loadmodule "/usr/local/lib/ser/modules/registrar.so" 19. 20. modparam("usrloc", "db_mode", 0) 21. modparam("rr", "enable_full_lr", 1) 22. 23. route { 24. 25. # ------------------------------------------------------------------------ 26. # Sanity Check Section 27. # ------------------------------------------------------------------------ 28. if (!mf_process_maxfwd_header("10")) { 29. sl_send_reply("483", "Too Many Hops"); 30. break; 31. }; 32. 33. if (msg:len > max_len) { 34. sl_send_reply("513", "Message Overflow"); 35. break; 36. }; 37. 38. # ------------------------------------------------------------------------ 39. # Record Route Section 40. # ------------------------------------------------------------------------ 41. if (method!="REGISTER") { 42. record_route(); 43. }; 44. 45. # ------------------------------------------------------------------------ 46. # Loose Route Section 47. # ------------------------------------------------------------------------ 48. if (loose_route()) { 49. route(1); 50. break; 51. }; 52. 53. # ------------------------------------------------------------------------ 54. # Call Type Processing Section 55. # ------------------------------------------------------------------------ 56. if (uri!=myself) { 57. route(1); 58. break; 59. }; 60. 61. if (method=="REGISTER") { 62. route(2); 63. break; 64. }; 65. 66. lookup("aliases"); 67. if (uri!=myself) { 68. route(1); 69. break; 70. }; 71. 72. if (!lookup("location")) { 73. sl_send_reply("404", "User Not Found"); 74. break; 75. }; 76. 77. route(1); 78. } 79. 80. route[1] { 81. # ------------------------------------------------------------------------ 82. # Default Message Handler 83. # ------------------------------------------------------------------------ 84. if (!t_relay()) { 85. sl_reply_error(); 86. }; 87. } 88. 89. route[2] { 90. # ------------------------------------------------------------------------ 91. # REGISTER Message Handler 92. # ------------------------------------------------------------------------ 93. if (!save("location")) { 94. sl_reply_error(); 95. }; 96. }
_________________________________________________________________ Nur die MSN Suche sorgt bei einer Web-Recherche für optimale Ergebnisse. http://search.msn.at/