<br>Hello,<br><br>I am using OpenSIPS presence server. Server starts well and handle subscriptions and notifications but after some time its give following errors. Can some one helps in solving this ..<br><br>Sep 26 17:06:04 [13800] INFO:presence:send_notify_request: NOTIFY sip:alice@open-ims.test via sip:mt@scscf.open-ims.test:6060;lr on behalf of sip:bob@open-ims.test for event presence<br>
Sep 26 17:07:04 [13803] ERROR:presence:get_stored_info: record not found in hash_table<br>Sep 26 17:07:04 [13803] ERROR:presence:handle_subscribe: getting stored info<br>Sep 26 17:07:04 [13803] ERROR:presence:get_stored_info: record not found in hash_table<br>
Sep 26 17:07:04 [13803] ERROR:presence:handle_subscribe: getting stored info<br>Sep 26 17:08:32 [13808] INFO:presence:send_notify_request: NOTIFY sip:bob@open-ims.test via sip:mt@scscf.open-ims.test:6060;lr on behalf of sip:alice@open-ims.test for event presence<br>
<br>OPENSIPS cfg<br>------------------------<br><br>#<br># $Id: opensips.cfg 5503 2009-03-22 16:22:32Z bogdan_iancu $<br>#<br># OpenSIPS basic configuration script<br># by Anca Vamanu <<a href="mailto:anca@voice-system.ro">anca@voice-system.ro</a>><br>
#<br># Please refer to the Core CookBook at:<br># <a href="http://www.opensips.org/index.php?n=Resources.DocsCookbooks">http://www.opensips.org/index.php?n=Resources.DocsCookbooks</a><br># for a explanation of possible statements, functions and parameters.<br>
#<br><br><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 disable TCP (default on) */<br>#disable_tcp=yes<br><br>/* uncomment the next line to enable the auto temporary blacklisting of<br> not available destinations (default disabled) */<br>
#opensipsdbctl create<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>/* uncomment the next line to disable the auto discovery of local aliases<br>
based on revers DNS on IPs (default on) */<br>#auto_aliases=no<br><br>/* uncomment the following lines to enable TLS support (default off) */<br>#disable_tls = no<br>#listen = tls:your_IP:5061<br>#tls_verify_server = 1<br>
#tls_verify_client = 1<br>#tls_require_client_certificate = 0<br>#tls_method = TLSv1<br>#tls_certificate = "/usr/local/etc/opensips/tls/user/user-cert.pem"<br>#tls_private_key = "/usr/local/etc/opensips/tls/user/user-privkey.pem"<br>
#tls_ca_list = "/usr/local/etc/opensips/tls/user/user-calist.pem"<br><br><br>port=5065<br><br>/* uncomment and configure the following line if you want opensips to<br> bind on a specific interface/port/proto (default bind on all available) */<br>
listen=udp:<a href="http://127.0.0.1:5065">127.0.0.1:5065</a><br><br><br>####### Modules Section ########<br><br>#set module pathopensipsdbctl create<br>mpath="/usr/local/lib/opensips/modules/"<br><br>/* uncomment next line for MySQL DB support */<br>
loadmodule "db_mysql.so"<br>loadmodule "signaling.so"<br>loadmodule "sl.so"<br>loadmodule "tm.so"<br>loadmodule "rr.so"<br>loadmodule "maxfwd.so"<br>loadmodule "usrloc.so"<br>
loadmodule "registrar.so"<br>loadmodule "textops.so"<br>loadmodule "mi_fifo.so"<br>loadmodule "uri_db.so"<br>loadmodule "uri.so"<br>loadmodule "xlog.so"<br>loadmodule "acc.so"<br>
/* uncomment next lines for MySQL based authentication support<br> NOTE: a DB (like db_mysql) module must be also loaded */<br>loadmodule "auth.so"<br>loadmodule "auth_db.so"<br>/* uncomment next line for aliases support<br>
NOTE: a DB (like db_mysql) module must be also loaded */<br>#loadmodule "alias_db.so"opensipsdbctl create<br>/* uncomment next line for multi-domain support<br> NOTE: a DB (like db_mysql) module must be also loaded<br>
NOTE: be sure and enable multi-domain support in all used modules<br> (see "multi-module params" section ) */<br>#loadmodule "domain.so"<br>/* uncomment the next two lines for presence server support<br>
NOTE: a DB (like db_mysql) module must be also loaded */<br>loadmodule "presence.so"<br>loadmodule "presence_xml.so"<br>loadmodule "presence_mwi.so"<br>loadmodule "pua.so"<br><br>
<br># ----------------- setting module-specific parameters ---------------<br><br><br># ----- mi_fifo params -----<br>modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")<br><br><br># ----- rr params -----<br>
# add value to ;lr param to cope with most of the UAs<br>modparam("rr", "enable_full_lr", 1)<br># do not append from tag to the RR (no need for this script)<br>modparam("rr", "append_fromtag", 0)<br>
<br><br># ----- registrar params -----<br>modparam("registrar", "method_filtering", 1)<br>/* uncomment the next line to disable parallel forking via location */<br># modparam("registrar", "append_branches", 0)<br>
/* uncomment the next line not to allow more than 10 contacts per AOR */<br>#modparam("registrar", "max_contacts", 10)<br><br><br># ----- usrloc params -----<br>#modparam("usrloc", "db_mode", 0)<br>
/* uncomment the following lines if you want to enable DB persistency<br> for location entries */<br>modparam("usrloc", "db_mode", 2)<br>modparam("usrloc", "db_url",<br> "mysql://opensips:opensipsrw@localhost/opensips")<br>
<br><br># ----- uri_db params -----<br>/* by default we disable the DB support in the module as we do not need it<br> in this configuration */<br>#modparam("uri_db", "use_uri_table", 0)<br>#modparam("uri_db", "db_url", "")<br>
<br><br># ----- acc params -----<br>/* what sepcial events should be accounted ? */<br>modparam("acc", "early_media", 1)<br>modparam("acc", "report_ack", 1)<br>modparam("acc", "report_cancels", 1)<br>
/* by default ww do not adjust the direct of the sequential requests.<br> if you enable this parameter, be sure the enable "append_fromtag"<br> in "rr" module */<br>modparam("acc", "detect_direction", 0)<br>
/* account triggers (flags) */<br>modparam("acc", "failed_transaction_flag", 3)<br>modparam("acc", "log_flag", 1)<br>modparam("acc", "log_missed_flag", 2)<br>/* uncomment the following lines to enable DB accounting also */<br>
modparam("acc", "db_flag", 1)<br>modparam("acc", "db_missed_flag", 2)<br><br><br># ----- auth_db params -----<br>/* uncomment the following lines if you want to enable the DB based<br>
authentication */<br>modparam("auth_db", "calculate_ha1", yes)<br>modparam("auth_db", "password_column", "password")<br>modparam("auth_db", "db_url",<br>
"mysql://opensips:opensipsrw@localhost/opensips")<br>modparam("auth_db", "load_credentials", "")<br><br><br># ----- alias_db params -----<br>/* uncomment the following lines if you want to enable the DB based<br>
aliases */<br>#modparam("alias_db", "db_url",<br># "mysql://opensips:opensipsrw@localhost/opensips")<br><br><br># ----- domain params -----<br>/* uncomment the following lines to enable multi-domain detection<br>
support */<br>#modparam("domain", "db_url",<br># "mysql://opensips:opensipsrw@localhost/opensips")<br>#modparam("domain", "db_mode", 1) # Use caching<br><br>modparam("presence", "presentity_table", "presentity")<br>
modparam("presence", "active_watchers_table", "active_watchers")<br>modparam("presence", "watchers_table", "watchers")<br><br>modparam("presence_xml", "force_active", 1)<br>
modparam("presence", "server_address", "sip:<a href="http://127.0.0.1:5065">127.0.0.1:5065</a>")<br><br><br>####### Routing Logic ########<br><br><br># main request 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("10")) {<br> sl_send_reply("483","Too Many Hops");<br>
exit;<br> };<br> <br> if (msg:len >= 2048 ) {<br> sl_send_reply("513", "Message too big");<br> exit;<br> };<br> <br> if (!is_method("SUBSCRIBE|PUBLISH")) {<br>
sl_send_reply("488", "Not Acceptable Here");<br> exit;<br> }<br> <br> <br> # presence handling<br> if (! t_newtran())<br> {<br> sl_reply_error();<br> exit;<br> };<br>
<br> if(is_method("PUBLISH"))<br> {<br> handle_publish();<br> #t_release();<br> }<br> else<br> if( is_method("SUBSCRIBE"))<br> {<br> handle_subscribe();<br> #t_release();<br>
};<br> <br> exit;<br>}<br><br><br clear="all"><br>-- <br>Regards<br>Jawad Hussain<br><br>