<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="Open WebMail 2.20 20031014" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>
<font size="2">Read the more recent SEMS documentation. vm.so was deprecated.
<br />
<br />You now use other methods (depending on whether you're using a fifo or a unix socket in SEMS).
<br />
<br />For instance, I use:
<br />
<br />if(!t_write_unix("/tmp/am_sock","voicemail")) {
<br /> t_reply("500","error contacting sems");
<br />};
<br />
<br /><b>
<br />
<br />On Wed, 1 Feb 2006 20:44:36 +0200, Toygun Mavinil wrote</b>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">Hi,<o:p /></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">I installed ser 0.9.6 on fc4<o:p /></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">Compiled and installed with all modules but vm.so module is
missing.<o:p /></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">Looked at the source modules directory, there is no vm
directory or file.<o:p /></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">I installed sems from cvs<o:p /></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">Sems is working<o:p /></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">Also<o:p /></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">Do i have to add down lines to ser.cfg<o:p /></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">loadmodule
"/home/srouter/sip_router/modules/vm/vm.so"<o:p /></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">modparam("vm",
"auth_db|domain|uri_db|usrloc", "db_url",
"mysql://ser:heslo@localhost/ser")<o:p /></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">modparam("vm", "email_column",
"email")<o:p /></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">modparam("vm", "subscriber_table",
"subscriber")<o:p /></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">modparam("vm", "user_column",
"username")<o:p /></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;">modparam("vm", "domain_column",
"domain")<o:p /></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;">if(method=="ACK"
|| method=="INVITE" || method=="BYE"){<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"><o:p> </o:p></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> if
(!t_newtran()) {<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> log("could
not create new transaction\n");<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> sl_send_reply("500","could
not create new transaction");<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> break;<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> };<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"><o:p> </o:p></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> t_reply("100","Trying
-- just wait a minute !");<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> if(method=="INVITE"){<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> log("****************
vm start - begin ******************\n");<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> if(!vm("/tmp/am_fifo","voicemail")){<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> log("could
not contact the answer machine\n");<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> t_reply("500","could
not contact the answer machine");<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> };<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> log("****************
vm start - end ******************\n");<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> }
else if(method=="BYE"){<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> log("****************
vm end - begin ******************\n");<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> if(!vm("/tmp/am_fifo","bye")){<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> log("could
not contact the answer machine\n");<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> t_reply("500","could
not contact the answer machine");<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> };<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> log("****************
vm end - end ******************\n");<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> };<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> break;<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> };<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> if
(method=="CANCEL") {<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> sl_send_reply("200",
"cancels are junked here");<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> break;<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> };<o:p /></span></font></b>
<br />> <b><font size="2" face="System"><span style="font-size: 10pt; font-family: system; font-weight: bold;"> sl_send_reply("501",
"method not understood here");<o:p /></span></font></b>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>
<br />> <font size="2" face="Arial"><span style="font-size: 10pt; font-family: arial;"><o:p> </o:p></span></font>
<br />> <font size="3" face="Times New Roman"><span style="font-size: 12pt;">Toygun</span><o:p /></font>
<br />> <font size="3" face="Times New Roman"><span style="font-size: 12pt;"><o:p> </o:p></span></font>
<br />
<br />
<br />
</font>
</BODY>
</HTML>