<p dir="ltr">Shalom Shimon u need to make sure that you compiled all needed modules.</p>
<div class="gmail_quote">On Sep 2, 2012 1:03 PM, &quot;Shimon Mishal&quot; &lt;<a href="mailto:shimon.mishal@telrad.com">shimon.mishal@telrad.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
<br>
I followed your instruction and loaded the missing &quot;sipmsgops&quot; module but now I get different errors:<br>
<br>
Could someone send me the correct config file for 1.8.1<br>
<br>
ERROR: PID file /var/run/opensips/opensips.pid does not exist -- OpenSIPS start failed<br>
[ec2-user@ip-10-128-35-32 opensips]$ sudo tail /var/log/messages<br>
Sep  2 09:50:13 ip-10-128-35-32 opensips: CRITICAL:core:yyerror: parse error in config file, line 16, column 13-14: failed to load module<br>
Sep  2 09:50:13 ip-10-128-35-32 opensips: ERROR:core:sr_load_module: could not open module &lt;auth.so&gt;: auth.so: cannot open shared object file: No such file or directory<br>
Sep  2 09:50:13 ip-10-128-35-32 opensips: CRITICAL:core:yyerror: parse error in config file, line 17, column 13-14: failed to load module<br>
Sep  2 09:50:13 ip-10-128-35-32 opensips: ERROR:core:sr_load_module: could not open module &lt;auth_db.so&gt;: auth_db.so: cannot open shared object file: No such file or directory<br>
Sep  2 09:50:13 ip-10-128-35-32 opensips: CRITICAL:core:yyerror: parse error in config file, line 18, column 13-14: failed to load module<br>
Sep  2 09:50:13 ip-10-128-35-32 opensips: ERROR:core:set_mod_param_regex: no module matching usrloc found#012|<br>
Sep  2 09:50:13 ip-10-128-35-32 opensips: CRITICAL:core:yyerror: parse error in config file, line 19, column 20-21: Can&#39;t set module parameter<br>
Sep  2 09:50:13 ip-10-128-35-32 opensips: CRITICAL:core:yyerror: parse error in config file, line 19, column 21-22: syntax error<br>
Sep  2 09:50:13 ip-10-128-35-32 opensips: CRITICAL:core:yyerror: parse error in config file, line 19, column 21-22:<br>
Sep  2 09:50:13 ip-10-128-35-32 opensips: ERROR:core:main: bad config file (6 errors)<br>
<br>
<br>
<br>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------<br>
<br>
[ec2-user@ip-10-128-35-32 opensips]$ cat opensips.cfg<br>
#<br>
# $Id: opensips.cfg 8758 2012-02-29 11:59:26Z vladut-paiu $<br>
#<br>
# OpenSIPS residential configuration script<br>
#     by OpenSIPS Solutions &lt;<a href="mailto:team@opensips-solutions.com">team@opensips-solutions.com</a>&gt;<br>
#<br>
# This script was generated via &quot;make menuconfig&quot;, from<br>
#   the &quot;Residential&quot; scenario.<br>
# You can enable / disable more features / functionalities by<br>
#   re-generating the scenario with different options.#<br>
#<br>
# Please refer to the Core CookBook at:<br>
#      <a href="http://www.opensips.org/Resources/DocsCookbooks" target="_blank">http://www.opensips.org/Resources/DocsCookbooks</a><br>
# for a explanation of possible statements, functions and parameters.<br>
#<br>
loadmodule &quot;db_mysql.so&quot;<br>
loadmodule &quot;auth.so&quot;<br>
loadmodule &quot;auth_db.so&quot;<br>
 modparam(&quot;usrloc&quot;, &quot;db_mode&quot;, 0); #THIS LINE MUST TO BE COMMENTED<br>
