<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi Anca,<br><br>Thanks for your reply.<br>I found the mistake - I didn't set presence mode to Presence Agent in my xlite.<br><br>Thanks<br><br><br>Regards,<br>JR<br><br><br><br>&gt; Date: Wed, 14 Oct 2009 14:51:57 -0700<br>&gt; From: anca@opensips.org<br>&gt; To: users@lists.opensips.org<br>&gt; Subject: Re: [OpenSIPS-Users] Presence: no record in Presentity table<br>&gt; <br>&gt; Hi,<br>&gt; <br>&gt; Are you sure the server is receiving any PUBLISH messages? What clients <br>&gt; do you use? Do they support presence with a central agent?<br>&gt; <br>&gt; Regards,<br>&gt; Anca<br>&gt; <br>&gt; JR RND wrote:<br>&gt; &gt; Hi,<br>&gt; &gt;<br>&gt; &gt; I have installed opensips-1.5.3-tls with db_mysql, presence, <br>&gt; &gt; presence_xml and presence_mwi modules.<br>&gt; &gt;<br>&gt; &gt; I tried to test presence with xlite and I can see that there are <br>&gt; &gt; records found in watchers and active_watchers table but not presentity <br>&gt; &gt; table.<br>&gt; &gt;<br>&gt; &gt; I think there should be something inserted into presentity table. <br>&gt; &gt; Isn't it?<br>&gt; &gt;<br>&gt; &gt; Any hint or help is appreciated. Thanks<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Here is my opensips.cfg<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; #<br>&gt; &gt; # $Id: opensips.cfg 5503 2009-03-22 16:22:32Z bogdan_iancu $<br>&gt; &gt; #<br>&gt; &gt; # OpenSIPS basic configuration script<br>&gt; &gt; #     by Anca Vamanu &lt;anca@voice-system.ro&gt;<br>&gt; &gt; #<br>&gt; &gt; # Please refer to the Core CookBook at:<br>&gt; &gt; #      http://www.opensips.org/index.php?n=Resources.DocsCookbooks<br>&gt; &gt; # for a explanation of possible statements, functions and parameters.<br>&gt; &gt; #<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ####### Global Parameters #########<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; log_facility=LOG_LOCAL0<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; /* uncomment the following lines to enable debugging */<br>&gt; &gt; debug=3<br>&gt; &gt; fork=yes<br>&gt; &gt; log_stderror=yes<br>&gt; &gt;<br>&gt; &gt; /* uncomment the next line to disable TCP (default on) */<br>&gt; &gt; #disable_tcp=yes<br>&gt; &gt;<br>&gt; &gt; /* uncomment the next line to enable the auto temporary blacklisting of<br>&gt; &gt;    not available destinations (default disabled) */<br>&gt; &gt; #disable_dns_blacklist=no<br>&gt; &gt;<br>&gt; &gt; /* uncomment the next line to enable IPv6 lookup after IPv4 dns<br>&gt; &gt;    lookup failures (default disabled) */<br>&gt; &gt; #dns_try_ipv6=yes<br>&gt; &gt;<br>&gt; &gt; /* uncomment the next line to disable the auto discovery of local aliases<br>&gt; &gt;    based on revers DNS on IPs (default on) */<br>&gt; &gt; #auto_aliases=no<br>&gt; &gt;<br>&gt; &gt; /* uncomment the following lines to enable TLS support  (default off) */<br>&gt; &gt; #disable_tls = no<br>&gt; &gt; #listen = tls:your_IP:5061<br>&gt; &gt; #tls_verify_server = 1<br>&gt; &gt; #tls_verify_client = 1<br>&gt; &gt; #tls_require_client_certificate = 0<br>&gt; &gt; #tls_method = TLSv1<br>&gt; &gt; #tls_certificate = "/usr/local/etc/opensips/tls/user/user-cert.pem"<br>&gt; &gt; #tls_private_key = "/usr/local/etc/opensips/tls/user/user-privkey.pem"<br>&gt; &gt; #tls_ca_list = "/usr/local/etc/opensips/tls/user/user-calist.pem"<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; port=5060<br>&gt; &gt;<br>&gt; &gt; /* uncomment and configure the following line if you want opensips to<br>&gt; &gt;    bind on a specific interface/port/proto (default bind on all <br>&gt; &gt; available) */<br>&gt; &gt; #listen=udp:192.168.1.2:5060<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ####### Modules Section ########<br>&gt; &gt;<br>&gt; &gt; #set module path<br>&gt; &gt; mpath="/usr/local/lib/opensips/modules/"<br>&gt; &gt;<br>&gt; &gt; /* uncomment next line for MySQL DB support */<br>&gt; &gt; loadmodule "db_mysql.so"<br>&gt; &gt; loadmodule "signaling.so"<br>&gt; &gt; loadmodule "sl.so"<br>&gt; &gt; loadmodule "tm.so"<br>&gt; &gt; loadmodule "rr.so"<br>&gt; &gt; loadmodule "maxfwd.so"<br>&gt; &gt; loadmodule "usrloc.so"<br>&gt; &gt; loadmodule "registrar.so"<br>&gt; &gt; loadmodule "textops.so"<br>&gt; &gt; loadmodule "mi_fifo.so"<br>&gt; &gt; loadmodule "uri_db.so"<br>&gt; &gt; loadmodule "uri.so"<br>&gt; &gt; loadmodule "xlog.so"<br>&gt; &gt; loadmodule "acc.so"<br>&gt; &gt; /* uncomment next lines for MySQL based authentication support<br>&gt; &gt;    NOTE: a DB (like db_mysql) module must be also loaded */<br>&gt; &gt; loadmodule "auth.so"<br>&gt; &gt; loadmodule "auth_db.so"<br>&gt; &gt; /* uncomment next line for aliases support<br>&gt; &gt;    NOTE: a DB (like db_mysql) module must be also loaded */<br>&gt; &gt; loadmodule "alias_db.so"<br>&gt; &gt; /* uncomment next line for multi-domain support<br>&gt; &gt;    NOTE: a DB (like db_mysql) module must be also loaded<br>&gt; &gt;    NOTE: be sure and enable multi-domain support in all used modules<br>&gt; &gt;          (see "multi-module params" section ) */<br>&gt; &gt; loadmodule "domain.so"<br>&gt; &gt; /* uncomment the next two lines for presence server support<br>&gt; &gt;    NOTE: a DB (like db_mysql) module must be also loaded */<br>&gt; &gt; loadmodule "presence.so"<br>&gt; &gt; loadmodule "presence_xml.so"<br>&gt; &gt; loadmodule "presence_mwi.so"<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; # ----------------- setting module-specific parameters ---------------<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; # ----- mi_fifo params -----<br>&gt; &gt; modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; # ----- rr params -----<br>&gt; &gt; # add value to ;lr param to cope with most of the UAs<br>&gt; &gt; modparam("rr", "enable_full_lr", 1)<br>&gt; &gt; # do not append from tag to the RR (no need for this script)<br>&gt; &gt; modparam("rr", "append_fromtag", 0)<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; # ----- registrar params -----<br>&gt; &gt; modparam("registrar", "method_filtering", 1)<br>&gt; &gt; /* uncomment the next line to disable parallel forking via location */<br>&gt; &gt; modparam("registrar", "append_branches", 0)<br>&gt; &gt; /* uncomment the next line not to allow more than 10 contacts per AOR */<br>&gt; &gt; #modparam("registrar", "max_contacts", 10)<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; # ----- usrloc params -----<br>&gt; &gt; #modparam("usrloc", "db_mode",   0)<br>&gt; &gt; /* uncomment the following lines if you want to enable DB persistency<br>&gt; &gt;    for location entries */<br>&gt; &gt; modparam("usrloc", "db_mode",   2)<br>&gt; &gt; modparam("usrloc", <br>&gt; &gt; "db_url","mysql://opensips:opensipsrw@localhost/opensips")<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; # ----- uri_db params -----<br>&gt; &gt; /* by default we disable the DB support in the module as we do not need it<br>&gt; &gt;    in this configuration */<br>&gt; &gt; modparam("uri_db", "use_uri_table", 0)<br>&gt; &gt; modparam("uri_db", "db_url", "")<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; # ----- acc params -----<br>&gt; &gt; /* what sepcial events should be accounted ? */<br>&gt; &gt; modparam("acc", "early_media", 1)<br>&gt; &gt; modparam("acc", "report_ack", 1)<br>&gt; &gt; modparam("acc", "report_cancels", 1)<br>&gt; &gt; /* by default ww do not adjust the direct of the sequential requests.<br>&gt; &gt;    if you enable this parameter, be sure the enable "append_fromtag"<br>&gt; &gt;    in "rr" module */<br>&gt; &gt; modparam("acc", "detect_direction", 0)<br>&gt; &gt; /* account triggers (flags) */<br>&gt; &gt; modparam("acc", "failed_transaction_flag", 3)<br>&gt; &gt; modparam("acc", "log_flag", 1)<br>&gt; &gt; modparam("acc", "log_missed_flag", 2)<br>&gt; &gt; /* uncomment the following lines to enable DB accounting also */<br>&gt; &gt; modparam("acc", "db_flag", 1)<br>&gt; &gt; modparam("acc", "db_missed_flag", 2)<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; # ----- auth_db params -----<br>&gt; &gt; /* uncomment the following lines if you want to enable the DB based<br>&gt; &gt;    authentication */<br>&gt; &gt; modparam("auth_db", "calculate_ha1", yes)<br>&gt; &gt; modparam("auth_db", "password_column", "password")<br>&gt; &gt; modparam("auth_db", <br>&gt; &gt; "db_url","mysql://opensips:opensipsrw@localhost/opensips")<br>&gt; &gt; #modparam("auth_db", "load_credentials", "")<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; # ----- alias_db params -----<br>&gt; &gt; /* uncomment the following lines if you want to enable the DB based<br>&gt; &gt;    aliases */<br>&gt; &gt; #modparam("alias_db", "db_url",<br>&gt; &gt; #    "mysql://opensips:opensipsrw@localhost/opensips")<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; # ----- domain params -----<br>&gt; &gt; /* uncomment the following lines to enable multi-domain detection<br>&gt; &gt;    support */<br>&gt; &gt; #modparam("domain", "db_url",<br>&gt; &gt; #    "mysql://opensips:opensipsrw@localhost/opensips")<br>&gt; &gt; #modparam("domain", "db_mode", 1)   # Use caching<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; # ----- multi-module params -----<br>&gt; &gt; /* uncomment the following line if you want to enable multi-domain support<br>&gt; &gt;    in the modules (dafault off) */<br>&gt; &gt; #modparam("alias_db|auth_db|usrloc|uri_db", "use_domain", 1)<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; # ----- presence params -----<br>&gt; &gt; /* uncomment the following lines if you want to enable presence */<br>&gt; &gt; modparam("presence|presence_xml", <br>&gt; &gt; "db_url","mysql://opensips:opensipsrw@localhost/opensips")<br>&gt; &gt; modparam("presence_xml", "force_active", 1)<br>&gt; &gt; modparam("presence", "server_address", "sip:localhost:5060")<br>&gt; &gt; modparam("presence", "max_expires", 60)<br>&gt; &gt; modparam("presence", "subs_htable_size", 11)<br>&gt; &gt; modparam("presence", "pres_htable_size", 11)<br>&gt; &gt; modparam("presence", "presentity_table", "presentity")<br>&gt; &gt; #modparam("presence", "fallback2db", 1)<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; ####### Routing Logic ########<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; # main request routing logic<br>&gt; &gt;<br>&gt; &gt; route{<br>&gt; &gt;     log(1,"--------Start-----------\n");<br>&gt; &gt;    <br>&gt; &gt;     if (!mf_process_maxfwd_header("10")) {<br>&gt; &gt;         sl_send_reply("483","Too Many Hops");<br>&gt; &gt;         exit;<br>&gt; &gt;     }<br>&gt; &gt;<br>&gt; &gt;     if (has_totag()) {<br>&gt; &gt;         # sequential request withing a dialog should<br>&gt; &gt;         # take the path determined by record-routing<br>&gt; &gt;         if (loose_route()) {<br>&gt; &gt;             if (is_method("BYE")) {<br>&gt; &gt;                 setflag(1); # do accounting ...<br>&gt; &gt;                 setflag(3); # ... even if the transaction fails<br>&gt; &gt;             } else if (is_method("INVITE")) {<br>&gt; &gt;                 # even if in most of the cases is useless, do RR for<br>&gt; &gt;                 # re-INVITEs alos, as some buggy clients do change <br>&gt; &gt; route set<br>&gt; &gt;                 # during the dialog.<br>&gt; &gt;                 record_route();<br>&gt; &gt;             }<br>&gt; &gt;             # route it out to whatever destination was set by <br>&gt; &gt; loose_route()<br>&gt; &gt;             # in $du (destination URI).<br>&gt; &gt;             route(1);<br>&gt; &gt;         } else {<br>&gt; &gt;             /* uncomment the following lines if you want to enable <br>&gt; &gt; presence */<br>&gt; &gt;             if (is_method("SUBSCRIBE") &amp;&amp; $rd == "192.168.1.241") {<br>&gt; &gt;                 # in-dialog subscribe requests<br>&gt; &gt;                 log(1,"SUBSCRIBE\n");<br>&gt; &gt;                 route(2);<br>&gt; &gt;                 exit;<br>&gt; &gt;             }<br>&gt; &gt;             if ( is_method("ACK") ) {<br>&gt; &gt;                 if ( t_check_trans() ) {<br>&gt; &gt;                     # non loose-route, but stateful ACK; must be an <br>&gt; &gt; ACK after<br>&gt; &gt;                     # a 487 or e.g. 404 from upstream server<br>&gt; &gt;                     t_relay();<br>&gt; &gt;                     exit;<br>&gt; &gt;                 } else {<br>&gt; &gt;                     # ACK without matching transaction -&gt;<br>&gt; &gt;                     # ignore and discard<br>&gt; &gt;                     exit;<br>&gt; &gt;                 }<br>&gt; &gt;             }<br>&gt; &gt;             sl_send_reply("404","Not here");<br>&gt; &gt;         }<br>&gt; &gt;         exit;<br>&gt; &gt;     }<br>&gt; &gt;<br>&gt; &gt;     #initial requests<br>&gt; &gt;<br>&gt; &gt;     # CANCEL processing<br>&gt; &gt;     if (is_method("CANCEL"))<br>&gt; &gt;     {<br>&gt; &gt;         if (t_check_trans())<br>&gt; &gt;             t_relay();<br>&gt; &gt;         exit;<br>&gt; &gt;     }<br>&gt; &gt;<br>&gt; &gt;     t_check_trans();<br>&gt; &gt;<br>&gt; &gt;     # authenticate if from local subscriber (uncomment to enable auth)<br>&gt; &gt;     # authenticate all initial non-REGISTER request that pretend to be<br>&gt; &gt;     # generated by local subscriber (domain from FROM URI is local)<br>&gt; &gt;     ##if (!(method=="REGISTER") &amp;&amp; from_uri==myself) /*no multidomain <br>&gt; &gt; version*/<br>&gt; &gt;     if (!(method=="REGISTER") &amp;&amp; is_from_local())  /*multidomain version*/<br>&gt; &gt;     {<br>&gt; &gt;         #xlog("from_uri");<br>&gt; &gt;         if (!proxy_authorize("", "subscriber")) {<br>&gt; &gt;             proxy_challenge("", "0");<br>&gt; &gt;             exit;<br>&gt; &gt;         }<br>&gt; &gt;         if (!check_from()) {<br>&gt; &gt;             sl_send_reply("403","Forbidden auth ID");<br>&gt; &gt;             exit;<br>&gt; &gt;         }<br>&gt; &gt;    <br>&gt; &gt;         consume_credentials();<br>&gt; &gt;         # caller authenticated<br>&gt; &gt;     }<br>&gt; &gt;<br>&gt; &gt;     # preloaded route checking<br>&gt; &gt;     if (loose_route()) {<br>&gt; &gt;         xlog("L_ERR","Attempt to route with preloaded Route's <br>&gt; &gt; [$fu/$tu/$ru/$ci]");<br>&gt; &gt;         if (!is_method("ACK"))<br>&gt; &gt;             sl_send_reply("403","Preload Route denied");<br>&gt; &gt;         exit;<br>&gt; &gt;     }<br>&gt; &gt;<br>&gt; &gt;     # record routing<br>&gt; &gt;     if (!is_method("REGISTER|MESSAGE"))<br>&gt; &gt;         record_route();<br>&gt; &gt;<br>&gt; &gt;     # account only INVITEs<br>&gt; &gt;     if (is_method("INVITE")) {<br>&gt; &gt;         setflag(1); # do accounting<br>&gt; &gt;     }<br>&gt; &gt;     if (!uri==myself)<br>&gt; &gt;     ## replace with following line if multi-domain support is used<br>&gt; &gt;     ##if (!is_uri_host_local())<br>&gt; &gt;     {<br>&gt; &gt;         append_hf("P-hint: outbound\r\n");<br>&gt; &gt;         # if you have some interdomain connections via TLS<br>&gt; &gt;         ##if($rd=="tls_domain1.net") {<br>&gt; &gt;         ##    t_relay("tls:domain1.net");<br>&gt; &gt;         ##    exit;<br>&gt; &gt;         ##} else if($rd=="tls_domain2.net") {<br>&gt; &gt;         ##    t_relay("tls:domain2.net");<br>&gt; &gt;         ##    exit;<br>&gt; &gt;         ##}<br>&gt; &gt;         route(1);<br>&gt; &gt;     }<br>&gt; &gt;<br>&gt; &gt;     # requests for my domain<br>&gt; &gt;<br>&gt; &gt;     ## uncomment this if you want to enable presence server<br>&gt; &gt;     ##   and comment the next 'if' block<br>&gt; &gt;     ##   NOTE: uncomment also the definition of route[2] from  below<br>&gt; &gt;     if( is_method("PUBLISH|SUBSCRIBE")){<br>&gt; &gt;             log(1,"\nPUBLISH|SUBSCRIBE\n");<br>&gt; &gt;             route(2);<br>&gt; &gt;     }<br>&gt; &gt;<br>&gt; &gt;     #if (is_method("PUBLISH"))<br>&gt; &gt;     #{<br>&gt; &gt;     #    sl_send_reply("503", "Service Unavailable");<br>&gt; &gt;     #    exit;<br>&gt; &gt;     #}<br>&gt; &gt;    <br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;     if (is_method("REGISTER"))<br>&gt; &gt;     {<br>&gt; &gt;         # authenticate the REGISTER requests (uncomment to enable auth)<br>&gt; &gt;         if (!www_authorize("", "subscriber"))<br>&gt; &gt;         {<br>&gt; &gt;             log(1,"not in subscriber table\n");<br>&gt; &gt;             www_challenge("", "0");<br>&gt; &gt;             exit;<br>&gt; &gt;         }<br>&gt; &gt;        <br>&gt; &gt;         if (!check_to())<br>&gt; &gt;         {<br>&gt; &gt;             log(1,"403 Forbidden auth ID\n");<br>&gt; &gt;             sl_send_reply("403","Forbidden auth ID");<br>&gt; &gt;             exit;<br>&gt; &gt;         }<br>&gt; &gt;<br>&gt; &gt;         if (!save("location"))<br>&gt; &gt;             sl_reply_error();<br>&gt; &gt;<br>&gt; &gt;         exit;<br>&gt; &gt;     }<br>&gt; &gt;<br>&gt; &gt;     if ($rU==NULL) {<br>&gt; &gt;         # request with no Username in RURI<br>&gt; &gt;         sl_send_reply("484","Address Incomplete");<br>&gt; &gt;         exit;<br>&gt; &gt;     }<br>&gt; &gt;<br>&gt; &gt;     # apply DB based aliases (uncomment to enable)<br>&gt; &gt;     ##alias_db_lookup("dbaliases");<br>&gt; &gt;<br>&gt; &gt;     if (!lookup("location")) {<br>&gt; &gt;         switch ($retcode) {<br>&gt; &gt;             case -1:<br>&gt; &gt;             case -3:<br>&gt; &gt;                 t_newtran();<br>&gt; &gt;                 t_reply("404", "Not Found");<br>&gt; &gt;                 exit;<br>&gt; &gt;             case -2:<br>&gt; &gt;                 sl_send_reply("405", "Method Not Allowed");<br>&gt; &gt;                 exit;<br>&gt; &gt;         }<br>&gt; &gt;     }<br>&gt; &gt;<br>&gt; &gt;     # when routing via usrloc, log the missed calls also<br>&gt; &gt;     setflag(2);<br>&gt; &gt;<br>&gt; &gt;     route(1);<br>&gt; &gt; }<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; route[1] {<br>&gt; &gt;     # for INVITEs enable some additional helper routes<br>&gt; &gt;     if (is_method("INVITE")) {<br>&gt; &gt;         t_on_branch("2");<br>&gt; &gt;         t_on_reply("2");<br>&gt; &gt;         t_on_failure("1");<br>&gt; &gt;     }<br>&gt; &gt;<br>&gt; &gt;     if (!t_relay()) {<br>&gt; &gt;         sl_reply_error();<br>&gt; &gt;     };<br>&gt; &gt;     exit;<br>&gt; &gt; }<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; # Presence route<br>&gt; &gt; /* uncomment the whole following route for enabling presence<br>&gt; &gt;    NOTE: do not forget to enable the call of this route from the main<br>&gt; &gt;      route */<br>&gt; &gt; route[2]<br>&gt; &gt; {<br>&gt; &gt;     if (!t_newtran())<br>&gt; &gt;     {<br>&gt; &gt;         sl_reply_error();<br>&gt; &gt;         exit;<br>&gt; &gt;     };<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;     if(is_method("PUBLISH"))<br>&gt; &gt;     {<br>&gt; &gt;         log(1,"\n------route2 PUBLISH-----\n");<br>&gt; &gt;         handle_publish();<br>&gt; &gt;         #t_release(); ## obsoleted in 1.5 - no need for it. So, just <br>&gt; &gt; remove it.<br>&gt; &gt;     }<br>&gt; &gt;     else<br>&gt; &gt;     if( is_method("SUBSCRIBE"))<br>&gt; &gt;     {<br>&gt; &gt;         log(1,"\n------route2 SUBSCRIBE----\n");<br>&gt; &gt;         handle_subscribe();<br>&gt; &gt;         #t_release(); ## obsoleted in 1.5 - no need for it. So, just <br>&gt; &gt; remove it.<br>&gt; &gt;<br>&gt; &gt;     }<br>&gt; &gt;<br>&gt; &gt;     exit;<br>&gt; &gt; }<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; branch_route[2] {<br>&gt; &gt;     xlog("new branch at $ru\n");<br>&gt; &gt; }<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; onreply_route[2] {<br>&gt; &gt;     xlog("incoming reply\n");<br>&gt; &gt; }<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; failure_route[1] {<br>&gt; &gt;     if (t_was_cancelled()) {<br>&gt; &gt;         exit;<br>&gt; &gt;     }<br>&gt; &gt;<br>&gt; &gt;     # uncomment the following lines if you want to block client<br>&gt; &gt;     # redirect based on 3xx replies.<br>&gt; &gt;     ##if (t_check_status("3[0-9][0-9]")) {<br>&gt; &gt;     ##t_reply("404","Not found");<br>&gt; &gt;     ##    exit;<br>&gt; &gt;     ##}<br>&gt; &gt;<br>&gt; &gt;     # uncomment the following lines if you want to redirect the failed<br>&gt; &gt;     # calls to a different new destination<br>&gt; &gt;     ##if (t_check_status("486|408")) {<br>&gt; &gt;     ##    sethostport("192.168.2.100:5060");<br>&gt; &gt;     ##    # do not set the missed call flag again<br>&gt; &gt;     ##    t_relay();<br>&gt; &gt;     ##}<br>&gt; &gt; }<br>&gt; &gt;<br>&gt; &gt; ------------------------------------------------------------------------<br>&gt; &gt; Windows Live: Keep your friends up to date with what you do online. <br>&gt; &gt; &lt;http://www.microsoft.com/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:ms-my:SI_SB_1:092010&gt; <br>&gt; &gt;<br>&gt; &gt; ------------------------------------------------------------------------<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Users mailing list<br>&gt; &gt; Users@lists.opensips.org<br>&gt; &gt; http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br>&gt; &gt;   <br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; Users mailing list<br>&gt; Users@lists.opensips.org<br>&gt; http://lists.opensips.org/cgi-bin/mailman/listinfo/users<br>                                               <br /><hr />Chat online and in real-time with friends and family! <a href='http://get.live.com/messenger/overview' target='_new'>Windows Live Messenger</a></body>
</html>