Hi, there~:
I've made a workable SER with the source code version
0.8.14. But while modifying the ser.cfg file, problem occurs.
The default setting is :
fifo="/tmp/ser_fifo"
I commented this and add a line to change it into:
#fifo="/tmp/ser_fifo"
socket="/tmp/ser_socket"
and problems occurred:
# ser start
0(1987) parse error (25,1-7): parse error
0(1987) parse error (25,1-7):
ERROR: bad config file (2 errors)
Is this also a file format problem?
I've read the Cfg.tab.c generated by bison. It seems no socket token
has been parsed.
Any suggestions would be appreciated.
hi,
i was able to get SER working in its most basic mode on an old office
machine(infortunatly i dont know what version of SuSE or specs it had) and
have just got my new computer, an AMD 64, and have installed SuSE 9.2 64bit
on it, and SER has problems seeing a SIP fone at all, even though it says it
has loaded up and is running.
I was wondering if there might be an incompatability between SER and new
versions of SuSE or 64bit versions of SuSE, and was wondering if anyone
could tell me the latest vesrion that it works correctly on.
Many thanks,
Damian Bundred
Hello,
I have:
ser-0.8.14
mediaproxy-1.2.1
mysql-server-4.0.24
When SER is starting i have error:
############################
bash-2.05b# serctl start
Starting SER : Listening on
udp: xxxxxxxxxxxxxxx [xxxxxxxxxxxxxxxxxx]:5060
udp: 127.0.0.1 [127.0.0.1]:5060
tcp: xxxxxxxxxxxxxxxxx [xxxxxxxxxxxxxx]:5060
tcp: 127.0.0.1 [127.0.0.1]:5060
Aliases:
tcp: localhost:5060
tcp: xxxxxxxxxxxxx:5060
udp: localhost:5060
udp: xxxxxxxxxxxx:5060
*: universe:*
*: vco.pl:*
stateless - initializing
0(0) Maxfwd module- initializing
textops - initializing
0(0) INFO: udp_init: SO_RCVBUF is initially 42080
0(0) INFO: udp_init: SO_RCVBUF is finally 231808
0(0) INFO: udp_init: SO_RCVBUF is initially 42080
0(0) INFO: udp_init: SO_RCVBUF is finally 231808
1(882) INFO: fifo process starting: 882
2(883) new_connection: Access denied for user: 'serro@localhost'
(Using password: YES)
2(883) db_init: No memory left
2(883) ERROR:domain_db_init: cannot initialize database connection
2(883) ERROR: domain:child_init(): Unable to connect to the database
2(883) init_mod_child(): Error while initializing module domain
2(883) init_child failed
15(896) INFO: signal 15 received
14(895) INFO: signal 15 received
13(894) INFO: signal 15 received
12(893) INFO: signal 15 received
11(892) INFO: signal 15 received
10(891) INFO: signal 15 received
9(890) INFO: signal 15 received
8(889) INFO: signal 15 received
7(888) INFO: signal 15 received
5(886) INFO: signal 15 received
4(885) INFO: signal 15 received
3(884) INFO: signal 15 received
1(882) INFO: signal 15 received
6(887) INFO: signal 15 received
PID file /var/run/ser.pid does not exist -- SER start failed
###########################
I don't know why it cannot connect to database.
I can connect with this username and password from mysql CLI.
in my ser.cfg:
###########################
debug=3
fork=yes
log_stderror=yes
check_via=no
dns=no
rev_dns=no
port=5060
children=4
fifo="/tmp/ser_fifo"
fifo_db_url="mysql://ser:heslo@localhost/ser"
alias=vco.pl
alias="universe"
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/domain.so"
loadmodule "/usr/local/lib/ser/modules/uri.so"
loadmodule "/usr/local/lib/ser/modules/registrar.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
loadmodule "/usr/local/lib/ser/modules/mediaproxy.so"
loadmodule "/usr/local/lib/ser/modules/auth.so"
loadmodule "/usr/local/lib/ser/modules/auth_db.so"
modparam("usrloc", "db_mode", 0)
#modparam("usrloc", "db_mode", 2)
modparam("usrloc", "db_url", "mysql://ser:______@_______________/ser")
modparam("auth_db|uri_db", "db_url", "mysql://serro:______@___________/ser")
modparam("auth_db", "calculate_ha1", yes)
modparam("auth_db", "password_column", "password")
modparam("rr", "enable_full_lr", 1)
modparam("mediaproxy", "mediaproxy_socket", "/var/run/proxydispatcher.sock")
modparam("mediaproxy", "sip_asymmetrics","/etc/ser/sip-asymmetrics-clients")
modparam("mediaproxy", "rtp_asymmetrics","/etc/ser/rtp-asymmetrics-clients")
modparam("mediaproxy", "natping_interval", 20)
modparam("registrar", "nat_flag", 2)
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;
};
# Force subsequent messages to pass trough this proxy
record_route();
if (loose_route()) {
if (method=="INVITE" || method=="ACK") {
use_media_proxy();
};
# end media session for BYE and CANCEL is done above
# before entering the loose route. no need to call it here
t_relay();
break;
};
if (uri==myself) {
if (method=="REGISTER") {
# Mark as NAT'ed
if (client_nat_test("3")) {
setflag(2);
force_rport();
fix_contact();
};
if (!www_authorize("universe", "subscriber")) {
www_challenge("universe", "0");
break;
};
# else if (!check_to()) {
# sl_send_reply("403", "Username!=To not allowed");
# break;
#};
if (!save("location")) {
sl_reply_error();
};
};
# if (is_uri_host_local()) {
if (!lookup("location")) {
sl_send_reply("404", "Not found");
break;
};
# };
} else {
sl_send_reply("403", "This domain is not served here");
break;
};
# if (method=="INVITE") {
if (method=="12345") {
if (!(is_from_local() || is_uri_host_local())) {
sl_send_reply("403", "Relaying is forbidden");
break;
};
t_on_failure("1");
} else if (method == "BYE" || method == "CANCEL") {
end_media_session();
};
if (client_nat_test("3") && !search("^Record-Route:")) {
# Mark as NAT'ed
force_rport();
fix_contact();
};
if (method=="INVITE") {
t_on_reply("1");
};
if (method=="INVITE" || method=="ACK") {
use_media_proxy();
};
if (!t_relay()) {
if (method=="INVITE" || method=="ACK") {
end_media_session();
};
sl_reply_error();
};
}
failure_route[1] {
end_media_session();
}
onreply_route[1] {
if (status=~"(183)|(2[0-9][0-9])") {
if (client_nat_test("1")) {
fix_contact();
};
use_media_proxy();
};
}
##############################
Regards Marcin Grzymski
hello
hello can any one tell me what could be the problem
with my config. I am having problem in PublicIP to
PrivateIP call through SER.
this is the case
1:
PublicIP-------->SER(publicIP)-------->PrivateIP
PublicIP------>RTPProxy----->PrivateIP(Here i am not
getting ack and after 30 seconds my session is closed
an my SJPhone on privateIP is saying ACK timeOUT)
2:
UA(privateIP)--------->SER(publicIP)------>UA(privateIP)(both
UA on behind same NAT)
UA<-----------------RTPProxy-------------->UA(Here UAS
is not getting ack and after 30 seconds session is
closed an my SJPhone on privateIP is saying ACK
timeOUT)
when ever there is Call to PrivateIP there is the
problem. UAS on PrivateIP is waiting for Ack and after
30 sec session is droped. in this 30 seconds both UAC
and UAS can listen.
PublicIP(UAC)------------>PrivateIP(UAS)(ACKProblem)
PrivateIP(UAC)----------->PrivateIP(UAS)(ACKProblem)
PublicIP(UAC)------------>PublicIP(UAS)working
PrivateIP(UAS)----------->PublicIP(UAS)working
i am using RTPProxy. should i use MediaProxy or stun
server.
ser.cfg
debug=3
fork=yes
log_stderror=no
dns=no
rev_dns=no
fifo="/tmp/ser_fifo"
#fifo_db_url="mysql://ser:heslo@localhost/ser"
#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/xlog.so"
#radius configuration
loadmodule "/usr/local/lib/ser/modules/auth.so"
#loadmodule
"/usr/local/lib/ser/modules/auth_radius.so"
#loadmodule "/usr/local/lib/ser/modules/acc.so"
#loadmodule "/usr/local/lib/ser/modules/auth_db.so"
loadmodule "/usr/local/lib/ser/modules/uri.so"
#loadmodule "/usr/local/lib/ser/modules/domain.so"
loadmodule "/usr/local/lib/ser/modules/nathelper.so"
loadmodule "/usr/local/lib/ser/modules/textops.so"
#loadmodule "/usr/local/lib/ser/modules/uri_db.so"
#loadmodule "/usr/local/lib/ser/modules/uri_radius.so"
modparam("nathelper", "natping_interval", 30)
modparam("nathelper", "ping_nated_only", 1)
modparam("nathelper", "rtpproxy_sock",
"unix:/var/run/rtpproxy.sock")
modparam("usrloc", "db_mode", 0)
modparam("registrar", "nat_flag", 6)
modparam("rr", "enable_full_lr", 1)
route {
#
-----------------------------------------------------------------
# Sanity Check Section
#
-----------------------------------------------------------------
if (!mf_process_maxfwd_header("10")) {
sl_send_reply("483", "Too Many Hops");
break;
};
if (msg:len > max_len) {
sl_send_reply("513", "Message Overflow");
break;
};
#
-----------------------------------------------------------------
# Record Route Section
#
-----------------------------------------------------------------
if (method!="REGISTER") {
record_route();
};
if (method=="BYE" || method=="CANCEL") {
unforce_rtp_proxy();
}
#
-----------------------------------------------------------------
# Loose Route Section
#
-----------------------------------------------------------------
if (loose_route()) {
if (has_totag() && method=="INVITE") {
if (nat_uac_test("19")) {
setflag(6);
force_rport();
fix_nated_contact();
};
force_rtp_proxy("l");
};
route(1);
break;
};
#
-----------------------------------------------------------------
# Call Type Processing Section
#
-----------------------------------------------------------------
if (uri==myself) {
if (method=="INVITE") {
route(3);
break;
} else if (method=="REGISTER") {
route(2);
break;
};
if (!lookup("location")) {
sl_send_reply("404", "User Not
Found");
break;
};
route(1);
};
}
route[1] {
#
-----------------------------------------------------------------
# Default Message Handler
#
-----------------------------------------------------------------
t_on_reply("1");
if (!t_relay()) {
if (method=="INVITE" && isflagset(6)) {
unforce_rtp_proxy();
};
sl_reply_error();
};
}
route[2] {
#
-----------------------------------------------------------------
# REGISTER Message Handler
#
----------------------------------------------------------------
if (!search("^Contact: \*") &&
nat_uac_test("19")) {
setflag(6);
fix_nated_register();
# fix_nated_contact();
force_rport();
};
sl_send_reply("100", "Trying");
#radius config
#end of radius config
# if (!www_authorize("","subscriber")) {
# www_challenge("","0");
# break;
# };
# if (!check_to()) {
# sl_send_reply("401", "Unauthorized");
# break;
# };
consume_credentials();
if (!save("location")) {
sl_reply_error();
};
}
route[3] {
#
-----------------------------------------------------------------
# INVITE Message Handler
#
-----------------------------------------------------------------
if (nat_uac_test("19")) {
setflag(6);
}
if (!lookup("location")) {
sl_send_reply("404", "User Not Found");
break;
};
# if (!proxy_authorize("","subscriber")) {
# proxy_challenge("","0");
# break;
# } else if (!check_from()) {
# if(!check_from()) {
# sl_send_reply("403", "Use From=ID");
# break;
# };
consume_credentials();
if (isflagset(6)) {
# if (uri=~"^sip:9[0-9]*@.*") {
# prefix, strip prefix & shunt our
call to the local access PSTN gateway
# strip(1);
# xlog("L_DBG","prefix 9
detected... entering route 3");
# route(3); #PSTN gateway
# break;
# }
force_rport();
# xlog("L_DBG","going for fixnated and forcertp
%fu");
log("hello");
fix_nated_contact();
force_rtp_proxy();
};
t_on_reply("1");
if (!t_relay()) {
if(isflagset(6)) {
unforce_rtp_proxy();
}
sl_reply_error();
};
}
onreply_route[1] {
if (isflagset(6) &&
status=~"(180)|(183)|2[0-9][0-9]") {
if (!search("^Content-Length:\ 0")) {
force_rtp_proxy();
};
}
else if (nat_uac_test("1")) {
fix_nated_contact();
};
}
__________________________________
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
You probably need to set your alias to your domain in ser.cfg. Otherwise, you will need to connect to the exact machine name (i.e. not http://localhost).
-----Original Message-----
From: serusers-bounces(a)iptel.org [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Edgar A. Vidal Martínez
Sent: Monday, April 11, 2005 3:39 AM
To: serusers(a)lists.iptel.org
Subject: [Serusers] About serweb
Hi everyone:
I'm having problems with serweb in the login page, I mean, when I type http://localhost/serweb/html/user_interface/index.php
the login screen appears, but after I type a username and a password, the same login screen appears again.
Could anybody tell what I'm doing wrong?
Thanks in advance
Edgar Vidal
_______________________________________________
Serusers mailing list
serusers(a)lists.iptel.org
http://lists.iptel.org/mailman/listinfo/serusers
Hi Steve,
The problem is when a call outside with a number for example 935888888
I' l lsend you my configuration when i arrive to laboratory.
And another question, Where's ccsip (i have a 1760 with IOS Version 12.3(9)
Thanks
--
Miquel
Hi everyone:
I'm having problems with serweb in the login page, I mean, when I type http://localhost/serweb/html/user_interface/index.php
the login screen appears, but after I type a username and a password, the
same login screen appears again.
Could anybody tell what I'm doing wrong?
Thanks in advance
Edgar Vidal
I agree you but it would be better to provide these
informations in the README!
What do you advise me for security for cps !
I get one ip public address, I use netfilter (Policy
DROP).
When have we to use rtpproxy options ?
Harry
--- "Greger V. Teigre" <greger(a)teigre.com> wrote:
> No documentation. Change in the source file and
> recompile.
> g-)
>
> harry gaillac wrote:
> > Hi Greger,
> >
> > Thanks for tour reply,
> >
> > Why these options?
> > Where can we find the documentation in order to
> change
> > rtp ports ??
> >
> > Regards
> > Harry
> >
> >> If you have a firewall that denies all outgoing
> >> ports except those
> >> explicitly opened (most home routers/FW allow
> >> outgoing):
> >> SIP messages: udp (and TCP if you use that) port
> >> 5060
> >> RTP: udp 35000-65000 (can be changed in
> rtpproxy's
> >> rttp_defines.h)
> >> Both to your SER+RTPPROXY server.
> >>
> >
> >
> > --- "Greger V. Teigre" <greger(a)teigre.com> wrote:
> >> See inline.
> >>
> >>> I need help to understand ser+rtpproxy.
> >>>
> >>> How may I configure rtpproxy options to run with
> >>> ser/nathelper on the same box ?
> >>>
> >>> rttproxy options :
> >>> usage: rtpproxy [-2fv] [-l addr1[/addr2]] [-6
> >>> addr1[/addr2]] [-s path] [-t tos] [-r rdir [-S
> >> sdir]]
> >>
> >> Just start rtpproxy without options and it will
> >> listen on the standard
> >> socket compiled into rtpproxy and nathelper.so.
> >>>
> >>> SER communicated with RTPPROXY via unix socket.
> >>> Does RTPPROXY rewrite INVITE/REGISTER message
> with
> >>> info from SER?
> >>
> >> Yes, when you call the appropriate functions.
> Read
> >> the Getting Started
> >> document (chapter 1 + the rtpproxy example
> chapter)
> >> to get detailed info.
> >>
> >>> private-------FW+NAT------SER+RTPPROXY------
> >> public
> >>> network
> >> network
> >>>
> >>> which ports must be opened on FW box for INVITE
> >> and/or
> >>> REGISTER methods are they the same than on
> >> rtpproxy ?
> >>
> >> If you have a firewall that denies all outgoing
> >> ports except those
> >> explicitly opened (most home routers/FW allow
> >> outgoing):
> >> SIP messages: udp (and TCP if you use that) port
> >> 5060
> >> RTP: udp 35000-65000 (can be changed in
> rtpproxy's
> >> rttp_defines.h)
> >> Both to your SER+RTPPROXY server.
> >>
> >> g-)
> >>
> >> g-)
> >>
> >>
> >
> >
> >
> >
> >
> >
> >
>
__________________________________________________________________
> > Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace
> de stockage pour
> > vos mails ! Créez votre Yahoo! Mail sur
> http://fr.mail.yahoo.com/
>
>
__________________________________________________________________
Découvrez le nouveau Yahoo! Mail : 250 Mo d'espace de stockage pour vos mails !
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com/