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>###################### DIALOG ######################<br>modparam("dialog", "dlg_flag", 13)<br>modparam("dialog", "timeout_avp", "$avp(i:10)")
<br>modparam("dialog", "use_tight_match", 1)<br>modparam("dialog", "enable_stats", 1)<br><br>###################### SST ######################<br>modparam("sst", "enable_stats", 1)
<br>modparam("sst", "timeout_avp", "$avp(i:10)")<br>modparam("sst", "sst_flag", 14)<br clear="all"><br>route<br>{<br>........<br>........<br>if(method=="INVITE")
<br> {<br> setflag(13); # set the dialog flag<br> setflag(14); # Set the sst flag<br> avp_write("15","$avp(i:10)");<br> };<br>if (method=="INVITE")<br> {<br>
record_route_preset("<a href="http://192.168.1.2:5060">192.168.1.2:5060</a>;nat=yes;did=1");<br> };<br>.........<br>.........<br>}<br><br>-- <br>Regards<br>Asterisk Expert