[Serusers] retrieve from db in ser.conf
Are there any examples of how run a select query to the db from within ser.conf , and return a value other than 0 or 1 ? I have read in the mailing list archives that the only way to do this is to call a shell script, is that true ? --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.777 / Virus Database: 524 - Release Date: 10/14/2004
You can also create a custom plugin module to expose a new method. Refer to <ser-sources>/doc/serdev/serdev.sgml for a good explaination of how modules work in ser. Paul --- Peter Boot <peter.boot@webfone.com.au> wrote:
Are there any examples of how run a select query to the db from within ser.conf , and return a value other than 0 or 1 ?
I have read in the mailing list archives that the only way to do this is to call a shell script, is that true ?
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.777 / Virus Database: 524 - Release Date: 10/14/2004
_______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
_______________________________ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com
Hi Peter, I'm not sure if this will fit your needs, but you can try to run a DB query via avp_db_load() and also you can test some loaded values via avp_check() function. To be sure, please refer to README. Best regards, Marian Dumitru Peter Boot wrote:
Are there any examples of how run a select query to the db from within ser.conf , and return a value other than 0 or 1 ?
I have read in the mailing list archives that the only way to do this is to call a shell script, is that true ?
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.777 / Virus Database: 524 - Release Date: 10/14/2004
_______________________________________________ Serusers mailing list serusers@lists.iptel.org http://lists.iptel.org/mailman/listinfo/serusers
-- Voice Sistem http://www.voice-sistem.ro
participants (3)
-
Java Rockx -
Marian Dumitru -
Peter Boot