[Users] Accounting using dialog and sst module

Asterisk Expert asterisk.expert at gmail.com
Tue Dec 26 12:20:53 CET 2006


Hello,
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.
Snippet of config is as below:

######################   DIALOG   ######################
modparam("dialog", "dlg_flag", 13)
modparam("dialog", "timeout_avp", "$avp(i:10)")
modparam("dialog", "use_tight_match", 1)
modparam("dialog", "enable_stats", 1)

######################   SST   ######################
modparam("sst", "enable_stats", 1)
modparam("sst", "timeout_avp", "$avp(i:10)")
modparam("sst", "sst_flag", 14)

route
{
........
........
if(method=="INVITE")
    {
        setflag(13); # set the dialog flag
            setflag(14); # Set the sst flag
        avp_write("15","$avp(i:10)");
    };
if (method=="INVITE")
    {
         record_route_preset("192.168.1.2:5060;nat=yes;did=1");
      };
.........
.........
}

-- 
Regards
Asterisk Expert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20061226/c02e1a6a/attachment.htm 


More information about the Users mailing list