Hi All
I have installed Ser 0.8.14 with mysql.so. My aim is to authenticate users and then forward all the request to destination cisco router, and also to maintain accounting for billing purpose.
I am facing two problems, my all call gets disconnected after few secs of its own and I dont get call records also for any calls
My ser.cfg is as below. Pls help me in this matter.
#
# $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
*/
listen=202.71.135.193
listen=127.0.0.1
alias=jalan.com
alias=202.71.135.193
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/acc.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")
# ------Acc Params ------
modparam("acc", "log_level", 1)
modparam("acc", "log_flag", 1)
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
modparam("usrloc", "db_url", "sql://ser:heslo@localhost/ser")
# ------------------------- 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 (!www_authorize("202.71.135.193", "subscriber")) {
www_challenge("202.71.135.193", "0");
break;
};
save("location");
break;
};
if (method == "INVITE"){
if (uri=~"sip:[0-9]*@*"){
prefix("1234");
rewritehostport("64.45.47.231:5060");
forward(64.45.47.231, 5060);
};
if (!t_relay()) {
sl_reply_error();
break;
};
};
setflag(1);
# 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
}
Thanks & Regards
Ritesh Jalan
Senior Engineer - Test & Audit
Net4india Ltd.
504, Bhikaji Cama Bhawan
11, Bhikaji Cama Place
New Delhi 110066
Tel: 91 (011) (26160129 - 131) (Extn 131)
URL: http://www.net4india.com
Hello,
I recommend using ser-0.9.0
There has been a major update in the pa module.
Also,
Upgrade your database with the sql script in the source directory.
Try this first.
If you still have problems, I'll give you a couple of hints :-)
Basically, I've only used the reference in the module spec.
Br,
hw
-----Opprinnelig melding-----
Fra: David Gastro [mailto:davidgastro@hotmail.com]
Sendt: 11. januar 2005 20:52
Til: Helge Waastad
Emne: RE: [Serusers] ser-0.9.0 and PA clients
Helge,
Would you be willing to share your ser.cfg file?
I've been trying to get the PA module to work here for about a week
(using a
homegrown client). It would be great to be able to compare my ser.cfg to
a
known working one ... ;-)
Thanks in advance,
David
>From: "Helge Waastad" <Helge.Waastad(a)smartnet.no>
>To: <serusers(a)lists.iptel.org>
>Subject: [Serusers] ser-0.9.0 and PA clients
>Date: Tue, 4 Jan 2005 23:26:25 +0100
>
>Hello,
>I've started to use the 0.9.0 release and to me it seems to work as a
charm
>:-)
>
>However does anybody know which SIP clients which is compliant for the
PA?
>I'm using kphone and it works fine, but I would like to try out some
for
>use on Microsoft?
>Messenger 5.0 does not work.
>Mvh,
>Helge Waastad
>_______________________________________________
>Serusers mailing list
>serusers(a)lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how
to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
I compiled the ser-0.9.0 ,when I start I get the error below:
#ser moni
0(19509) ERROR: load_module: could not open module </usr/local/lib/ser/modules/mysql.so>: /usr/local/lib/ser/modules/mysql.so: undefined symbol: fm_malloc
0(19509) parse error (26,13-14): failed to load module
ERROR: bad config file (1 errors)
How can I solve it?
My mysql is mysql-3.23.58-2.3
Hi everyone,
I would like to ask whether someone has tested whether it would be
possible to put SER behind NAT? I have tried it, but it seems that the
registration cannot be done successfully. Even if I can register it, no
voice could be heard..
There is no problem at all if I use a static IP to run SER.
I am using SER behind NAT because I would like to use dynamic IP for
SER. Hope someone will give me help.
Thomas
No account exist in MYSQL
Do command: ser_mysql create
The default password of ser is "heslo"
"Zhaomin" <zhaomin(a)kingdream.com>
发件人: serusers-bounces(a)iptel.org
2005-01-12 16:21
收件人: <serusers(a)iptel.org>
抄送:
主题: [Serusers] When I want to add a user for ser,but I meet
this error
[root@jzmv opt]# serctl add user password user@local
MySql password:
error: 400; check if you use aliases in SER
How can I solve this problem?
Thanks _______________________________________________
Serusers mailing list
Serusers(a)iptel.org
http://mail.iptel.org/mailman/listinfo/serusers
************************************************
The email has been scanned by Anti-Spam
system, if you find Spam or Virus in this mail,
please forward it to: helpdesk(a)zte.com.cn
************************************************
***********************************************
信息安全声明:本邮件包含信息归ZTE所有,
ZTE对该邮件拥有所有权利。请接收者注意
保密,未经发件人书面许可,不得向任何第
三方组织和个人透露本邮件所含信息的全部
或部分。以上声明仅适用于工作邮件。
Information Security Notice:
The information contained in this mail is
solely property of ZTE Corporation.
This mail communication is confidential.
Recipients named above are obligated to
maintain secrecy and are not permitted to
disclose the contents of this communication
to others.
***********************************************
Your radius server can keep track of the call duration by subtracting
the stop time from start time, you do not need per se the header you
mention nor a B2BUA.
See www.freeradius.org documentation or the sample configuration file
to achieve what you want at
http://cdrtool.ag-projects.com/sql.conf
Adrian
> Anybody here solved the radius accounting problem with ser?
> Please post if you are using radius with ser for accounting.
>
> Thanks
> &*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*&*
> C.M. Rahman Jr. <Archivo: ATT00023.txt >>
Not me. I'm being able to account calls, but can not do any billing,
because SER does not send Acct-Session-Time Attribute. I was told that I
need a b2bua to accomplish that. So used b2bua from vovida.org, but
nothing happened. vovida's b2bua does not send Acct-Session-Time. Now
I'm trying to use Asterisk as b2bua, but it is being difficult to
configure. Any help would be appreciated.
By the way. Has anybody done billing with ser ??
Regards,
Lucas
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.10 - Release Date: 10/01/2005
Hi,
I'm a newbie on SER so please be patient. I have been using *
for quite a while and now decided to use SER as a front-end for my SIP
users. I have everything setup including *, SER, RPTProxy, STUN and
everything works except for DTMF tones, for example, when I access *
voicemail through SER the tones do not get correctly recognized by *.
Asterisk is configured to use RFC2833 as a transport for DTMF tones.
Can anyone please help me solve this issue?
Thanks in advance,
Humberto