THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

The following task has a new comment added:

FS#427 - kamailio sometimes crash when handling failure events
User who did this - Pawel Sternal (Sternik)

----------
I use two times event_route. First:
<code>
event_route[cnxcc:call-shutdown]{
    xlog("L_NOTICE", "LOG:$ci (route CCF-Call-Shutdown) Message buffer: $mb\n");

    avp_db_query("select 
o_from,o_to,r_from,r_to,ftag,aba_contact,abb_contact,icid,mcid,icid_var from 
dialog_data where callid='$ci'",
         
"$avp(o_from);$avp(o_to);$avp(r_from);$avp(r_to);$avp(ftag);$avp(aba_contact);$avp(abb_contact);$avp(9051);$avp(9050);$avp(icid_next)");

    # End RTP session
    xlog("L_INFO", "LOG (route GET_RTPPROXY_SET) did = $avp(did)\n");
    # if did is empty, trying to get from db
    if($avp(did)==$null){
        avp_db_query("select did from dialog_data where 
callid='$ci'","$avp(did)");
    }

    xlog("L_INFO", "LOG (route GET_RTPPROXY_SET) did = $avp(did)\n");
    if($avp(did)==1){
        set_rtp_proxy_set("1");
    }else{
        set_rtp_proxy_set("2");
    }
    rtpproxy_destroy();

    # Saving $TS
    avp_db_query("update dialog_data set last_cc_event_timestamp='$TS' where 
callid='$ci'");

    # Sending ACC Stop
    $avp(acr_type)="Stop";
    acc_rad_request("200 OK");
    acc_log_request("200 OK");
}
</code>

And second:
<code>
event_route[tm:local-request]{
    xlog("L_NOTICE", "LOG:$ci (event route LOCAL-REQUEST) Method: $rm\n");
    if(is_method("OPTIONS")) route(LOCAL_REQUEST_OPTIONS);

    #!ifdef PUA_DIALOG_INFO
    else if(is_method("PUBLISH")) route(LOCAL_REQUEST_PUBLISH);
    #!endif

    else {
        xlog("L_NOTICE", "LOG:$ci (route tm:local-request) Method: $rm\n");
    }
}

route[LOCAL_REQUEST_OPTIONS]{
    if($hdr(X-CRX-Info)=="AliveTest"){t_on_reply("ALIVE_TEST");}
}
</code>

About route(LOCAL_REQUEST_PUBLISH) I'll send you privately if you don't mind. 

I applied this patch an upraded for nodes. And looks like it works:
<code>
May 16 20:49:52 node02 /usr/sbin/kamailio[23729]: ERROR: dialog 
[dlg_hash.c:775]: link_dlg(): info - dlg 0xa50299a4 ref from 0 with 1
May 16 20:49:58 node02 /usr/sbin/kamailio[23691]: ERROR: dialog 
[dlg_hash.c:775]: link_dlg(): info - dlg 0xa4dc9040 ref from 0 with 1           
                                                                 
May 16 20:50:13 node02 /usr/sbin/kamailio[23735]: ERROR: dialog 
[dlg_hash.c:775]: link_dlg(): info - dlg 0xa4ed1c00 ref from 0 with 1
May 16 20:50:40 node02 /usr/sbin/kamailio[23729]: ERROR: dialog 
[dlg_hash.c:775]: link_dlg(): info - dlg 0xa5039480 ref from 0 with 1
May 16 20:51:36 node02 /usr/sbin/kamailio[23694]: ERROR: dialog 
[dlg_hash.c:775]: link_dlg(): info - dlg 0xa4dc9040 ref from 0 with 1           
                                                                 
May 16 20:51:54 node02 /usr/sbin/kamailio[23733]: ERROR: dialog 
[dlg_hash.c:775]: link_dlg(): info - dlg 0xa50272d0 ref from 0 with 1
May 16 20:52:08 node02 /usr/sbin/kamailio[23688]: ERROR: dialog 
[dlg_hash.c:775]: link_dlg(): info - dlg 0xa5039480 ref from 0 with 1           
                                                                 
May 16 20:52:15 node02 /usr/sbin/kamailio[23736]: ERROR: dialog 
[dlg_hash.c:775]: link_dlg(): info - dlg 0xa4dc9040 ref from 0 with 1
May 16 20:52:19 node02 /usr/sbin/kamailio[23699]: ERROR: dialog 
[dlg_hash.c:775]: link_dlg(): info - dlg 0xa5052464 ref from 0 with 1
</code>

today restart doesn't occurred :/
----------

More information can be found at the following URL:
http://sip-router.org/tracker/index.php?do=details&task_id=427#comment1452

You are receiving this message because you have requested it from the Flyspray 
bugtracking system.  If you did not expect this message or don't want to 
receive mails in future, you can change your notification settings at the URL 
shown above.

_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to