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.
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. Thank you. On Thu, Feb 14, 2013 at 12:25 PM, garima sharma <[email protected]>wrote: > Hi > > 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. > > The changes in PUBLISH messages seen in ngrep is not changed. kindly help > > # > # $Id$ > # > # simple quick-start config script - Stand-alone presence server > # > > # ----------- global configuration parameters ------------------------ > > debug=3 # debug level (cmd line: -dddddddddd) > fork=yes > log_stderror=no # (cmd line: -E) > children=4 > > listen=udp:192.168.1.100:5065 > port=5065 > > #dns=no > #rev_dns=no > > # ------------------ module loading ---------------------------------- > > #set module path > mpath="/usr/lib/opensips/modules/" > > loadmodule "db_mysql.so" > loadmodule "sl.so" > loadmodule "signaling.so" > loadmodule "maxfwd.so" > loadmodule "textops.so" > loadmodule "tm.so" > loadmodule "rr.so" > loadmodule "exec.so" > loadmodule "presence.so" > loadmodule "presence_xml.so" > loadmodule "avpops.so" > loadmodule "mi_fifo.so" > loadmodule "usrloc.so" > loadmodule "pua.so" > loadmodule "pua_usrloc.so" > loadmodule "registrar.so" > > > > # ----------------- setting module-specific parameters --------------- > modparam("usrloc", "db_mode", 2) > modparam("usrloc", "db_url", "mysql://opensips:opensipsrw@localhost > /opensips") > > # -- presence params -- > modparam("presence|presence_xml", "db_url", > "mysql://opensips:opensipsrw@localhost/opensips") > > modparam("presence_xml", "force_active", 1) > > modparam("presence", "server_address", "sip:192.168.1.100:5065") > > modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo") > > > modparam("pua", "db_url", "mysql://opensips:opensipsrw@localhost > /opensips") > modparam("pua_usrloc", "default_domain", "192.168.1.100") > modparam("pua_usrloc", "presence_server", "sip:192.168.1.100:5065") > > # ------------------------- request routing logic ------------------- > > # main routing logic > > route{ > # initial sanity checks -- messages with > # max_forwards==0, or excessively long requests > if (!mf_process_maxfwd_header("10")) { > sl_send_reply("483","Too Many Hops"); > exit; > }; > > > if (!is_method("SUBSCRIBE|PUBLISH")) { > sl_send_reply("488", "Not Acceptable Here"); > exit; > } > > > > * if ((is_method("PUBLISH")) && ($fU=="bob")) { > > replace_body_all("closed", "open"); > }* > > > > # presence handling > if (! t_newtran()) > { > sl_reply_error(); > exit; > }; > > if(is_method("PUBLISH")) > { > > handle_publish(); > > } > > else > if( is_method("SUBSCRIBE")) > { > > handle_subscribe(); > > }; > > exit; > } > > > -- > Thanks and Regards > Garima Sharma > _______________________________________________ > Users mailing list > [email protected] > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > > -- Muhammad Shahzad ----------------------------------- CISCO Rich Media Communication Specialist (CRMCS) CISCO Certified Network Associate (CCNA) Cell: +49 176 99 83 10 85 MSN: [email protected] Email: [email protected]
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
