Hello,<br>I am currently trying to do accurate billing with openser. I found that dialog and sst modules can be used to determine failed transactions. i.e. If UA crashed and no BYE received at all. I tried to configure dialog and sst modules as specified in the documentation. But active dialogs keep incrementing even after hangup. It would be nice if someone can post a good example. I am using cvs head of openser.
<br>Snippet of config is as below:<br><br>######################&nbsp;&nbsp; DIALOG&nbsp;&nbsp; ######################<br>modparam(&quot;dialog&quot;, &quot;dlg_flag&quot;, 13)<br>modparam(&quot;dialog&quot;, &quot;timeout_avp&quot;, &quot;$avp(i:10)&quot;)
<br>modparam(&quot;dialog&quot;, &quot;use_tight_match&quot;, 1)<br>modparam(&quot;dialog&quot;, &quot;enable_stats&quot;, 1)<br><br>######################&nbsp;&nbsp; SST&nbsp;&nbsp; ######################<br>modparam(&quot;sst&quot;, &quot;enable_stats&quot;, 1)
<br>modparam(&quot;sst&quot;, &quot;timeout_avp&quot;, &quot;$avp(i:10)&quot;)<br>modparam(&quot;sst&quot;, &quot;sst_flag&quot;, 14)<br clear="all"><br>route<br>{<br>........<br>........<br>if(method==&quot;INVITE&quot;)
<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; setflag(13); # set the dialog flag<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; setflag(14); # Set the sst flag<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; avp_write(&quot;15&quot;,&quot;$avp(i:10)&quot;);<br>&nbsp;&nbsp;&nbsp; };<br>if (method==&quot;INVITE&quot;)<br>&nbsp;&nbsp;&nbsp; {<br>
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; record_route_preset(&quot;<a href="http://192.168.1.2:5060">192.168.1.2:5060</a>;nat=yes;did=1&quot;);<br>&nbsp; &nbsp;&nbsp;&nbsp; };<br>.........<br>.........<br>}<br><br>-- <br>Regards<br>Asterisk Expert