<div dir="ltr">Hi,<div><br></div><div>I am fairly new to Kamailio and had a question regarding how to use Kamailio to enable Session refresh functionality when Kamailio is acting as Sip Stateful Proxy. </div><div>Kamailio Version used: <b>5.3.2</b> with <b>Call Load based routing</b> using the <b>dispatcher </b>module.</div><div><br></div><div><br></div><div>* From what i understand from the documentation, Kamailio will probably not be acting as a session refresher, but Kamailio can tear down the call in case session refresh is negotiated, between the caller and the callee(via Kamailio Sip Proxy), and no message exchange happens in the duration set in Session-Expires header. <b>Is my understanding correct?</b></div><div><b><br></b></div><div><b>* </b>I believe the above functionality is possible by using the <b>sst</b> and <b>dialog</b> module. I have set the same according to the documentation but I keep getting the following error:</div><div>"dialog [dlg_handlers.c:681]: <b>get_dlg_timeout(): invalid AVP value, using default timeout</b>"</div><div>Can someone share a working example?</div><div><br></div><div>* When i tried hardcoding the timeout value by setting the timeout_avp to a specific value, Kamailio did sense a timeout and hence sent a BYE towards the caller and the Callee side both(which is what the requirement is), however, i do see the <b>dialog is still not cleared</b> in the "kamcmd dispatcher.list". Output excerpt below for reference:</div><div><br></div><div>[root@CPaaSVM ~]# kamcmd dispatcher.list<br>{<br>        NRSETS: 1<br>        RECORDS: {<br>                SET: {<br>                        ID: 1<br>                        TARGETS: {<br>                                DEST: {<br>                                        URI: sip:172.27.44.121:5080;transport=tcp<br>                                        FLAGS: AP<br>                                        PRIORITY: 0<br>                                        ATTRS: {<br>                                                BODY: duid=sample-cas;maxload=1000<br>                                                DUID: sample-cas<br>                                                MAXLOAD: 1000<br>                                                WEIGHT: 0<br>                                                RWEIGHT: 0<br>                                                SOCKET:<br>                                        }<br>                                        LATENCY: {<br>                                                AVG: 111.304000<br>                                                STD: 1042.193000<br>                                                EST: 2.385000<br>                                                MAX: 9999<br>                                                TIMEOUT: 1<br>                                        }<br>                                        RUNTIME: {<br>                                                <font color="#ff0000">DLGLOAD: <b>1</b></font><br>                                        }<br>                                }<br>                        }<br>                }<br>        }<br>}<br></div><div><br></div><div>It is noteworthy that in case the BYE is initiated by either the caller or the callee, the dialog is cleared properly and the DLGLOAD is set to 0 on call termination. </div><div><br></div><div>Any pointers for the above questions would be highly appreciated. </div><div><br></div><div>Regards,</div><div>Harneet</div><div><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">"Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth" - Sir Arthur Conan Doyle<br></div></div></div>