That worked, however, SER doesn't answer any sign-ins. There has to
something very easy here where a person signed-in isn't seeing anyone else
signed in. Any thoughts?
Scott Morris
Senior Network Engineer
ORAU / ORISE
865-576-4672
'B' Schedule
-----Original Message-----
From: Andrei Pelinescu-Onciul
[mailto:pelinescu-onciul@fokus.fraunhofer.de]
Sent: Tuesday, July 08, 2003 3:16 PM
To: Morris, Scott
Cc: 'serusers(a)lists.iptel.org'
Subject: Re: [Serusers] SER installation, allows signin, but can't see
anyone else
On Jul 08, 2003 at 13:34, Morris, Scott <MorrisS(a)orau.gov> wrote:
> I have 0.8.11pre29 installed on Redhat 8.0. Also have MySQL installed and
> working, so my users have been declared "persistant".
>
> I can sign-in, but cannot see any of my contacts that are signed-in. If I
> go to the server, I can see the list of those signed-in. I tried to
change
> the ser.cfg file for debugging, but then SER won't start up, and the
server
> hangs at "Starting SER". I can't go any further at the console, I have
ssh
> in and kill then process then reboot.
If you are starting ser at boot, don't set dont_fork=1 in the cfg. file.
This will stop ser from becoming a daemon and detaching and it will block
your booting process (on most distributions).
dont_fork is only for debugging, which means manually starting ser, from
a terminal.
Andrei
Hi!
I have tried ser + nathelper + rtpproxy:
Following configuration:
Clients inside NAT: IP 192.168.0.x
Windows Messenger
NAT-Box: old mandrake linux (2.2 kernel) + ser (cvs from 7.7.03) + rtpproxy
(08-Jul-2003).
local interface: 192.168.0.1
global interface: mydomain.dyndns.org
ser and the rtpproxy are running. The clients register at ser
(sip:klaus@mydomain.dyndns.org).
1. I can receive incoming calls (signaling and rtp works fine). But in the
outgoing messages, ser adds a via header with the local IP address
(192.168.0.1) instead of the global IP address.
How can I configure this in ser.cfg?
2. The rtpproxy starts relaying after RTP packets from both sides are
received. That causes problems if the clients use silence suppression (like
Messenger):
I call my friend (I am quiet, so no RTP packets will be sent).... the friend
answers: "Hello!" ... both the rtpproxy doesn't relay, so I don't answer
.... my friend again "HELLO" ... the rtpproxy still doesn'relay, so I don't
answer..... and so on.
So, I suggest the rtpproxy should start relaying immediately.
regards,
Klaus
my ser.cfg (the default cfg file + the routing from the nathelper_rtpp.cfg):
--------------------------------------------------
#
# $Id: ser.cfg,v 1.21 2003/06/04 13:47:36 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)
/* Uncomment these lines to enter debugging mode
debug=7
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"
alias=mydomain.dyndns.org
# ------------------ 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/nathelper.so"
loadmodule "/usr/local/lib/ser/modules/textops.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"
# 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"
# ----------------- 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")
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
# ------------------------- 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 (len_gt( max_len )) {
sl_send_reply("513", "Message too big");
break;
};
# 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
record_route();
# loose-route processing
if (loose_route()) {
t_relay();
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") {
# Uncomment this if you want to use digest authentication
# if (!www_authorize("iptel.org", "subscriber")) {
# www_challenge("iptel.org", "0");
# break;
# };
save("location");
break;
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
#inserted by klaus
if (method=="INVITE") {
record_route();
force_rtp_proxy();
/* set up reply processing */
t_on_reply("1");
};
# forward to current uri now; use stateful forwarding; that
# works reliably even if we forward from TCP to UDP
if (!t_relay()) {
sl_reply_error();
};
}
#inserted by klaus
# all incoming replies for t_onrepli-ed transactions enter here
onreply_route[1] {
if (status=~"2[0-9][0-9]")
force_rtp_proxy();
}
Hello all !
I would like to change the time zone in time column in acc table
in database ser. Nowaydays it is a UTC(GMT)
Field timestamp in this same table is in my local zone CET
Is some way to change it ? Some parameter in modules
included in ser.cfg (acc.so) ?
Greetings
Andrzej Radke
I have 0.8.11pre29 installed on Redhat 8.0. Also have MySQL installed and
working, so my users have been declared "persistant".
I can sign-in, but cannot see any of my contacts that are signed-in. If I
go to the server, I can see the list of those signed-in. I tried to change
the ser.cfg file for debugging, but then SER won't start up, and the server
hangs at "Starting SER". I can't go any further at the console, I have ssh
in and kill then process then reboot.
Scott Morris
Senior Network Engineer
ORAU / ORISE
865-576-4672
'B' Schedule
Andrei,
thanks very much! I have now taken Jiri's advice and use the textops
package to add the header.
However, in the package, I'm calling append_hf with the message and a
char* which is the new header. From the look of it, it seems that
append_hf should call str_fixup for the char*. This does not seem to
happen. I included some debug messages and str_fixup is not called.
Thus, the length of the string in append_hf_helper is just garbage. I
have included an explicit call to str_fixup in append_hf and then
everything works fine. I'm not sure how exactly the cmd_export_t
structure is working - for append_hf it lists str_fixup.
Thanks again for your help!
Mario
Andrei Pelinescu-Onciul wrote:
> On Jul 07, 2003 at 16:30, Mario Kolberg <mko(a)cs.stir.ac.uk> wrote:
>
>>Andrei,
>>
>>thanks for the hint on the null-terminated headers! I removed the null
>>termination and now I get a diffrent behaviour which depends on the
>>length of the header added. I only manage a single register message.
>>Either the ua (kphone) receives a reply or not - this depends on the
>>length of the header. But in any case ser dies afterwards.
>
>
> There is a bug in the pscon module (this is yours isn't it?):
> psconn.c line 138-139:
> nheader = pkg_malloc(strlen(test));$
> strcpy(nheader, test);$
>
> You allocate strlen(test) but you copy in it strlen(test)+1 (strcpy
> copies also \0, and strlen returns the lenght without \0).
>
> This is caught by ser mem. debug code (ser by default is compiled with a
> lot of debugging checks). ser malloc debug finds the end of a fragment
> overriten, prints a BUG: message in the log and aborts() (to generate a
> core).
>
> This is how I found it:
> grep " BUG:" ser_crash_header
> =>
> 5(3124) BUG: qm_*: prev. fragm. tail overwritten(c0c0c000, abcdefed)[0x80be7c8:0x80be7e0]!
>
> It sais previous fragment, so I search for and address less than
> 0x80be7c8.
>
> grep 0x80be ser_crash_header
> => several lines:
> [...]
> 5(3124) 162. N address=0x80be630 frag=0x80be618 size=32
> 5(3124) 163. N address=0x80be680 frag=0x80be668 size=32
> 5(3124) 164. N address=0x80be6d0 frag=0x80be6b8 size=32
> 5(3124) 165. N address=0x80be720 frag=0x80be708 size=144
>
> => our offending fragment is 0x80be708
>
> grep -A 2 0x80be708 ser_crash_header
> =>
> 5(3124) 165. N address=0x80be720 frag=0x80be708 size=144
> 5(3124) alloc'd from pscon.c: exec_pol(138)
> 5(3124) start check=f0f0f0f0, end check= c0c0c000, abcdefed
>
> (as you can see it overwrites one of the end check magic numbers with
> one extra 0: c0c0c000 instead of c0c0c0c0).
>
> BTW: that's what all those memory dumps in the logs are good for (and
> for detecting memory leaks).
>
>
> Andrei
>
--
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.
I would like to get more information on accounting with SER.
Ok, I followed the documentation about accounting but it doesn't give enough information about how to retrieve the accounting information. It just says that Reports are by DEFAULT sent to the syslog facility. Where is that syslog? How do I retreive that information? Is it possible to put that information in the MySQL database? How?
That is by DEFAULT; so, is it possible to change that default location?
Some gurus will realize how NEWBIE I am in the Linux World.
Please help me.
Thanks,
__________________________________
NZEYIMANA Emery Fabrice
NEFA Computing Services, Inc.
P.O. Box 5078 Kigali
Office Phone: +250-51 11 06
Office Fax: +250-50 15 19
Mobile: +250-08517768
Email: dg(a)nefacomp.net
http://www.nefacomp.net/
While trying to use the command for adding an alias, the computer tells me that the aliases table was not found.
But I can see the aliases table in the database.
What do you think might be wrong?
Thanks,
__________________________________
NZEYIMANA Emery Fabrice
NEFA Computing Services, Inc.
P.O. Box 5078 Kigali
Office Phone: +250-51 11 06
Office Fax: +250-50 15 19
Mobile: +250-08517768
Email: dg(a)nefacomp.net
http://www.nefacomp.net/