[Serusers] Voicemail implementation

Jan Janak jan at iptel.org
Fri Jul 25 00:05:50 CEST 2003


On 25-07 00:03, Director General: NEFACOMP wrote:
> A file like this one is needed for aliases and accounting to MySQL.
> (I mean a complete ser.cfg file)

 I don't have a simple config file showing aliases and accounting.
 Aliases are easy, simply put lookup("aliases"); into your script, it is
 good to enclose it into something like this:

 if (uri==myself) {
     ...
     lookup("aliases");
     ...
 };

 The condition ensures that the proxy will use the aliases only if the
 request is targeted to your proxy.

 And then you, of course, need to create some aliases (for example using
 serctl utility).

 Regarding accounting, that one is easy too:
 1) load acc module
 2) put the following into modparam section of your file:
    modparam("acc", "report_ack", 1)
    modparam("acc", "log_level", 1)
    modparam("acc", "log_flag", 1 )
    modparam("acc", "db_flag", 1 )
    modparam("acc", "log_missed_flag", 3 )
    modparam("acc", "db_missed_flag", 3 )
    # report to syslog: From, i-uri, status, digest id
    modparam("acc", "log_fmt", "fisu" )
 
 And then, when your script is processing a request that you want to account,
 simply call:

 setflag(1);
	
   That's it.

     Jan.




More information about the sr-users mailing list