<br>
modparam(&quot;usrloc&quot;, &quot;db_mode&quot;, 2)<br>
modparam(&quot;usrloc&quot;, &quot;db_url&quot;, &quot;mysql://opensips:opensipsrw@localhost/opensips&quot;)<br>
<br>
    ----- auth_db params -----<br>
<br>
/* uncomment the following lines if you want to enable the DB based authentication */<br>
modparam(&quot;auth_db&quot;, &quot;calculate_ha1&quot;, yes)<br>
modparam(&quot;auth_db&quot;, &quot;password_column&quot;, &quot;password&quot;)<br>
modparam(&quot;auth_db&quot;, &quot;db_url&quot;, &quot;mysql://opensips:opensipsrw@localhost/opensips&quot;)<br>
####### Global Parameters #########<br>
<br>
debug=3<br>
log_stderror=no<br>
log_facility=LOG_LOCAL0<br>
<br>
fork=yes<br>
children=4<br>
<br>
/* uncomment the following lines to enable debugging */<br>
#debug=6<br>
#fork=no<br>
#log_stderror=yes<br>
<br>
/* uncomment the next line to enable the auto temporary blacklisting of<br>
   not available destinations (default disabled) */<br>
#disable_dns_blacklist=no<br>
<br>
/* uncomment the next line to enable IPv6 lookup after IPv4 dns<br>
   lookup failures (default disabled) */<br>
#dns_try_ipv6=yes<br>
<br>
/* comment the next line to enable the auto discovery of local aliases<br>
   based on revers DNS on IPs */<br>
auto_aliases=no<br>
<br>
<br>
listen=udp:<a href="http://127.0.0.1:5060" target="_blank">127.0.0.1:5060</a>   # CUSTOMIZE ME<br>
<br>
<br>
disable_tcp=yes<br>
<br>
disable_tls=yes<br>
<br>
<br>
####### Modules Section ########<br>
<br>
#set module path<br>
mpath=&quot;/usr/local/lib64/opensips/modules/&quot;<br>
<br>
#######sipmsgops_Module#############<br>
loadmodule &quot;sipmsgops&quot;<br>
<br>
<br>
#### SIGNALING module<br>
loadmodule &quot;signaling.so&quot;<br>
<br>
#### StateLess module<br>
loadmodule &quot;sl.so&quot;<br>
<br>
#### Transaction Module<br>
loadmodule &quot;tm.so&quot;<br>
modparam(&quot;tm&quot;, &quot;fr_timer&quot;, 5)<br>
modparam(&quot;tm&quot;, &quot;fr_inv_timer&quot;, 30)<br>
modparam(&quot;tm&quot;, &quot;restart_fr_on_each_reply&quot;, 0)<br>
modparam(&quot;tm&quot;, &quot;onreply_avp_mode&quot;, 1)<br>
<br>
#### Record Route Module<br>
loadmodule &quot;rr.so&quot;<br>
/* do not append from tag to the RR (no need for this script) */<br>
modparam(&quot;rr&quot;, &quot;append_fromtag&quot;, 0)<br>
<br>
#### MAX ForWarD module<br>
loadmodule &quot;maxfwd.so&quot;<br>
<br>
#### SIP MSG OPerationS module<br>
loadmodule &quot;sipmsgops.so&quot;<br>
<br>
#### FIFO Management Interface<br>
loadmodule &quot;mi_fifo.so&quot;<br>
modparam(&quot;mi_fifo&quot;, &quot;fifo_name&quot;, &quot;/tmp/opensips_fifo&quot;)<br>
<br>
<br>
#### URI module<br>
loadmodule &quot;uri.so&quot;<br>
modparam(&quot;uri&quot;, &quot;use_uri_table&quot;, 0)<br>
<br>
<br>
<br>
<br>
<br>
<br>
#### USeR LOCation module<br>
loadmodule &quot;usrloc.so&quot;<br>
modparam(&quot;usrloc&quot;, &quot;nat_bflag&quot;, 10)<br>
modparam(&quot;usrloc&quot;, &quot;db_mode&quot;,   0)<br>
<br>
#### REGISTRAR module<br>
loadmodule &quot;registrar.so&quot;<br>
modparam(&quot;registrar&quot;, &quot;tcp_persistent_flag&quot;, 7)<br>
<br>
/* uncomment the next line not to allow more than 10 contacts per AOR */<br>
#modparam(&quot;registrar&quot;, &quot;max_contacts&quot;, 10)<br>
<br>
#### ACCounting module<br>
loadmodule &quot;acc.so&quot;<br>
/* what special events should be accounted ? */<br>
modparam(&quot;acc&quot;, &quot;early_media&quot;, 0)<br>
modparam(&quot;acc&quot;, &quot;report_cancels&quot;, 0)<br>
/* by default we do not adjust the direct of the sequential requests.<br>
   if you enable this parameter, be sure the enable &quot;append_fromtag&quot;<br>
   in &quot;rr&quot; module */<br>
modparam(&quot;acc&quot;, &quot;detect_direction&quot;, 0)<br>
modparam(&quot;acc&quot;, &quot;failed_transaction_flag&quot;, 3)<br>
/* account triggers (flags) */<br>
modparam(&quot;acc&quot;, &quot;log_flag&quot;, 1)<br>
modparam(&quot;acc&quot;, &quot;log_missed_flag&quot;, 2)<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
####### Routing Logic ########<br>
<br>
# main request routing logic<br>
<br>
route{<br>
<br>
<br>
        if (!mf_process_maxfwd_header(&quot;10&quot;)) {<br>
                sl_send_reply(&quot;483&quot;,&quot;Too Many Hops&quot;);<br>
                exit;<br>
        }<br>
<br>
        if (has_totag()) {<br>
                # sequential request withing a dialog should<br>
                # take the path determined by record-routing<br>
                if (loose_route()) {<br>
<br>
                        if (is_method(&quot;BYE&quot;)) {<br>
                                setflag(1); # do accounting ...<br>
                                setflag(3); # ... even if the transaction fails<br>
                        } else if (is_method(&quot;INVITE&quot;)) {<br>
                                # even if in most of the cases is useless, do RR for<br>
                                # re-INVITEs alos, as some buggy clients do change route set<br>
                                # during the dialog.<br>
                                record_route();<br>
                        }<br>
<br>
<br>
<br>
                        # route it out to whatever destination was set by loose_route()<br>
                        # in $du (destination URI).<br>
                        route(1);<br>
                } else {<br>
<br>
                        if ( is_method(&quot;ACK&quot;) ) {<br>
                                if ( t_check_trans() ) {<br>
                                        # non loose-route, but stateful ACK; must be an ACK after<br>
                                        # a 487 or e.g. 404 from upstream server<br>
                                        t_relay();<br>
                                        exit;<br>
                                } else {<br>
                                        # ACK without matching transaction -&gt;<br>
                                        # ignore and discard<br>
                                        exit;<br>
                                }<br>
                        }<br>
                        sl_send_reply(&quot;404&quot;,&quot;Not here&quot;);<br>
                }<br>
                exit;<br>
        }<br>
<br>
        # CANCEL processing<br>
        if (is_method(&quot;CANCEL&quot;))<br>
        {<br>
                if (t_check_trans())<br>
                        t_relay();<br>
                exit;<br>
        }<br>
<br>
        t_check_trans();<br>
<br>
        if ( !(is_method(&quot;REGISTER&quot;)  ) ) {<br>
<br>
                if (from_uri==myself)<br>
<br>
                {<br>
<br>
                } else {<br>
                        # if caller is not local, then called number must be local<br>
<br>
                        if (!uri==myself) {<br>
                                send_reply(&quot;403&quot;,&quot;Rely forbidden&quot;);<br>
                                exit;<br>
                        }<br>
                }<br>
<br>
        }<br>
<br>
        # preloaded route checking<br>
        if (loose_route()) {<br>
                xlog(&quot;L_ERR&quot;,<br>
                &quot;Attempt to route with preloaded Route&#39;s [$fu/$tu/$ru/$ci]&quot;);<br>
                if (!is_method(&quot;ACK&quot;))<br>
                        sl_send_reply(&quot;403&quot;,&quot;Preload Route denied&quot;);<br>
                exit;<br>
        }<br>
<br>
        # record routing<br>
        if (!is_method(&quot;REGISTER|MESSAGE&quot;))<br>
                record_route();<br>
<br>
        # account only INVITEs<br>
        if (is_method(&quot;INVITE&quot;)) {<br>
<br>
                setflag(1); # do accounting<br>
        }<br>
<br>
<br>
        if (!uri==myself) {<br>
                append_hf(&quot;P-hint: outbound\r\n&quot;);<br>
<br>
                route(1);<br>
        }<br>
<br>
        # requests for my domain<br>
<br>
        if (is_method(&quot;PUBLISH|SUBSCRIBE&quot;))<br>
        {<br>
                sl_send_reply(&quot;503&quot;, &quot;Service Unavailable&quot;);<br>
                exit;<br>
        }<br>
<br>
        if (is_method(&quot;REGISTER&quot;))<br>
        {<br>
<br>
<br>
                if (   0 ) setflag(7);<br>
<br>
                if (!save(&quot;location&quot;))<br>
                        sl_reply_error();<br>
<br>
                exit;<br>
        }<br>
<br>
        if ($rU==NULL) {<br>
                # request with no Username in RURI<br>
                sl_send_reply(&quot;484&quot;,&quot;Address Incomplete&quot;);<br>
                exit;<br>
        }<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
        # do lookup with method filtering<br>
        if (!lookup(&quot;location&quot;,&quot;m&quot;)) {<br>
<br>
<br>
                t_newtran();<br>
                t_reply(&quot;404&quot;, &quot;Not Found&quot;);<br>
                exit;<br>
        }<br>
<br>
<br>
<br>
        # when routing via usrloc, log the missed calls also<br>
        setflag(2);<br>
        route(1);<br>
}<br>
<br>
<br>
route[1] {<br>
        # for INVITEs enable some additional helper routes<br>
        if (is_method(&quot;INVITE&quot;)) {<br>
<br>
<br>
<br>
                t_on_branch(&quot;2&quot;);<br>
                t_on_reply(&quot;2&quot;);<br>
                t_on_failure(&quot;1&quot;);<br>
        }<br>
<br>
<br>
<br>
        if (!t_relay()) {<br>
                send_reply(&quot;500&quot;,&quot;Internal Error&quot;);<br>
        };<br>
        exit;<br>
}<br>
<br>
<br>
<br>
<br>
branch_route[2] {<br>
        xlog(&quot;new branch at $ru\n&quot;);<br>
}<br>
<br>
<br>
onreply_route[2] {<br>
<br>
        xlog(&quot;incoming reply\n&quot;);<br>
}<br>
<br>
<br>
failure_route[1] {<br>
        if (t_was_cancelled()) {<br>
                exit;<br>
        }<br>
<br>
        # uncomment the following lines if you want to block client<br>
        # redirect based on 3xx replies.<br>
        ##if (t_check_status(&quot;3[0-9][0-9]&quot;)) {<br>
        ##t_reply(&quot;404&quot;,&quot;Not found&quot;);<br>
        ##      exit;<br>
        ##}<br>
<br>
<br>
}<br>
<br>
<br>
<br>
[ec2-user@ip-10-128-35-32 opensips]$<br>
<br>
<br>
Regards<br>
<br>
Shimon Mishal<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
************************************************************************************<br>
This footnote confirms that this email message has been scanned by<br>
PineApp Mail-SeCure for the presence of malicious code, vandals &amp; computer viruses.<br>
************************************************************************************<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>