hi
can somebody tell whats wrong with my cfg , as i can not make/recieve calls now..seems i have played too much it and now m confused as to what went wrong and where
#
# ----------- global configuration parameters ------------------------
debug=9 # debug level (cmd line: -dddddddddd)
fork=no
log_stderror=yes # (cmd line: -E)
listen=localhost
/* 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"
# ------------------ 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/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/uri.so"
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"
loadmodule "/usr/local/lib/ser/modules/auth_radius.so"
loadmodule "/usr/local/lib/ser/modules/group_radius.so"
# ----------------- setting module-specific parameters ---------------
# -- usrloc params --
modparam("usrloc", "db_mode", 2)
modparam("auth_radius", "radius_config","/usr/local/etc/radiusclient/radiusclient.conf")
#modparam("auth_radius", "service_type", 15)
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
modparam("acc", "log_level", 1)
modparam("acc", "radius_flag", 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 (msg:len > 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)
{
lookup("aliases");
if (method=="REGISTER") {
log(1, "REGISTER: Authenticating user\n");
if (!radius_www_authorize("")) {
log(1, "REGISTER: challenging user\n");
www_challenge("", "0");
break;
};
save("location");
break;
};
##########################################################################################################
if (uri=~"^sip:44[127][0-9]+@.*")
{
if (rewritehostport("pstnrouter:5060"))
{
if (!t_relay())
{
sl_reply_error();
};
}
break;
}
else if (uri=~"^sip:01[0-9]+@.*")
{
if (!t_relay())
{
sl_reply_error();
};
break;
};
# account completed transactions via syslog
setflag(1);
}
###############################################################################################################
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);
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
if (!t_relay()) {
sl_reply_error();
break;
};
}
There is no another REGISTER. But Windows Messenger says :
"Signing in to Communications failure because the service is
temporarily unavailable"
Mirek
________________________________________________________________________________
OBCHODNÍ-DŮM.cz: domácí spotřebiče a elektronika za nízké ceny, s pohodlnou dopravou až do domu, klidně i večer. Objednávky i telefonicky.
www.OBCHODNI-DUM.cz
Please check the ser.cfg file below for RADIUS authentication. I am
getting one error. Of course, even after fixing the error, that's not to
say I have it configured properly for RADIUS to work.
Scott Morris
Enterprise Network Engineer
DOE - ORAU / ORISE
865-576-4672
#
# $Id: ser.cfg,v 1.21.4.1 2003/11/10 15:35:15 andrei 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"
# ------------------ 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"
#loadmodule "/usr/lib/ser/modules/auth_db.so"
loadmodule "/usr/lib/ser/modules/auth_radius.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("auth_radius", "service_type", 15)
modparam("auth_radius", "radius_config",
"/usr/local/etc/radiusclient/radiusclie
nt.conf")
# -- 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 ( msg:len > 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 (!radius_www_authorize("orau.gov", "subscriber"))
{
www_challenge("orau.gov", "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; use stateful forwarding; that
# works reliably even if we forward from TCP to UDP
if (!t_relay()) {
sl_reply_error();
};
}
Hello 'serusers,
I would love a quick hint ...
what is the difference between www_authorize and proxy_authorize ?
I heard that the second is to prefer, but in many examples that I
used for my config I have seen the first ...
Tnx !
--
Best regards,
Alessio mailto:alessiof@interconnessioni.it
Hello all. I am trying to set up ser to act as a simple sip relay. I have
found a couple of config files that I have tried, but none seem to load
without errors. I narrowed it down to where they call t_relay_to, so I
created the following test config.
loadmodule "/usr/lib/ser/modules/tm.so"
route {
t_relay_to("192.168.1.11", "5060");
}
It too fails to run, and this is the message I am seeing in syslog.
Feb 12 10:22:48 ratbert ser: parse error (3,44-45): unknown command, missing
loadmodule?
I am totally stumped on this issue. Any help would be greatly appreciated.
Thanks,
B. J.
Thanks for answer,
I have repaired my configuration and now I can connect to SER server.
But I have problem with digest authentication. I have created test domain "ipt",
SIP_DOMAIN variable is set to "debtest.ipt". When I try to login as my
test user "abc(a)debtest.ipt" with passwd "abc" I got 401 Unauthorized.
(I'm using Windows messenger 4.6)
Here is my ser.cfg file:
--------------------------------------------------------------------
log_stderror=no # (cmd line: -E)
debug=3
fork=yes
listen=10.1.22.237
listen=127.0.0.1
check_via=no # (cmd. line: -v)
dns=no # (cmd. line: -r)
rev_dns=no # (cmd. line: -R)
fifo="/tmp/ser_fifo"
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/auth.so"
loadmodule "/usr/lib/ser/modules/auth_db.so"
modparam("usrloc", "db_mode", 2)
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
modparam("rr", "enable_full_lr", 1)
# 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;
};
record_route();
# loose-route processing
if (loose_route()) {
t_relay();
break;
};
if (uri==myself) {
if (method=="REGISTER") {
if (!www_authorize("debtest.ipt", "subscriber")) {
www_challenge("debtest.ipt", "0");
break;
};
save("location");
break;
};
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
if (!t_relay()) {
sl_reply_error();
};
}
--------------------------------------------------------------------
And here is output from ngrep:
--------------------------------------------------------------------
#
U 10.1.22.235:1603 -> 10.1.22.237:5060
REGISTER sip:debtest.ipt SIP/2.0..Via: SIP/2.0/UDP 10.1.22.235:7455..Max-Fo
rwards: 70..From: <sip:abc@debtest.ipt>;tag=dcdbd44febe84f4696edd53145a3d53
9;epid=0f021563db..To: <sip:abc@debtest.ipt>..Call-ID: 6236b0275a2940cc8ce3
a1001f3bdf3a@10.1.22.235..CSeq: 1 REGISTER..Contact: <sip:10.1.22.235:7455>
;methods="INVITE, MESSAGE, INFO, SUBSCRIBE, OPTIONS, BYE, CANCEL, NOTIFY, A
CK, REFER"..User-Agent: RTC/1.2.4949..Event: registration..Allow-Events: pr
esence..Content-Length: 0....
#
U 10.1.22.237:5060 -> 10.1.22.235:7455
SIP/2.0 401 Unauthorized..Via: SIP/2.0/UDP 10.1.22.235:7455..From: <sip:abc
@debtest.ipt>;tag=dcdbd44febe84f4696edd53145a3d539;epid=0f021563db..To: <si
p:abc@debtest.ipt>;tag=33a7c77b78ad137e35158c65143a88ce.c46c..Call-ID: 6236
b0275a2940cc8ce3a1001f3bdf3a@10.1.22.235..CSeq: 1 REGISTER..WWW-Authenticat
e: Digest realm="debtest.ipt", nonce="402b702efe807eba708cf8f1cc71dd66b35ec
80e"..Server: Sip EXpress router (0.8.12 (i386/linux))..Content-Length: 0..
Warning: 392 10.1.22.237:5060 "Noisy feedback tells: pid=1598 req_src_ip=1
0.1.22.235 req_src_port=1603 in_uri=sip:debtest.ipt out_uri=sip:debtest.ipt
via_cnt==1"....
exit
2 received, 0 dropped
--------------------------------------------------------------------
I have been trying all this day to configure it but I'm not able to solve it...
Thanks
Mirek
________________________________________________________________________________
OBCHODNÍ-DŮM.cz: domácí spotřebiče a elektronika za nízké ceny, s pohodlnou dopravou až do domu, klidně i večer. Objednávky i telefonicky.
www.OBCHODNI-DUM.cz
Hi bogdan,
Thats it. It work the way we need with the location tag.
Thanks,
Toni
-----Original Message-----
From: Bogdan-Andrei IANCU [mailto:iancu@fokus.fraunhofer.de]
Sent: quinta-feira, 12 de Fevereiro de 2004 15:12
To: Toni Barata
Cc: 'serusers(a)lists.iptel.org'
Subject: Re: [Serusers] CPL
Hi Toni,
the simplest way is by adding in location set the new uri (via location
or lookup tag) and after that doing a proxy.
Best regards,
Bogdan
Toni Barata wrote:
> Hello Bogdan,
>
> How can we do a "rewriteuri" in a CPL way?
>
> Best regards,
> Toni
>
Hello Bogdan,
How can we do a "rewriteuri" in a CPL way?
Best regards,
Toni
-----Original Message-----
From: Bogdan-Andrei IANCU [mailto:iancu@fokus.fraunhofer.de]
Sent: quarta-feira, 11 de Fevereiro de 2004 9:16
To: serusers(a)lists.iptel.org
Subject: Re: [Serusers] CPL tags problem
> Hi Bogdan,
>
> You are right about the lookup issue.
> Now the script is uploaded successfully.
>
> Many thanks,
> Toni
>
>
> -----Original Message-----
> From: Bogdan-Andrei IANCU [mailto:iancu@fokus.fraunhofer.de]
> Sent: terça-feira, 10 de Fevereiro de 2004 18:02
> To: Toni Barata
> Cc: serusers(a)lists.iptel.org
> Subject: Re: [Serusers] CPL tags problem
>
>
> Hi Toni,
>
> Your CPL script is wrong - some attributes are broken.
> Here is what SER reports when trying to upload the script:
> 2(15675) DEBUG:cpl-c:load_file: file size = 635
> 2(15675) WARNING:cpl_c:encode_lookup_attr: unsupported param TIMEOUT;
> skipping
> 2(15675) ERROR:cpl_c:encode_location_attr: unsupported value
> <sip:crear02> in SOURCE param
> 2(15675) ERROR:cpl-c:encodeCPL: Encoding of the CPL script failed
>
> The only value that is supported in lookup node is "registration" - as
> you used in the first lookup node. If you whant to add just a SIP
> address, use location tag.
> Looking into SER logs is very usefull for finding the reason for upload
> failure.
>
> Regards,
> Bogdan
>
>
> Toni Barata wrote:
>
> > Hi Bogdan,
> >
> > Yes, we get the errors when uploading the script.
> > See the script file we are trying to upload (using cpled)in attach.
> >
> > Thanks,
> > Toni
> >
> >
> >
> > -----Original Message-----
> > From: Bogdan-Andrei IANCU [mailto:iancu@fokus.fraunhofer.de]
> > Sent: terça-feira, 10 de Fevereiro de 2004 17:22
> > To: Toni Barata
> > Cc: serusers(a)lists.iptel.org
> > Subject: Re: [Serusers] CPL tags problem
> >
> >
> > Hi Toni,
> >
> > "otherwise" is a subtag of a multiple tag, like address-switch,
> > language-switch, and other switch nodes. Both the otherwise subtag and
> > lookup tag where successfully used.
> > Do you get error when uploading the script or when running it?
> > Some output will be very useful to trace down your problem. Use debug=9
> > into your config script to enable full debug.
> >
> > Best regards,
> > Bogdan
> >
> > Toni Barata wrote:
> >
> > > Hi All,
> > >
> > > We are using the CPL module by uploading the CPL scripts with the
> > > CPLed tool.
> > > But we are experiencing some problems (errors) when using the
> "lookup"
> > > and the "otherwise" tags.
> > > And what is the most strange is that the problem with the "lookup"
> tag
> > > is happening in one PC and the "otherwise" problem in other PC and
> > > they are both pointing to the same DTD location.
> > >
> > > Anyone could help us with this issue? did someone used this tags
> > > together on a successfuly uploaded script?
> > >
> > > Best Regards,
> > > Toni
> > >
> >
> >------------------------------------------------------------------------
> > >
> > >_______________________________________________
> > >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
Hi,
I'm having a problem with serweb authentication.
I have installed the follow software's:
Red Hat Linux 9
MySQL 4.0.17 (by source)
php-4.2.2-17 (by rpm)
php-mysql-4.2.2-17 (by rpm)
ser-0.8.12-0 (by rpm)
ser-mysql-0.8.12-0 (by rpm)
serweb (by source)
I made all the configurations in php.ini and config.php and started the daemons. It seems ser is running properly but I can't login on serweb.
I try to login with user "admin" and password "heslo", but it returns "bad username or password".
I know that there is a user "admin" with password "heslo" with admin privileges (see my table subscriber below).
Could please someone help me ?
mysql> select * from subscriber;
+----------------------------------+----------+---------------------------+----------+------------+-----------+-------+----------------+---------------------+---------------------+------------------------------------------+------+------------------+----------+----------------------------------+----------------------------------+-------+------------+----------+
| phplib_id | username | domain | password | first_name | last_name | phone | email_address | datetime_created | datetime_modified | confirmation | flag | sendnotification | greeting | ha1 | ha1b | perms | allow_find | timezone |
+----------------------------------+----------+---------------------------+----------+------------+-----------+-------+----------------+---------------------+---------------------+------------------------------------------+------+------------------+----------+----------------------------------+----------------------------------+-------+------------+----------+
| 65e397cda0aa8e3202ea22cbd350e4e9 | admin | xxx.ufrj.br | heslo | Initial | Admin | 123 | root@localhost | 2002-09-04 19:37:45 | 2004-02-12 09:01:54 | 57DaSIPuCm52UNe54LF545750cfdL48OMZfroM53 | o | | | 31f85884be41b858a23dea3eab847bf1 | db7afa8f729d9ae778a304e1a1726e57 | admin | 1 | NULL |
+----------------------------------+----------+---------------------------+----------+------------+-----------+-------+----------------+---------------------+---------------------+------------------------------------------+------+------------------+----------+----------------------------------+----------------------------------+-------+------------+----------+
1 row in set (0.00 sec)
Hi, all iptel.org users/members. I have question about
my cisco ATA 186 adapter. I want to upgrade my cisco
ata 186 adapter firmware from version 2.16.2 ata18x
(build 030829a) to version 3.0. atasip (build
031210a). I am an end user and not reseller of this
adapter. I have no luck from cisco web site to
download the upgrade firmware. Does anybody know any
site (other than or besides cisco) from where I can
download the firmware upgrade image file or can anbody
send me the firmware upgrade image file (to my e-mail)
in order to upgrade my ATA adapter?
-Thanks in advance,
Ashok Patel
ashokpatel(a)yahoo.com
ashokpatel(a)email.com
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html