serctl start had successed,but serctl moni didn't work
I type tail /var/log/messages, and get the error
someone know what happen?
Aug 2 18:55:21 knuth pppd[12282]: pppd 2.4.1 started by root, uid 0
Aug 2 18:55:21 knuth pppd[12282]: Couldn't get channel number: Input/output
error
Aug 2 18:55:21 knuth pppd[12282]: Exit.
Aug 2 18:55:21 knuth init: Id "pd" respawning too fast: disabled for 5
minutes
this is my ser.cfg file
-----------------
#
# $Id: voicemail.cfg,v 1.2 2003/10/10 06:27:18 jiri Exp $
#
# this script is configured for use as voicemail UAS; it processes
# INVITEs and BYEs and asks SEMS to record media via "vm"; in this
# script, all record-routing and other constructs known from proxy
# scripts are not present -- it is a simple UAS
#
# ----------- global configuration parameters ------------------------
#debug= # debug level (cmd line: -dddddddddd)
#fork=no
#log_stderror=yes # (cmd line: -E)
check_via=no # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
port=5090
children=4
fifo="/tmp/vm_ser_fifo"
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
loadmodule "/usr/local/lib/ser/modules/vm.so"
loadmodule "/usr/local/lib/ser/modules/exec.so"
# ----------------- setting module-specific parameters ---------------
modparam("voicemail", "db_url","sql://ser:heslo@localhost/ser")
# ------------------------- request routing logic -------------------
# main routing logic
route{
# initial sanity checks -- messages with
# max_forwars==0, or excessively long requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if (msg:len> max_len ) {
sl_send_reply("513", "Message too big");
break;
};
if (!uri==myself) {
sl_send_reply("404", "not reponsible for host in r-uri");
break;
};
# Voicemail specific configuration - begin
if(method=="ACK" || method=="INVITE" || method=="BYE"){
if (!t_newtran()) {
log("could not create new transaction\n");
sl_send_reply("500","could not create new
transaction");
break;
};
t_reply("100","Trying -- just wait a minute !");
if(method=="INVITE"){
log("**************** vm start - begin
******************\n");
if (uri=~"sip:as_welcome@.*" || uri=~
sip:as_nomoney@.*") {
if (!vm("/tmp/am_fifo", "announcement")) {
log("couldn't contact announcement
server\n");
t_reply("500", "couldn not contact
announcement server");
};
t_reply("500", "couldn not contact
announcement server");
};
} else {
if(!vm("/tmp/am_fifo","voicemail")){
log("could not contact the answer
machine\n");
t_reply("500","could not contact the
answer machine");
};
};
log("**************** vm start - end
******************\n");
} else if(method=="BYE"){
log("**************** vm end - begin
******************\n");
if(!vm("/tmp/am_fifo","bye")){
log("could not contact the answer machine\n
);
t_reply("500","could not contact the answer
machine");
};
log("**************** vm end - end
******************\n");
};
break;
};
if (method=="CANCEL") {
sl_send_reply("200", "cancels are junked here");
break;
};
sl_send_reply("501", "method not understood here");
#};
#end of uri==myself
}
This issue has been addressed many times on mailing list. You don't have
the mysql development library installed. That's libmysql-devel on Debian
or mysql-devel on RPM based systems. For other OS check the packages list.
Daniel
On 8/2/2004 12:34 PM, Xiang wrote:
> detail error message
> thanks.
> -----------------
> make[1]: Entering directory `/ser-0.8.14/modules/mysql'
> gcc -fPIC -DPIC -g -O9 -funroll-loops -Wcast-align -Wall
> -minline-all-stringops -malign-double -falign-loops -mcpu=athlon
> -DNAME='""' -DVERSION='"0.8.14"' -DARCH='"i386"' -DOS='"linux"'
> -DCOMPILER='"gcc 3.2"' -D__CPU_i386 -D__OS_linux
> -DCFG_DIR='"/usr/local/etc/ser/"' -DPKG_MALLOC -DSHM_MEM -DSHM_MMAP
> -DDNS_IP_HACK -DUSE_IPV6 -DUSE_TCP -DDISABLE_NAGLE -DF_MALLOC
> -DFAST_LOCK -DADAPTIVE_WAIT -DADAPTIVE_WAIT_LOOPS=1024
> -DHAVE_GETHOSTBYNAME2 -DHAVE_UNION_SEMUN -DHAVE_SCHED_YIELD
> -DHAVE_MSG_NOSIGNAL -DHAVE_MSGHDR_MSG_CONTROL -c dbase.c -o dbase.o
> In file included from dbase.c:39:
> con_mysql.h:33:25: mysql/mysql.h: No such file or directory
> In file included from dbase.c:39:
> con_mysql.h:39: parse error before "MYSQL_RES"
> con_mysql.h:39: warning: no semicolon at end of struct or union
> con_mysql.h:40: warning: type defaults to `int' in declaration of `con'
> con_mysql.h:40: warning: data definition has no type or storage class
> con_mysql.h:41: parse error before "row"
> con_mysql.h:41: warning: type defaults to `int' in declaration of `row'
> con_mysql.h:41: warning: data definition has no type or storage class
> In file included from dbase.c:40:
> db_val.h:31:25: mysql/mysql.h: No such file or directory
> In file included from dbase.c:40:
> db_val.h:43: parse error before '*' token
> dbase.c: In function `connect_db':
> dbase.c:89: dereferencing pointer to incomplete type
> dbase.c:89: `MYSQL' undeclared (first use in this function)
> dbase.c:89: (Each undeclared identifier is reported only once
> dbase.c:89: for each function it appears in.)
> dbase.c:89: parse error before ')' token
> dbase.c:90: dereferencing pointer to incomplete type
> dbase.c:96: warning: implicit declaration of function `mysql_init'
> dbase.c:96: dereferencing pointer to incomplete type
> dbase.c:98: warning: implicit declaration of function `mysql_real_connect'
> dbase.c:98: dereferencing pointer to incomplete type
> dbase.c:99: warning: implicit declaration of function `mysql_error'
> dbase.c:99: dereferencing pointer to incomplete type
> dbase.c:99: dereferencing pointer to incomplete type
> dbase.c:99: warning: format argument is not a pointer (arg 3)
> dbase.c:99: dereferencing pointer to incomplete type
> dbase.c:99: warning: format argument is not a pointer (arg 3)
> dbase.c:99: dereferencing pointer to incomplete type
> dbase.c:99: warning: format argument is not a pointer (arg 3)
> dbase.c:99: dereferencing pointer to incomplete type
> dbase.c:99: warning: format argument is not a pointer (arg 3)
> dbase.c:99: dereferencing pointer to incomplete type
> dbase.c:99: warning: format argument is not a pointer (arg 3)
> dbase.c:99: dereferencing pointer to incomplete type
> dbase.c:99: warning: format argument is not a pointer (arg 3)
> dbase.c:99: dereferencing pointer to incomplete type
> dbase.c:99: warning: format argument is not a pointer (arg 3)
> dbase.c:100: warning: implicit declaration of function `mysql_close'
> dbase.c:100: dereferencing pointer to incomplete type
> dbase.c:102: dereferencing pointer to incomplete type
> dbase.c: In function `disconnect_db':
> dbase.c:127: dereferencing pointer to incomplete type
> dbase.c:129: dereferencing pointer to incomplete type
> dbase.c: In function `submit_query':
> dbase.c:151: warning: implicit declaration of function `mysql_query'
> dbase.c:151: dereferencing pointer to incomplete type
> dbase.c:152: dereferencing pointer to incomplete type
> dbase.c:152: dereferencing pointer to incomplete type
> dbase.c:152: warning: format argument is not a pointer (arg 3)
> dbase.c:152: dereferencing pointer to incomplete type
> dbase.c:152: warning: format argument is not a pointer (arg 3)
> dbase.c:152: dereferencing pointer to incomplete type
> dbase.c:152: warning: format argument is not a pointer (arg 3)
> dbase.c:152: dereferencing pointer to incomplete type
> dbase.c:152: warning: format argument is not a pointer (arg 3)
> dbase.c:152: dereferencing pointer to incomplete type
> dbase.c:152: warning: format argument is not a pointer (arg 3)
> dbase.c:152: dereferencing pointer to incomplete type
> dbase.c:152: warning: format argument is not a pointer (arg 3)
> dbase.c:152: dereferencing pointer to incomplete type
> dbase.c:152: warning: format argument is not a pointer (arg 3)
> dbase.c: At top level:
> dbase.c:187: parse error before '*' token
> dbase.c: In function `print_values':
> dbase.c:191: `_c' undeclared (first use in this function)
> dbase.c:191: `_b' undeclared (first use in this function)
> dbase.c:191: `_l' undeclared (first use in this function)
> dbase.c:191: `_v' undeclared (first use in this function)
> dbase.c:191: `_n' undeclared (first use in this function)
> dbase.c: At top level:
> dbase.c:216: parse error before '*' token
> dbase.c: In function `print_where':
> dbase.c:222: `_c' undeclared (first use in this function)
> dbase.c:222: `_b' undeclared (first use in this function)
> dbase.c:222: `_l' undeclared (first use in this function)
> dbase.c:222: `_k' undeclared (first use in this function)
> dbase.c:222: `_v' undeclared (first use in this function)
> dbase.c:222: `_n' undeclared (first use in this function)
> dbase.c:228: `_o' undeclared (first use in this function)
> dbase.c: At top level:
> dbase.c:247: parse error before '*' token
> dbase.c: In function `print_set':
> dbase.c:253: `_c' undeclared (first use in this function)
> dbase.c:253: `_b' undeclared (first use in this function)
> dbase.c:253: `_l' undeclared (first use in this function)
> dbase.c:253: `_k' undeclared (first use in this function)
> dbase.c:253: `_v' undeclared (first use in this function)
> dbase.c:253: `_n' undeclared (first use in this function)
> dbase.c: In function `db_init':
> dbase.c:287: sizeof applied to an incomplete type
> dbase.c:292: sizeof applied to an incomplete type
> dbase.c:292: sizeof applied to an incomplete type
> dbase.c:292: sizeof applied to an incomplete type
> dbase.c:292: sizeof applied to an incomplete type
> dbase.c:292: sizeof applied to an incomplete type
> dbase.c:292: sizeof applied to an incomplete type
> dbase.c: In function `db_close':
> dbase.c:318: dereferencing pointer to incomplete type
> dbase.c:319: warning: implicit declaration of function `mysql_free_result'
> dbase.c:319: dereferencing pointer to incomplete type
> dbase.c: In function `get_result':
> dbase.c:346: dereferencing pointer to incomplete type
> dbase.c:346: warning: implicit declaration of function
> `mysql_store_result'
> dbase.c:346: dereferencing pointer to incomplete type
> dbase.c:347: dereferencing pointer to incomplete type
> dbase.c:348: warning: implicit declaration of function `mysql_field_count'
> dbase.c:348: dereferencing pointer to incomplete type
> dbase.c:353: dereferencing pointer to incomplete type
> dbase.c:353: dereferencing pointer to incomplete type
> dbase.c:353: warning: format argument is not a pointer (arg 3)
> dbase.c:353: dereferencing pointer to incomplete type
> dbase.c:353: warning: format argument is not a pointer (arg 3)
> dbase.c:353: dereferencing pointer to incomplete type
> dbase.c:353: warning: format argument is not a pointer (arg 3)
> dbase.c:353: dereferencing pointer to incomplete type
> dbase.c:353: warning: format argument is not a pointer (arg 3)
> dbase.c:353: dereferencing pointer to incomplete type
> dbase.c:353: warning: format argument is not a pointer (arg 3)
> dbase.c:353: dereferencing pointer to incomplete type
> dbase.c:353: warning: format argument is not a pointer (arg 3)
> dbase.c:353: dereferencing pointer to incomplete type
> dbase.c:353: warning: format argument is not a pointer (arg 3)
> dbase.c: In function `db_free_query':
> dbase.c:391: dereferencing pointer to incomplete type
> dbase.c:392: dereferencing pointer to incomplete type
> dbase.c: In function `db_query':
> dbase.c:428: dereferencing pointer to incomplete type
> dbase.c: In function `db_insert':
> dbase.c:484: dereferencing pointer to incomplete type
> dbase.c: In function `db_delete':
> dbase.c:516: dereferencing pointer to incomplete type
> dbase.c: In function `db_update':
> dbase.c:548: dereferencing pointer to incomplete type
> dbase.c:551: dereferencing pointer to incomplete type
> make[1]: *** [dbase.o] Error 1
> make[1]: Leaving directory `/ser-0.8.14/modules/mysql'
> /-------Original Message-------/
> /*From:*/ daniel(a)iptel.org <mailto:daniel@iptel.org>
> /*Date:*/ 08/02/04 18:28:48
> /*To:*/ Sean <mailto:u0085200@cc.ncu.edu.tw>
> /*Cc:*/ serusers(a)lists.iptel.org <mailto:serusers@lists.iptel.org>
> /*Subject:*/ Re: [Serusers] ser-0.8.14
> >From sip_router directory do: make modules modules=modules/mysql.
> You should get more detailed error messages, if something fails. Send
> them all to help you.
> Daniel
> On 8/2/2004 9:11 AM, Sean wrote:
> > when I install the ser-0.8.14, in /usr/local/lib/ser/modues/ didn't
> > hava mysql.so.
> > I try to make in /ser-0.8.14/modules/mysql
> > but had error.
> > .....
> > make: *** [dbase.o] Error 1
> > how to make modules in /ser-0.8.14/modules/mysql?
> > thanks.
> >
> >
> >
> >
> > <http://www.incredimail.com/index.asp?id=54475>
> >
> >------------------------------------------------------------------------
> >
> >_______________________________________________
> >Serusers mailing list
> >serusers(a)lists.iptel.org <mailto:gt;serusers@lists.iptel.org>
> >http://lists.iptel.org/mailman/listinfo/serusers
> >
> >
> .
>
>
>
>
> <http://www.incredimail.com/index.asp?id=54475>
thanks for your response
here is the main problem
because iam using 0.8.12 version iam using the
tm.patch
so when i wont apply tm.patch it runs finely
but when i apply the patch then tm.so gives the
problem
by these messages
0(12839) find_export: <t_on_reply> not found
0(12839) find_export: <t_on_reply> not found
0(12839) parse error (254,16-17): unknown command,
missing loadmodule?
0(12839) find_export: <t_relay> not found
0(12839) find_export: <t_relay> not found
0(12839) parse error (258,15-16): unknown command,
missing loadmodule?
iam trying to run the ser-0.8.14 but it gives the
segmentation fault
so what is the way to get cpl scripts to run with
the ser.
with regards
rama kanth
--- Rafael_Mor�n <rafaelm(a)tid.es> wrote:
> Your current Ser fails to start because it can't
> find the tm.so module.
> Remember not only to delete module names from the
> exclude section, but also
> to include them
> in the include section, and run make again.
> Copy the tm.so to
> "/usr/local/lib/ser/modules/tm.so", to make sure
> that ser
> finds it.
> Try again now, and remember to create the database
> tables if you use mysql
> or postgresql.
>
> You won't need to apply the patch if you use
> ser-0.8.14, but keep in mind
> that the db tables
> for 0.8.12 and 0.8.14 are NOT compatible, so you'll
> have to create tham
> again.
>
> I hope this helps.
> Regards,
> Rafa
>
> P.S.: my name is "Rafa" or "Rafael", not Rafel nor
> something like that.
>
> ----- Original Message -----
> From: "ser die" <serdiehard(a)yahoo.com>
> To: "Rafael_Mor�n" <rafaelm(a)tid.es>
> Sent: Monday, August 02, 2004 9:47 AM
> Subject: Re: cpl with ser-0.8.12
>
>
> > so the scenario is step by step process
> >
> > step 1:
> >
> > iam using currently ser-0.8.12 and it s working
> > properly
> >
> > except with cpl where when i run the patch with
> >
> > patch -p0<modules/cpl-c/tm.patch
> >
> >
>
*******************************************************
> >
> >
> > patching file modules/tm/h_table.c
> > patching file modules/tm/h_table.h
> > Hunk #1 succeeded at 190 (offset 1 line).
> > patching file modules/tm/t_fwd.c
> > patching file modules/tm/t_hooks.c
> > patching file modules/tm/t_hooks.h
> > patching file modules/tm/t_lookup.c
> > patching file modules/tm/t_reply.c
> > Hunk #3 FAILED at 437.
> > Hunk #4 FAILED at 462.
> > Hunk #5 succeeded at 653 (offset 16 lines).
> > Hunk #7 succeeded at 953 (offset 16 lines).
> > Hunk #9 succeeded at 1040 (offset 16 lines).
> > Hunk #11 succeeded at 1129 (offset 16 lines).
> > 2 out of 11 hunks FAILED -- saving rejects to file
> > modules/tm/t_reply.c.rej
> > patching file modules/tm/t_reply.h
> > patching file modules/tm/timer.c
> > patching file modules/tm/tm.c
> > patching file modules/tm/tm_load.c
> > patching file modules/tm/tm_load.h
> >
> >
> >
>
*******************************************************
> >
> > step2:
> >
> > and then changing in the makefile by removing the
> > cpl-c
> >
> >
> >
> > module name in the exclude modules.
> >
> > now my exlude modules are like this in the
> makefile
> >
> >
>
*******************************************************
> > exclude_modules?= cpl ext extcmd \
> >
> > postgres snmp \
> > im radius_acc
> radius_auth \
> >
> > jabber
> >
> >
> >
>
*******************************************************
> >
> > step 3:
> >
> > and then make again but it s not at all running
> the
> >
> > process giveng the error when i run the command
> ser
> >
> >
>
*******************************************************
> > 0(12455) ERROR: load_module: could not open module
> > </usr/local/lib/ser/modules/tm.so>: /usr/local/l
> > ib/ser/modules/tm.so: undefined symbol:
> > run_failure_handlers
> >
> > ----
> > ----
> >
> > 0(7327) find_export: <t_on_reply> not found
> > 0(7327) find_export: <t_on_reply> not found
> > 0(7327) parse error (254,16-17): unknown command,
> > missing loadmodule?
> >
> > 0(7327) find_export: <t_relay> not found
> > 0(7327) find_export: <t_relay> not found
> > 0(7327) parse error (258,15-16): unknown command,
> > missing loadmodule?
> >
> >
>
*******************************************************
> >
> > and my ser.cfg is like this
> >
> >
>
*******************************************************
> >
> > debug=8 # debug level (cmd line:
> > -dddddddddd)
> > fork=yes
> > log_stderror=yes # (cmd line: -E)
> >
> > /* Uncomment these lines to enter debugging mode
> > fork=no
> > log_stderror=yes
> > */
> >
> > 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"
> > fifo_mode=438
> > # ------------------ module loading
> > ----------------------------------
> >
> > # Uncomment this if you want to use SQL database
> > loadmodule "/usr/local/lib/ser/modules/mysql.so"
> > loadmodule "/usr/local/lib/ser/modules/exec.so"
> > loadmodule "/usr/local/lib/ser/modules/sl.so"
> > loadmodule "/usr/local/lib/ser/modules/tm.so"
> > loadmodule "/usr/local/lib/ser/modules/rr.so"
> > loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
> > loadmodule "/usr/local/lib/ser/modules/usrloc.so"
> > loadmodule
> "/usr/local/lib/ser/modules/registrar.so"
> > loadmodule "/usr/local/lib/ser/modules/textops.so"
> > loadmodule "/usr/local/lib/ser/modules/domain.so"
> > loadmodule "/usr/local/lib/ser/modules/cpl-c.so"
> >
> > # Uncomment this if you want digest authentication
> > # mysql.so must be loaded !
> > loadmodule "/usr/local/lib/ser/modules/auth.so"
> > loadmodule "/usr/local/lib/ser/modules/auth_db.so"
> > loadmodule "/usr/local/lib/ser/modules/acc.so"
> > # !! Nathelper
> > loadmodule
> "/usr/local/lib/ser/modules/nathelper.so"
> >
> > # ----------------- setting module-specific
> parameters
> >
> >
> > # -- usrloc params --
> >
> > #modparam("usrloc", "db_mode", 0)
> >
> > # Uncomment this if you want to use SQL database
> > # for persistent storage and comment the previous
> line
> > modparam("usrloc", "db_mode", 2)
> >
> > # -- auth params --
> > # Uncomment if you are using auth module
> > #
> > modparam("auth_db", "calculate_ha1", yes)
> > #
> > # If you set "calculate_ha1" parameter to yes
> (which
>
=== message truncated ===
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
when I install the ser-0.8.14, in /usr/local/lib/ser/modues/ didn't hava
mysql.so.
I try to make in /ser-0.8.14/modules/mysql
but had error.
.....
make: *** [dbase.o] Error 1
how to make modules in /ser-0.8.14/modules/mysql?
thanks.
Hi all ,
Was a resolution found for this? I am having the same problem - i
believe my options realm and default domain are all set correctly, but
when I look in the aliases table, each new entry is added with an alias
of whatever is set in my config.php.
Any ideas?
Many thanks in advance.
D
> Hi,
> is options realm and default_domain in your config.php set to the same
> value? If you didn't change automatic setting of this, it should be.
> So if it is right, can you look at sql table aliases? Is the column
> domain set correctly?
> Karel
cary at cary.net <http://lists.iptel.org/mailman/listinfo/serusers>
wrote:
> Dear All,
>
> I tried to setup SER with SerWeb, but in the new registration, the
aliases
> number not n+1, the number in the memory and the aliases table still
same as
> the number in the config.php, what's wrong?
>
> Thank You.
>
> Cary LEUNG
>
>
> _______________________________________________
> Serusers mailing list
> Serusers at iptel.org
<http://lists.iptel.org/mailman/listinfo/serusers>
> http://lists.iptel.org/mailman/listinfo/serusers
>
hi,
As i understand it would be virtually impossible to replay with proper
timestamp for certain request and with required ip, but nevetheless it
would be possible to fake required source_ip and in that case my patch
(posted earlier on this list) wouldn't help too. Adding source ip to nonce
would remove additional administrative burden, isn't it? Probably the only
advanatage of authorization by entering IP adresses separately would be
independance from any other encryption or authorization mechanisms which
could be used with SIP.
Antanas
On Sun, 1 Aug 2004, Jan Janak wrote:
> No, but I have this on my todo list. Currently it is possible to re-use
> credentials generated by user agent A also by user agent B provided that
> it can sniff the SIP messages and it is fast enough to send another
> message including the sniffed credentials. The credentials have limited
> lifetime (1 minute by default) so after 1 minute they cannot be re-used
> in other SIP messages.
>
> If you have two user agents connected to the same hub (so that they can
> see SIP messages of each other) then you can modify one of them to steal
> the calls to the other user agent using sniffed digest credentials.
>
> I am thinking about including the source IP address of the SIP message
> and some other header fields (Contact) into nonce to eliminate this
> weakness.
>
> Jan.
>
> On 28-07 15:00, zolia(a)z1sys.com wrote:
> > hello,
> >
> > is it possible to do source ip authentication besides normal
> > www_authorize() for every user account?. This, as i understand, should
> > prevent from intercepting credentials and later faking sip message to
> > bypass www_authorization ? Or maybe there are some other counter measures
> > against such fraud?
> >
> > Does src_ip comes directly from ip layer? If so, i could probably use this
> > to check with some external database (ie. ser subscriber)?
> >
> > Antanas
> > NTT
> >
> > _______________________________________________
> > Serusers mailing list
> > serusers(a)lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
>
Apologies Shakil for duplicating your response.
D
-----Original Message-----
From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org] On
Behalf Of Shakil Siddique
Sent: 02 August 2004 06:12
To: Jan Janak; CJ Benson
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] SER won't start: can't find PID file
Bad Configuration File. Check that.
Greetings !
--- Jan Janak <jan(a)iptel.org> wrote:
> "serctl start" starts ser, so you should not start it by hand. Make
sure
> that ser is not running, unlink the pid file and then type serctl
start.
>
> Jan.
>
> On 31-07 08:19, CJ Benson wrote:
> > Greetings,
> >
> > I'm having a problem I'm just can't seem to fix. I'm not a newbie to
> Linux,
> > but by the same token, I'm not a GURU either. I'm trying to set up
SER
> and
> > so far everything is going according to plan, except for one little
> problem.
> >
> > When trying to start SER I get the following message:
> >
> > Starting SER: cat: /var/run/ser.pid: No such file or directory.
> >
> > SO for fun I touched a file with that name in that directory to see
> what
> > would happen. I then get:
> >
> > Starting SER: PID file exists! (/var/run/ser.pid) already running?
> >
> > This is all obtained by running "serctl start". Prior to running I
> ran "ser
> > -ddd -P /var/run/ser.pid" then I run serctrl, but am left being
stuck
> in
> > this situation.
> >
> > Your help would me be appreciated.
> >
> > Cheers,
> > CJ
> >
> > _______________________________________________
> > Serusers mailing list
> > serusers(a)lists.iptel.org
> > http://lists.iptel.org/mailman/listinfo/serusers
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
>
__________________________________
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
http://promotions.yahoo.com/new_mail
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
Hey CJ,
This is probably an incorrect config file issue. Start off by making
sure you delete /var/run/ser.pid then try 'serctl start'. When you get
the error message, check your syslog (on redhat-based systems
/var/log/messages - you can make it easier by running '/var/log/messages
| tail' to see only the last 10 lines). With a bit of luck this will
point to which bit of your config is incorrect.
Hope it helps. Good luck!
Dave
-----Original Message-----
From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org] On
Behalf Of CJ Benson
Sent: 31 July 2004 15:20
To: serusers(a)lists.iptel.org
Subject: [Serusers] SER won't start: can't find PID file
Greetings,
I'm having a problem I'm just can't seem to fix. I'm not a newbie to
Linux,
but by the same token, I'm not a GURU either. I'm trying to set up SER
and
so far everything is going according to plan, except for one little
problem.
When trying to start SER I get the following message:
Starting SER: cat: /var/run/ser.pid: No such file or directory.
SO for fun I touched a file with that name in that directory to see what
would happen. I then get:
Starting SER: PID file exists! (/var/run/ser.pid) already running?
This is all obtained by running "serctl start". Prior to running I ran
"ser
-ddd -P /var/run/ser.pid" then I run serctrl, but am left being stuck in
this situation.
Your help would me be appreciated.
Cheers,
CJ
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
Greetings,
I'm having a problem I'm just can't seem to fix. I'm not a newbie to Linux,
but by the same token, I'm not a GURU either. I'm trying to set up SER and
so far everything is going according to plan, except for one little problem.
When trying to start SER I get the following message:
Starting SER: cat: /var/run/ser.pid: No such file or directory.
SO for fun I touched a file with that name in that directory to see what
would happen. I then get:
Starting SER: PID file exists! (/var/run/ser.pid) already running?
This is all obtained by running "serctl start". Prior to running I ran "ser
-ddd -P /var/run/ser.pid" then I run serctrl, but am left being stuck in
this situation.
Your help would me be appreciated.
Cheers,
CJ
hello friends
iam using currently ser-0.8.12 and it s working
properly
except with cpl where when i run the patch with
patch -p0<modules/cpl-c/tm.patch
*******************************************************
patching file modules/tm/h_table.c
patching file modules/tm/h_table.h
Hunk #1 succeeded at 190 (offset 1 line).
patching file modules/tm/t_fwd.c
patching file modules/tm/t_hooks.c
patching file modules/tm/t_hooks.h
patching file modules/tm/t_lookup.c
patching file modules/tm/t_reply.c
Hunk #3 FAILED at 437.
Hunk #4 FAILED at 462.
Hunk #5 succeeded at 653 (offset 16 lines).
Hunk #7 succeeded at 953 (offset 16 lines).
Hunk #9 succeeded at 1040 (offset 16 lines).
Hunk #11 succeeded at 1129 (offset 16 lines).
2 out of 11 hunks FAILED -- saving rejects to file
modules/tm/t_reply.c.rej
patching file modules/tm/t_reply.h
patching file modules/tm/timer.c
patching file modules/tm/tm.c
patching file modules/tm/tm_load.c
patching file modules/tm/tm_load.h
*******************************************************
and then changing in the makefile by removing the
cpl-c
module name in the exclude modules.
now my exlude modules are like this in the makefile
*******************************************************
exclude_modules?= cpl ext extcmd \
postgres snmp \
im radius_acc radius_auth \
jabber
*******************************************************
and then make again but it s not at all running the
process giveng the error when i run the command ser
*******************************************************
0(7327) find_export: <t_on_reply> not found
0(7327) find_export: <t_on_reply> not found
0(7327) parse error (254,16-17): unknown command,
missing loadmodule?
0(7327) find_export: <t_relay> not found
0(7327) find_export: <t_relay> not found
0(7327) parse error (258,15-16): unknown command,
missing loadmodule?
*******************************************************
and my ser.cfg is like this
*******************************************************
debug=8 # debug level (cmd line:
-dddddddddd)
fork=yes
log_stderror=yes # (cmd line: -E)
/* Uncomment these lines to enter debugging mode
fork=no
log_stderror=yes
*/
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"
fifo_mode=438
# ------------------ module loading
----------------------------------
# Uncomment this if you want to use SQL database
loadmodule "/usr/local/lib/ser/modules/mysql.so"
loadmodule "/usr/local/lib/ser/modules/exec.so"
loadmodule "/usr/local/lib/ser/modules/sl.so"
loadmodule "/usr/local/lib/ser/modules/tm.so"
loadmodule "/usr/local/lib/ser/modules/rr.so"
loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
loadmodule "/usr/local/lib/ser/modules/usrloc.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
loadmodule "/usr/local/lib/ser/modules/domain.so"
loadmodule "/usr/local/lib/ser/modules/cpl-c.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
loadmodule "/usr/local/lib/ser/modules/acc.so"
# !! Nathelper
loadmodule "/usr/local/lib/ser/modules/nathelper.so"
# ----------------- setting module-specific parameters
# -- usrloc params --
#modparam("usrloc", "db_mode", 0)
# Uncomment this if you want to use SQL database
# for persistent storage and comment the previous line
modparam("usrloc", "db_mode", 2)
# -- auth params --
# Uncomment if you are using auth module
#
modparam("auth_db", "calculate_ha1", yes)
#
# If you set "calculate_ha1" parameter to yes (which
true in this config),
# uncomment also the following parameter)
#
modparam("auth_db", "password_column", "password")
modparam("usrloc","db_url","mysql://ser:heslo@127.0.0.1:3306/ser")
modparam("acc", "log_level", 1)
modparam("acc", "log_flag", 1)
modparam("acc", "db_flag", 1)
modparam("acc", "db_missed_flag", 2)
modparam("acc", "log_fmt", "miocfst")
modparam("acc", "failed_transactions" ,1)
#modparam("acc", "radius_flag", 1)
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
# !! Nathelper
modparam("registrar", "nat_flag", 6)
modparam("nathelper", "natping_interval", 30) # Ping
interval 30 s
modparam("nathelper", "ping_nated_only", 1) # Ping
only clients behind NAT
# ------------------------- request routing logic
-------------------
# main routing logic
route{
# initial sanity checks -- messages with
# max_forwards==0, or excessively long
requests
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483","Too Many Hops");
break;
};
if (msg:len >= max_len ) {
sl_send_reply("513", "Message too
big");
break;
};
# !! Nathelper
# Special handling for NATed clients; first,
NAT test is
# executed: it looks for via!=received and
RFC1918 addresses
# in Contact (may fail if line-folding is
used); also,
# the received test should, if completed,
should check all
# vias for rpesence of received
if (nat_uac_test("3")) {
# Allow RR-ed requests, as these may
indicate that
# a NAT-enabled proxy takes care of
it; unless it is
# a REGISTER
if (method == "REGISTER" || !
search("^Record-Route:")) {
log("LOG: Someone trying to
register from private IP, rewriting\n");
# This will work only for user
agents that support symmetric
# communication. We tested quite
many of them and majority is
# smart enough to be symmetric. In
some phones it takes a configuration
# option. With Cisco 7960, it is
called NAT_Enable=Yes, with kphone it is
# called "symmetric media" and
"symmetric signalling".
fix_nated_contact(); # Rewrite
contact with source IP of signalling
if (method == "INVITE") {
fix_nated_sdp("1"); # Add
direction=active to SDP
};
force_rport(); # Add rport
parameter to topmost Via
setflag(6); # Mark as NATed
};
};
setflag(1);
setflag(2);
# we record-route all messages -- to make sure
that
# subsequent messages will go through our
proxy; that's
# particularly good if upstream and downstream
entities
# use different transport protocol
if (!method=="REGISTER") record_route();
# subsequent messages withing a dialog should
take the
# path determined by record-routing
if (loose_route()) {
# mark routing logic in request
append_hf("P-hint: rr-enforced\r\n");
route(1);
break;
};
if (!uri==myself) {
# mark routing logic in request
append_hf("P-hint: outbound\r\n");
route(1);
break;
};
# if the request is for other domain use
UsrLoc
# (in case, it does not work, use the
following command
# with proper names and addresses in it)
# if (uri==myself) {
#
# if (method=="REGISTER") {
if ( method == "REGISTER" ||
method=="INVITE" || method=="BYE" || method ==
"CANCEL" )
{
# save messages in mysql
for CDRTool
exec_msg("/usr/local/etc/ser/sertrace.py; exit 1");
};
#end of cdrtool
# Uncomment this if you want to use digest
authentication
if (uri==myself)
{
if
(method=="REGISTER")
{
if
(!www_authorize("server.pol.net.in", "subscriber")) {
www_challenge("server.pol.net.in", "0");
break;
};
save("location");
break;
};
if (method=="INVITE")
{
log(1, "INVITE\n");
setflag(1); /* set for
accounting (the same value
as in log_flag!) */
};
if (method=="MESSAGE")
{
log(1, "MESSAGE\n");
setflag(1); /* set for
accounting (the same value
as in log_flag!) */
};
if ( method=="BYE" || method=="CANCEL" )
{
log (1, "BYE or CANCEL\n");
setflag(1);
};
lookup("aliases");
if (!uri==myself) {
append_hf("P-hint: outbound
alias\r\n");
route(1);
break;
};
# native SIP destinations are handled
using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not
Found");
break;
};
};
append_hf("P-hint: usrloc applied\r\n");
route(1);
}
route[1]
{
# !! Nathelper
if
(uri=~"[@:](192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.)"
&& !search("^Route:")){
sl_send_reply("479", "We don't forward to
private IP addresses");
break;
};
# if client or server know to be behind a NAT,
enable relay
if (isflagset(6)) {
force_rtp_proxy();
};
# NAT processing of replies; apply to all
transactions (for example,
# re-INVITEs from public to private UA are
hard to identify as
# NATed at the moment of request processing);
look at replies
t_on_reply("1");
# send it out now; use stateful forwarding as
it works reliably
# even for UDP2TCP
if (!t_relay()) {
sl_reply_error();
};
}
# !! Nathelper
onreply_route[1] {
# NATed transaction ?
if (isflagset(6) && status =~ "(183)|2[0-9][0-9]")
{
fix_nated_contact();
force_rtp_proxy();
# otherwise, is it a transaction behind a NAT and
we did not
# know at time of request processing ? (RFC1918
contacts)
} else if (nat_uac_test("1")) {
fix_nated_contact();
};
}
*******************************************************
does this patch problem has been sorted out in
the ser-0.8.14 version can we directly implement the
cpl-c option?
your help will be greatly appreciated
with regards
serdiehard
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail