Hi<br><br>I am trying to use textops modules with standalone presence server. The opensips server starts without error but the replace_body change done in is_method(PUBLISH) is not reflected during testing.<br><br>The changes in PUBLISH messages seen in ngrep is not changed. kindly help<br>
<br>#<br># $Id$<br>#<br># simple quick-start config script - Stand-alone presence server<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>children=4<br><br>listen=udp:<a href="http://192.168.1.100:5065">192.168.1.100:5065</a><br>port=5065<br><br>#dns=no<br>#rev_dns=no<br><br># ------------------ module loading ----------------------------------<br>
<br>#set module path<br>mpath=&quot;/usr/lib/opensips/modules/&quot;<br><br>loadmodule &quot;db_mysql.so&quot;<br>loadmodule &quot;sl.so&quot;<br>loadmodule &quot;signaling.so&quot;<br>loadmodule &quot;maxfwd.so&quot;<br>
loadmodule &quot;textops.so&quot;<br>loadmodule &quot;tm.so&quot;<br>loadmodule &quot;rr.so&quot;<br>loadmodule &quot;exec.so&quot;<br>loadmodule &quot;presence.so&quot;<br>loadmodule &quot;presence_xml.so&quot;<br>loadmodule &quot;avpops.so&quot;<br>
loadmodule &quot;mi_fifo.so&quot;<br>loadmodule &quot;usrloc.so&quot;<br>loadmodule &quot;pua.so&quot;<br>loadmodule &quot;pua_usrloc.so&quot;<br>loadmodule &quot;registrar.so&quot;<br><br><br> <br># ----------------- setting module-specific parameters ---------------<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># -- presence params --<br>modparam(&quot;presence|presence_xml&quot;, &quot;db_url&quot;, &quot;mysql://opensips:opensipsrw@localhost/opensips&quot;)<br>
 <br>modparam(&quot;presence_xml&quot;, &quot;force_active&quot;, 1)<br> <br>modparam(&quot;presence&quot;, &quot;server_address&quot;, &quot;sip:<a href="http://192.168.1.100:5065">192.168.1.100:5065</a>&quot;)<br><br>modparam(&quot;mi_fifo&quot;, &quot;fifo_name&quot;, &quot;/tmp/opensips_fifo&quot;)<br>
<br><br>modparam(&quot;pua&quot;, &quot;db_url&quot;, &quot;mysql://opensips:opensipsrw@localhost/opensips&quot;)<br>modparam(&quot;pua_usrloc&quot;, &quot;default_domain&quot;, &quot;192.168.1.100&quot;)<br>modparam(&quot;pua_usrloc&quot;, &quot;presence_server&quot;, &quot;sip:<a href="http://192.168.1.100:5065">192.168.1.100:5065</a>&quot;)<br>
 <br># ------------------------- request routing logic -------------------<br> <br># main routing logic<br> <br>route{<br>    # initial sanity checks -- messages with<br>    # max_forwards==0, or excessively long requests<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>    <br>     if (!is_method(&quot;SUBSCRIBE|PUBLISH&quot;)) {<br>
        sl_send_reply(&quot;488&quot;, &quot;Not Acceptable Here&quot;);<br>        exit;<br>    }<br> <br><br>   <br>   <b> if ((is_method(&quot;PUBLISH&quot;)) &amp;&amp; ($fU==&quot;bob&quot;)) {<br><br>    replace_body_all(&quot;closed&quot;, &quot;open&quot;);<br>
    }</b><br> <br><br><br>    # presence handling<br>    if (! t_newtran())<br>    {<br>        sl_reply_error();<br>        exit;<br>     };<br> <br>    if(is_method(&quot;PUBLISH&quot;))<br>    {<br><br>        handle_publish();<br>
        <br>    }<br><br>    else<br>    if( is_method(&quot;SUBSCRIBE&quot;))<br>    {<br>        <br>        handle_subscribe();<br>       <br>    };<br> <br>    exit;<br>}<br><br clear="all"><br>-- <br>Thanks and Regards<br>
Garima Sharma