Dear all !!
Here I have some questions in using the SER to configure my network environment.
First,I would ask you how to do the registration process from the UA to SER.
I have used serctl script to add some user account along with password and email in my database(mysql)
What I have done is like that "serctl add bob 12345 bob@IP address [my server's IP address(public)]
After that,when I keyin "mysql" and enter the ser database,I can see the user account what I add just exist.
Then, I try to use the "SipSet" which is a user agent developed and provided by "vovida.org" to set some
configuration parameters which include User Name , Password, SIP Proxy Server,etc in order to make a phone
call to other users, but it seems I can't logon my ser which can be observed by using "serctl monitor" showing failures
and "SipSet" user agent log file.
In this log file,it says that the UA can't find the the registration server and try again to proxy server instead which is
still can't be found. But I feel so strange that the "serctl monitor" showing the ser is on although have some failures
messages received from UA. So,why the UA's log file says that the server can't find ser?
So,according to the above description and problems.
I would like to ask some questions to all and would be grateful for your help.
1.Can I use "SipSet" user agent as the UA to make calls from one to another through ser?
Have any one used "SipSet" before.
2.How to do registration process from UA to ser?
Also,what I have configured ser to manage user account and password above to let UA registers to ser is correct?
If it is wrong,please tell me how to use serctl script to manage registration process?
Or I just must need serweb to manage registration process?
And how to change ser proxy mode to registrator mode and also inversely?
3. Can I let the SIP URL to be the format as username@IP address ?
Or I must set it as username@domain name
^^^^^^^^^^^^^^ <------ like "iptel.org"
4. I have thought that is it the database I have created have some problems??
Can somebody tell me what the relationship between mysql and ser-mysql??
PS. I have installed packages "mysql , mysql-bench, mysql-client, mysql-devel, mysql-shared"
and ser-mysql from iptel.org's web in my machine.
I will be grateful for your reply and help.
Thank you all very much !!
Best regards !!
Hello All,
I made the changes in config.php, pointed from the Apache to it.
But still its not working ,,,
I want to be sure of the changes to be made in the config.php
May any one please ,,, point them out for me
Thank you
regards
rami
I'm experiencing some strange behaviour on SER.
When an enpoint sends an INVITE and after some 180 Ringing
messages cancels the call, SER forwards the CANCEL message to the
destination and replies with a 200 Cancelling message.
(this seems to be OK up to this point)
20ms after the Cancelling message was sent, SER sends a 487
Request cancelled message twice with 80ms of difference
(any ide of why this is done?)
Part newbie error, part real problem. The config directory isn't in
/etc/ser, but /usr/local/etc/ser and the config file I thought it
was using, it wasn't.
The second problem is I don't have a copy of mysql.h on my system,
which I'll take to be part of the MySQL development headers, as
included in con_mysql.h
Dan
-----Original Message-----
From: Nils Ohlmeier [mailto:nils@iptel.org]
Sent: Sunday, May 25, 2003 12:33 PM
To: Dan Austin
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] Latest tarball...
Hi,
On Sunday 25 May 2003 21:11, Dan Austin wrote:
> I'm not on the Ser Developers list, so if this is way out of place, I
> apologize.
yes this is the wrong list for CVS snapshots :-)
> I just downloaded the latest tarball (5/25), backed up my original setup
> and compiled/installed.
>
> The Install seemed to go OK. The compile complained about
> Makefile.rules:77 missing directory for just about every module. That was
> the extent of the errors, and the compile finished.
This is normal. It complains about missing dependency files. But this files
are generated right after the error message.
> When trying to start Ser, I am getting this error:
> May 25 10:34:00 gateway ser: parse error (74,19-20): unknown command,
> missing lo admodule?
> May 25 10:34:00 gateway ser: INFO: signal 15 received
We can not say what is wrong without the config file. Please ether send us
your config file, or take a look at your config file at line 74. Their is
something wrong.
> I'm using the sample config, with MySQL support enabled.
>
> Any pointers to what I screwed up?
If you read the included documentation (INSTALL) you should be aware that the
database and config files from version 0.8.10 are not compatible with the CVS
snapshot (upcomming 0.8.11). Their are modules splitted up, some commands are
obsoleted, and you have to update your database as well.
Regards
Nils Ohlmeier
I'm not on the Ser Developers list, so if this is way out of place, I apologize.
I just downloaded the latest tarball (5/25), backed up my original setup and
compiled/installed.
The Install seemed to go OK. The compile complained about Makefile.rules:77
missing directory for just about every module. That was the extent of the errors,
and the compile finished.
When trying to start Ser, I am getting this error:
May 25 10:34:00 gateway ser: parse error (74,19-20): unknown command, missing lo
admodule?
May 25 10:34:00 gateway ser: INFO: signal 15 received
I'm using the sample config, with MySQL support enabled.
Any pointers to what I screwed up?
Dan
Hi,
I have some 7960 phones all behind Firewalls. I came up with a semi-elligent DynamicDNS hack to solve NAT problems, but it had a variety of problems -
I'm now looking at using the 7960 command:
nat_received_processing: 1
Any one with any experience using it? According the Admin manual for the 7960:
Use 0 to disable NAT received processing and 1 to enable
NAT received processing. Default is 0.
If nat_received_processing is enabled, and received= tag
is in the Via header of the 200 OK response from a
REGISTER, the IP address in the received= tag is used
instead of the nat_address in the Contact header. If this
switch occurs, the phone unregisters the old IP address
and reregisters with the new IP address.
I have this enabled, and I can see the received= flag SER is sending back upon registration, but the 7960 seems to totally ignore it? Any ideas?
Sean Watkins
Ok..I have setup SER according to the guide on the iptel site.
Here is a copy of what's in my ser.cfg
_________________________________________
#
# $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"
# ------------------ module loading ----------------------------------
# Uncomment this if you want to use SQL database
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"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "//usr/lib/ser/modules/auth.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", "secret", "alsdkhglaksdhfkloiwr")
modparam("auth", "calculate_ha1", yes)
#
# If you set "calculate_ha1" parameter to yes (which true in this
config),
# uncomment also the following parameter)
#
modparam("auth", "password_column", "password")
# ------------------------- 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 (len_gt( max_len )) {
sl_send_reply("513", "Message too big");
break;
};
# Do strict routing if pre-loaded route headers present
rewriteFromRoute();
# 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=~"computergeeks.hopto.org") {
if (method=="REGISTER") {
# Uncomment this if you want to use digest authentication
if (!www_authorize("computergeeks.hopto.org", "subscriber")) {
www_challenge("computergeeks.hopto.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;
};
};
# forward to current uri now
if (!t_relay()) {
sl_reply_error();
};
}
_________________________________________________
The modules are all where they say they are but when I try to start SER
I get this in my messages log file
May 21 18:58:45 computergeeks ser: ser startup succeeded
May 21 18:58:45 computergeeks /usr/sbin/ser[13089]: connect_db(): Can't
connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
(2)
May 21 18:58:45 computergeeks /usr/sbin/ser[13089]: db_init(): Error
while trying to connect database
May 21 18:58:45 computergeeks /usr/sbin/ser[13089]: mod_init(): Error
while connecting database
May 21 18:58:45 computergeeks /usr/sbin/ser[13089]: init_modules():
Error while initializing module usrloc
Can someone please tell me what I'm doing wrong? I've searched all over
the net for information on this...I'm sure it's something simple..but
I'm overlooking it.
If I disable the Mysql integration is works perfect, so I'm thinking it
has something to do with the mysql.so module?!?
Thanks
Todd
Looking at the serctl rm command the followin shell
script is found:
rm)
if [ $# -ne 2 ] ; then
usage
exit 1
fi
shift
prompt_pw
is_user $1
if [ $? -ne 0 ] ; then
echo non-existent user
exit 1
fi
QUERY="delete from $TABLE where
$TABLE.$SUBSCRIBER_COLUMN='$1'"
sql_query "$QUERY"
$0 acl revoke $1 > /dev/null 2>&1
$0 dul $1 > /dev/null 2>&1
;;
What does $0 dul $1... do?
Anybody knows?
Alejandro
Hello,
could you give me a bit of further information about the module pa and
nathelper? What can they do and what can't they do? and how do they work?
And the corresponding rfcs or drafts?
Thanks
yang