Differences
This shows you the differences between two versions of the page.
old-content:example_acc_setup [2005/12/06 01:00] |
old-content:example_acc_setup [2005/12/06 01:00] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | Below is an example of setting up Accounting using the acc module. | ||
+ | # | ||
+ | # M4 defines | ||
+ | # | ||
+ | define(`OPENSER_USER', | ||
+ | define(`OPENSER_PW', | ||
+ | define(`OPENSER_DATABASE', | ||
+ | define(`OPENSER_DATABASE_HOST', | ||
+ | define(`FLAG_ACC', | ||
+ | define(`FLAG_ACC_DB', | ||
+ | define(`FLAG_MISSED_CALL', | ||
+ | |||
+ | # | ||
+ | # load modules | ||
+ | # | ||
+ | mpath="/ | ||
+ | loadmodule " | ||
+ | |||
+ | # | ||
+ | # acc params | ||
+ | # | ||
+ | modparam(" | ||
+ | modparam(" | ||
+ | modparam(" | ||
+ | modparam(" | ||
+ | modparam(" | ||
+ | modparam(" | ||
+ | modparam(" | ||
+ | # | ||
+ | # | ||
+ | # | ||
+ | modparam(" | ||
+ | modparam(" | ||
+ | modparam(" | ||
+ | modparam(" | ||
+ | |||
+ | route { | ||
+ | ... | ||
+ | # | ||
+ | # Setup Accounting | ||
+ | # | ||
+ | if (is_method(" | ||
+ | setflag(FLAG_ACC); | ||
+ | setflag(FLAG_ACC_DB); | ||
+ | } else if (is_method(" | ||
+ | setflag(FLAG_ACC); | ||
+ | setflag(FLAG_ACC_DB); | ||
+ | setflag(FLAG_MISSED_CALL); | ||
+ | }; | ||
+ | ... | ||
+ | } |