Hi,
simply use fi_check() in the configuration script. That will call your function.
Thats what I thought also, but unfortunately, SER does not run when. If I run it with a call fi_check() in the ser.cfg file it logs a parse error:
Feb 14 14:15:00 DISCUS ser: parse error (39,1-9): parse error Feb 14 14:15:00 DISCUS ser: parse error (39,1-9):
I have attached the complete cfg file. But if I remove that fi_check() call, ser runs fine. Have I messed something up with parameters????
Thanks for your help!
Mario
You need to have a ser action called from within a route block.
-Jiri
At 04:00 PM 2/14/2003, Mario Kolberg wrote:
Hi,
simply use fi_check() in the configuration script. That will call your function.
Thats what I thought also, but unfortunately, SER does not run when. If I run it with a call fi_check() in the ser.cfg file it logs a parse error:
Feb 14 14:15:00 DISCUS ser: parse error (39,1-9): parse error Feb 14 14:15:00 DISCUS ser: parse error (39,1-9):
I have attached the complete cfg file. But if I remove that fi_check() call, ser runs fine. Have I messed something up with parameters????
Thanks for your help!
Mario
-- Mario Kolberg phone: +44 (0)1786 46 7440 Lecturer in Computing Science fax : +44 (0)1786 46 4551 email: mko@cs.stir.ac.uk
Department of Computing Science and Mathematics University of Stirling Stirling FK9 4LA Scotland, UK -- The University of Stirling is a university established in Scotland by charter at Stirling, FK9 4LA. Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not disclose, copy or deliver this message to anyone and any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of the University of Stirling shall be understood as neither given nor endorsed by it.
# # $Id: ser.cfg,v 1.12 2002/10/21 02:40:06 jiri Exp $ # # simple quick-start config script #
# ----------- global configuration parameters ------------------------
debug=3 # debug level (cmd line: -dddddddddd) fork=yes log_stderror=no # (cmd line: -E) check_via=no # (cmd. line: -v) dns=no # (cmd. line: -r) rev_dns=no # (cmd. line: -R) port=5060 children=4 fifo="/tmp/ser_fifo" alias="cs.stir.ac.uk"
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database #mario loadmodule "//usr/lib/ser/modules/mysql.so"
loadmodule "//usr/lib/ser/modules/sl.so" loadmodule "//usr/lib/ser/modules/tm.so" loadmodule "//usr/lib/ser/modules/rr.so" loadmodule "//usr/lib/ser/modules/maxfwd.so" loadmodule "//usr/lib/ser/modules/usrloc.so" loadmodule "//usr/lib/ser/modules/registrar.so" loadmodule "//usr/lib/ser/modules/fi.so"
# Uncomment this if you want digest authentication # mysql.so must be loaded ! #mario loadmodule "//usr/lib/ser/modules/auth.so"
fi_check();
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
modparam("usrloc", "db_mode", 0)
On Feb 14, 2003 at 15:00, Mario Kolberg mko@cs.stir.ac.uk wrote:
Hi,
simply use fi_check() in the configuration script. That will call your function.
Thats what I thought also, but unfortunately, SER does not run when. If I run it with a call fi_check() in the ser.cfg file it logs a parse error:
Feb 14 14:15:00 DISCUS ser: parse error (39,1-9): parse error Feb 14 14:15:00 DISCUS ser: parse error (39,1-9):
I have attached the complete cfg file. But if I remove that fi_check() call, ser runs fine. Have I messed something up with parameters????
As Jiri said it must be in a route block, e.g.:
route{ if (method=="INVITE"){ fi_check(); } /* ... */ }
Andrei