<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div><div>Hello,<br><br><br></div>I used the below settings to test the keep-alive function within a dialog:<br><span style="font-family:arial,helvetica,sans-serif"><br>modparam("dialog", "default_timeout", 60)</span><br><span style="font-family:arial,helvetica,sans-serif"></span><span style="font-family:arial,helvetica,sans-serif">modparam("dialog", "ka_timer", 10)</span><span style="font-family:arial,helvetica,sans-serif"><br>modparam("dialog", "ka_interval", 30)
</span><span style="font-family:arial,helvetica,sans-serif"></span><span style="font-family:arial,helvetica,sans-serif"><br><br>and use  dlg_set_property("ka-src") or </span><span style="font-family:arial,helvetica,sans-serif">dlg_set_property("ka-dst") to send OPTIONS to caller or callee.</span><br><br></div>A few questions to ask:<br><br></div>(1) What's the difference between ka_timer and ka_interval? <br><br></div>     I read the  <a href="http://www.kamailio.org/docs/modules/4.2.x/modules/dialog.html">http://www.kamailio.org/docs/modules/4.2.x/modules/dialog.html</a> ,<br></div>     but still can not understand very clearly.<br></div>     I know the ka_interval means OPTIONS will be sent after 30 seconds when dialog started or last keep-alive has been done.<br></div>     but I don't know how ka_timer works.<br><br></div>(2) From the packets captured I can see server sent OPTIONS and the client (caller or callee) sent back 200 OK.<br></div>     According to the document, <br>     "<span style="color:rgb(0,0,0);font-family:Helvetica,Arial;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:justify;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)">The dialog timeout is reset each time a sequential request is processed</span>"     <br>     However, the dialog was still timeout, it seems that the timeout value was not reset.<br></div>     And I make the clients send the OPTIONS and frequently , the dialog never expires now.<br> <br></div>     So the refresh only works on the keep-alive sent by clients not the server here?<br><br><br></div>Thanks :)<br><div><div><div><br>     <br><div><div><div><div><div>    <br></div><div><div><div><div><br><div><br></div></div></div></div></div></div></div></div></div></div></div></div></div>