First your opensips configuration indicates you are using a very old version of opensips (1.6.x perhaps). There are many major changes in textops modules in newer version which fix tons of problems.<br><div><br></div><div>

Secondly i doubt if you will be able to see changes through ngrep. This tool will show you the original message received on ethernet interface, before it is handed over to opensips for processing. And since your opensips is the end-point from where the message is not routed any further (to another server), so changes you do will be invisible to ngrep.</div>

<div><br></div><div>Thank you.</div><div><br><br><div class="gmail_quote">On Thu, Feb 14, 2013 at 12:25 PM, garima sharma <span dir="ltr">&lt;<a href="mailto:garima.sharma16@gmail.com" target="_blank">garima.sharma16@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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" target="_blank">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" target="_blank">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" target="_blank">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>}<span class="HOEnZb"><font color="#888888"><br>

<br clear="all"><br>-- <br>Thanks and Regards<br>
Garima Sharma
</font></span><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>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Muhammad Shahzad</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">------------------------------</span><span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">-----</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">CISCO Rich Media Communication Specialist (CRMCS)</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">CISCO Certified Network Associate (CCNA)</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Cell: +49 176 99 83 10 85</span><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">MSN: </span><a href="mailto:shari_786pk@hotmail.com" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank">shari_786pk@hotmail.com</a><br style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<span style="color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Email: </span><a href="mailto:shaheryarkh@googlemail.com" style="color:rgb(17,85,204);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)" target="_blank">shaheryarkh@googlemail.com</a>
</div>