Hi all,<br><br>I'm new to openser and currently encountered problems. I've changed openser.cfg to support mysql. After that I restart openser using openserctl restart and openser wont start again. It gives me this error:<br><br>Starting OpenSER : PID file /var/run/openser.pid does not exist -- OpenSER start failed<br><br>When I type openserctl ps it gives me this error:<br><br><br>Error opening openser's FIFO /tmp/openser_fifo<br>Make sure you have line fifo=/tmp/openser_fifo in your config<br><br>Funny thing is that in my openser.cfg has this line.<br><br><br><br>This is what I got from tail -f /var/log/messages:<br>tail -f /var/log/messages<br>May 27 00:21:56 local /usr/local/sbin/openser[11914]: INFO: signal 15 received<br>May 27 00:21:56 local /usr/local/sbin/openser[11915]: INFO: signal 15 received<br>May 27 00:21:56 local /usr/local/sbin/openser[11920]: INFO: signal 15 received<br>May 27 00:21:56 local /usr/local/sbin/openser[11906]: INFO: signal 15 received<br>May 27
00:22:03 local /usr/local/sbin/openser[11975]: Maxfwd module- initializing<br>May 27 00:22:03 local /usr/local/sbin/openser[11975]: AUTH module - initializing<br>May 27 00:22:03 local /usr/local/sbin/openser[11975]: AUTH_DB module - initializing<br>May 27 00:22:03 local /usr/local/sbin/openser[11975]: INFO: udp_init: SO_RCVBUF is initially 107520<br>May 27 00:22:03 local /usr/local/sbin/openser[11975]: INFO: udp_init: SO_RCVBUF is finally 262142<br>May 27 00:22:03 local /usr/local/sbin/openser[11975]: ERROR: udp_init: bind(5, 0x81303fc, 16) on 70.189.13.96: Cannot assign requested address<br><br><br>Here is my openser.cfg<br>Sorry for the long post. Please help me out here. Thank you.<br><br>#<br># $Id: openser.cfg,v 1.5 2005/10/28 19:45:33 bogdan_iancu Exp $<br>#<br># simple quick-start config script<br>#<br><br># ----------- global configuration parameters ------------------------<br><br>debug=3 # debug
level (cmd line: -dddddddddd)<br>fork=yes<br>log_stderror=no # (cmd line: -E)<br><br>/* Uncomment these lines to enter debugging mode <br>fork=no<br>log_stderror=yes<br>*/<br><br>listen=70.189.13.96 # put your server IP address here<br><br><br>check_via=no # (cmd. line: -v)<br>dns=no # (cmd. line: -r)<br>rev_dns=no # (cmd. line: -R)<br>port=5060<br>children=4<br>fifo="/tmp/openser_fifo"<br><br>fifo_db_url="mysql://openser:openserrw@localhost/openser"<br><br>loadmodule "/usr/local/lib/openser/modules/mysql.so"<br>loadmodule "/usr/local/lib/openser/modules/sl.so"<br>loadmodule "/usr/local/lib/openser/modules/tm.so"<br>loadmodule "/usr/local/lib/openser/modules/rr.so"<br>loadmodule "/usr/local/lib/openser/modules/maxfwd.so"<br>loadmodule "/usr/local/lib/openser/modules/usrloc.so"<br>loadmodule
"/usr/local/lib/openser/modules/registrar.so"<br>loadmodule "/usr/local/lib/openser/modules/uri_db.so"<br>loadmodule "/usr/local/lib/openser/modules/auth.so"<br>loadmodule "/usr/local/lib/openser/modules/auth_db.so"<br><br>modparam("auth_db|usrloc", "db_url", "mysql://openser:openserrw@localhost/openser")<br>modparam("auth_db", "calculate_ha1", 1)<br>modparam("auth_db", "password_column", "password")<br>modparam("usrloc", "db_mode", 2)<br>modparam("rr", "enable_full_lr", 1)<br><br>route {<br><br> # -----------------------------------------------------------------<br> # Sanity Check Section<br> # -----------------------------------------------------------------<br> if (!mf_process_maxfwd_header("10")) {<br> sl_send_reply("483", "Too Many Hops");<br> exit;<br> };<br><br> if (msg:len > max_len)
{<br> sl_send_reply("513", "Message Overflow");<br> exit;<br> };<br><br> # -----------------------------------------------------------------<br> # Record Route Section<br> # -----------------------------------------------------------------<br> if (method!="REGISTER") {<br> record_route();<br> };<br><br> # -----------------------------------------------------------------<br> # Loose Route Section<br> # -----------------------------------------------------------------<br> if (loose_route()) {<br> route(1);<br> };<br><br> # -----------------------------------------------------------------<br> # Call
Type Processing Section<br> # -----------------------------------------------------------------<br> if (uri!=myself) {<br> route(1);<br> return;<br> };<br><br> if (method=="INVITE") {<br> route(3);<br> return;<br> } else if (method=="REGISTER") {<br> route(2);<br> return;<br> };<br><br> lookup("aliases");<br> if (uri!=myself) {<br> route(1);<br> return;<br> };<br><br> if (!lookup("location")) {<br> sl_send_reply("404", "User Not
Found");<br> return;<br> };<br><br> route(1);<br>}<br><br>route[1] {<br><br> # -----------------------------------------------------------------<br> # Default Message Handler<br> # -----------------------------------------------------------------<br> if (!t_relay()) {<br> sl_reply_error();<br> };<br>}<br><br>route[2] {<br><br> # -----------------------------------------------------------------<br> # REGISTER Message Handler<br> # ----------------------------------------------------------------<br> sl_send_reply("100", "Trying");<br> <br> if (!www_authorize("strain15.myftp.org","subscriber")) {<br>
www_challenge("strain15.myftp.org","0");<br> exit;<br> };<br><br> if (!check_to()) {<br> sl_send_reply("401", "Unauthorized");<br> return;<br> };<br><br> consume_credentials();<br><br> if (!save("location")) {<br> sl_reply_error();<br> };<br>}<br><br>route[3] {<br> # -----------------------------------------------------------------<br> # INVITE Message Handler<br> # -----------------------------------------------------------------<br> if (!proxy_authorize("","subscriber")) {<br> proxy_challenge("","0");<br> return;<br> } else if (!check_from())
{<br> sl_send_reply("403", "Use From=ID");<br> return;<br> };<br><br> consume_credentials();<br><br> lookup("aliases");<br> if (uri!=myself) {<br> route(1);<br> };<br><br> if (!lookup("location")) {<br> sl_send_reply("404", "User Not Found");<br> exit;<br> };<br><br> route(1);<br>}<br><br><br><br><br><p>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com