Hello Glynn,
the ser.cfg I use to test the ivr is attached, but you will not want to
use this, as it doesn't check for registration etc. but simply forwards
all calls to the ivr.
If you have made make install within ser and do not start ser in the ser
ser source directory you'll have to change the "loadmodules" from
loadmodule "modules/sl/sl.so"
to
loadmodule "modules/sl.so" etc.
You'll also want to change this line
modparam("vm","db_url","dbtext:///home/sanchez/sip_router/modules/vm/db")
to point to some directory where there exists a file called "subscriber".
(Hopefully I won't get flamed by the ser people for this poor ser.cfg
script... ;)
HTH Stefan
Glynn Condez wrote:
> hi stefan,
>
> can you post an example of a working ivr config in ser. thanks
>
> ----- Original Message -----
> From: "Stefan Sayer" <sayer(a)cs.tu-berlin.de>
> To: "Shirley Toh" <shirleytoh(a)jpcomputers.com.sg>
> Cc: "Serusers (E-mail)" <serusers(a)lists.iptel.org>; "'Sems (E-mail)"
> <sems(a)lists.iptel.org>
> Sent: Monday, June 07, 2004 9:06 PM
> Subject: [Serusers] Re: [Sems] Sems Configuration
>
>
>
>>Hello,
>>the IVR uses the script with the name of the called party. If it doesn't
>>exist the default script will be used.
>>
>>Stefan
>>
>>On Mon, 7 Jun 2004, Shirley Toh wrote:
>>
>>
>>>Hi all,
>>>
>>>Sorry if this is a veruy stupid question as I am a newbie to sems.
>>>
>>>I need to have a different IVR script pointed from ser.cfg to have
>>>difference features, may I know how can I add another script file to
>
> call
>
>>>from the sems.conf using the IVR.so module again but with different
>
> scripts.
>
>>>Please help.
>>>
>>>Regards,
>>>Shirley
>>>
>>>_______________________________________________
#
# $Id: ser.cfg.ivr,v 1.1 2004/05/25 16:09:06 ssa Exp $
#
# this script is configured for use as voicemail UAS; it processes
# INVITEs and BYEs and asks SEMS to record media via "vm"; in this
# script, all record-routing and other constructs known from proxy
# scripts are not present -- it is a simple UAS
#
# ----------- global configuration parameters ------------------------
debug=3 # debug level (cmd line: -dddddddddd)
fork=yes
log_stderror=yes # (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"
#listen=195.37.78.184
# ------------------ module loading ----------------------------------
loadmodule "modules/sl/sl.so"
loadmodule "modules/tm/tm.so"
loadmodule "modules/rr/rr.so"
loadmodule "modules/maxfwd/maxfwd.so"
loadmodule "modules/usrloc/usrloc.so"
loadmodule "modules/registrar/registrar.so"
loadmodule "modules/vm/vm.so"
loadmodule "modules/dbtext/dbtext.so"
# ----------------- setting module-specific parameters ---------------
# You may want to define things like databases here. Please refer to
# the extensive SER documentation for this purpose. Module parameters
# are always described in the modules README files.
#
# For pure ivr functionality only a database is needed, we use
# a simple textfile for this purpose. Actually this is only neccessary until
# the vm module is reworked. Simply copy the etc/db directory from the ivr
# directory somewhere and specify it in the following statement:
modparam("vm", "db_url","dbtext:///home/sanchez/sip_router/modules/vm/db")
# ------------------------- 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 (msg:len >= max_len ) {
sl_send_reply("513", "Message too big");
break;
};
if (!uri==myself) {
sl_send_reply("404", "not reponsible for host in r-uri");
break;
};
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;
};
# ivr specific configuration - begin
if(method=="ACK" || method=="INVITE" || method=="BYE"){
if (!t_newtran()) {
log("could not create new transaction\n");
sl_send_reply("500","could not create new transaction");
break;
};
if (uri=~"sip:ivr+*@.*") {
log("VM URI FOUND ?§?§?§?§?§??§?§?§§§§§§§§§§§§§§§§§§§§§3");
route(1);
};
t_reply("100","Trying -- just wait a minute !");
if(method=="INVITE"){
log("**************** vm start - begin ******************\n");
#if (uri=~"sip:ivr@.*") {
if (!vm("/tmp/am_fifo", "ivr")) {
log("couldn't contact ivr server\n");
t_reply("500", "couldn not contact ivr server");
};
#};
log("**************** vm start - end ******************\n");
} else if(method=="BYE"){
log("**************** vm end - begin ******************\n");
if(!vm("/tmp/am_fifo","bye")){
log("could not contact ivr\n");
t_reply("500","could not contact ivr");
};
log("**************** vm end - end ******************\n");
};
break;
};
if (method=="CANCEL") {
sl_send_reply("200", "cancels are junked here");
break;
};
sl_send_reply("501", "method not understood here");
}
route[1]
{
# send it out now; use stateful forwarding as it works reliably
# even for UDP2TCP
log("route[1] -- start -------------------");
if (!t_relay()) {
sl_reply_error();
};
log("route[1] -- end -------------------");
}
hello friends ,
i have downloaded CDRTools-1.0.1.tgz
mines is redhat linux 9.0
in executing the statement from the setup_mysql.sh
mysql -u root -p$p -h $h $db < ./create_data.mysql
giveng error as
[root@server mysql]# ./setup_mysql.sh
ERROR 1136 at line 1: Column count doesn't match value
count at row 1
and the first statement from the create_date.mysql
is
INSERT INTO auth_user
(user_id,username,password,perms,expire,organization,name,tel,email,display_cli,dispaly_card,domainFilter,codeFilter,aNumberFilter,afterDateFilter,sources,otp_enable,otp_rcpt,otp_expire,otp_passwd)
VALUES
('c14cbf141ab1b7cd009356f555b607dc','admin','admin','admin,callsearch,statistics,sqlquery','2099-01-01','AG
Projects','Adrian
Georgescu','31-620-534309','support(a)ag-projects.com','1','1','','','','','0000-00-00','ipnxcdr,ipnxlog,telecats,asterisk,cisco,ser','0','','2003-10-28
12:52:00','8n36r');
so where iam going wrong
please suggest me.
with regards
rama kanth
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
Thanks karel. Will update with stable version.
Karel Kozlik <karel(a)iptel.org> wrote:
>Hi Zak,
>the version which are you using is developer unstable. There can be some
>bugs. To get stable version use cvs branch named rel_0_8_12.
>
>Karel
>
>xirak(a)netscape.net wrote:
>
>> Hi Guys,
>>
>> I went throug my_account.php and commented out :
>>
>> if (false === $row = $data->get_sip_user_details($user_id, $config->domain, $errors)) break;
>>
>> and things are working fine now. But still need to find out why that's the case, when everything else works fine.
>>
>> Zak
>>
>> Jan Janak <jan(a)iptel.org> wrote:
>>
>>
>>>Are there any error messages in the logs of apache ?
>>>
>>> Jan.
>>>
>>>On 05-06 13:01, xirak(a)netscape.net wrote:
>>>
>>>>Hi Guys,
>>>>
>>>>I have installed serweb and the admin pages are running without a problem.
>>>>But I'm having a problem with the user interface pages.
>>>>When I try to login into the user pages.. everything hangs at my_account.php Apache log shows a 302 redirect to my_account.php but the page wouldn't load.
>>>>
>>>>If I try to click on the account link from the admin pages, the same thing happens.
>>>>
>>>>Anyone had any issue with my_account.php ?
>>>>
>>>>thanks,
>>>>
>>>>Zak
>>>>
>>>>__________________________________________________________________
>>>>Introducing the New Netscape Internet Service.
>>>>Only $9.95 a month -- Sign up today at http://isp.netscape.com/register
>>>>
>>>>Netscape. Just the Net You Need.
>>>>
>>>>New! Netscape Toolbar for Internet Explorer
>>>>Search from anywhere on the Web and block those annoying pop-ups.
>>>>Download now at http://channels.netscape.com/ns/search/install.jsp
>>>>
>>>>_______________________________________________
>>>>Serusers mailing list
>>>>serusers(a)lists.iptel.org
>>>>http://lists.iptel.org/mailman/listinfo/serusers
>>>
>>
>> __________________________________________________________________
>> Introducing the New Netscape Internet Service.
>> Only $9.95 a month -- Sign up today at http://isp.netscape.com/register
>>
>> Netscape. Just the Net You Need.
>>
>> New! Netscape Toolbar for Internet Explorer
>> Search from anywhere on the Web and block those annoying pop-ups.
>> Download now at http://channels.netscape.com/ns/search/install.jsp
>>
>> _______________________________________________
>> Serusers mailing list
>> serusers(a)lists.iptel.org
>> http://lists.iptel.org/mailman/listinfo/serusers
>>
>
>
__________________________________________________________________
Introducing the New Netscape Internet Service.
Only $9.95 a month -- Sign up today at http://isp.netscape.com/register
Netscape. Just the Net You Need.
New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
Hi All
I`m new to this and like to learn how to set up the configure following
Ser+RTPproxy+Asterisk
Just to clarify the net settings
My ser is on a public ip net and has a local address to.
I will like to make a phone call from a sip phone which is
behind NAT to a PSTN.
When I try to call out I get
"479", "We don't forward to private IP addresses"
I don’t`know what i`m doing wrong
Sending a copy of my ser.cfg
alias=" mydomian.com "
Alias="192.168.10.100" #ser
Alias="192.168.10.120" #Asterisk
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"
fifo_mode=0777
# ------------------ 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/textops.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"
# !! Nathelper
loadmodule "/usr/local/lib/ser/modules/nathelper.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)
# -- rr params --
# add value to ;lr param to make some broken UAs happy
modparam("rr", "enable_full_lr", 1)
# !! Nathelper
modparam("registrar", "nat_flag", 6)
modparam("nathelper", "natping_interval", 30) # Ping interval 30 s
modparam("nathelper", "ping_nated_only", 1) # Ping only clients behind NAT
# ------------------------- 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;
};
# !! Nathelper
# Special handling for NATed clients; first, NAT test is
# executed: it looks for via!=received and RFC1918 addresses
# in Contact (may fail if line-folding is used); also,
# the received test should, if completed, should check all
# vias for rpesence of received
if (nat_uac_test("3")) {
# Allow RR-ed requests, as these may indicate that
# a NAT-enabled proxy takes care of it; unless it is
# a REGISTER
if (method == "REGISTER" || ! search("^Record-Route:")) {
log("LOG: Someone trying to register from private IP,
rewriting\n");
# This will work only for user agents that support
symmetric
# communication. We tested quite many of them and
majority is
# smart enough to be symmetric. In some phones it takes
a configuration
# option. With Cisco 7960, it is called NAT_Enable=Yes,
with kphone it is
# called "symmetric media" and "symmetric signalling".
fix_nated_contact(); # Rewrite contact with source IP of
signalling
if (method == "INVITE") {
fix_nated_sdp("1"); # Add direction=active to SDP
};
force_rport(); # Add rport parameter to topmost Via
setflag(6); # Mark as NATed
};
};
# 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
if
(!method=="REGISTER") record_route();
# subsequent messages withing a dialog should take the
# path determined by record-routing
if (loose_route()) {
# mark routing logic in request
append_hf("P-hint: rr-enforced\r\n");
route(1);
break;
};
if (uri=~"sip:0[0-9]*@mydomian.com"){
rewritehostport("192.168.120.:5060");
t_relay();
#break;
# forward(192.168.10.120,5060);
# Where local asterisk is listening
# break;
}
# if (!uri==myself) {
# mark routing logic in request
# append_hf("P-hint: outbound\r\n");
# route(1);
# 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;
};
lookup("aliases");
if (!uri==myself) {
append_hf("P-hint: outbound alias\r\n");
route(1);
break;
# native SIP destinations are handled using our USRLOC DB
if (!lookup("location")) {
sl_send_reply("404", "Not Found");
break;
};
};
append_hf("P-hint: usrloc applied\r\n");
route(1);
}
route[1]
{
# !! Nathelper
if (uri=~"[@:](192\.168\.|10\.|172\.(1[6-9]|2[0-9]|3[0-1])\.)" &&
!search("Route:")){
sl_send_reply("479", "We don't forward to private IP
addresses");
break;
};
# if client or server know to be behind a NAT, enable relay
record_route();
if (isflagset(6)) {
fix_nated_sdp("1");
force_rtp_proxy();
t_on_reply("1");
}
#if (isflagset(6)) {
# force_rtp_proxy();
#};
# NAT processing of replies; apply to all transactions (for example,
# re-INVITEs from public to private UA are hard to identify as
# NATed at the moment of request processing); look at replies
t_on_reply("1");
# send it out now; use stateful forwarding as it works reliably
# even for UDP2TCP
if (!t_relay()) {
sl_reply_error();
};
}
# !! Nathelper
onreply_route[1] {
# NATed transaction ?
if (isflagset(6) && status =~ "(183)|2[0-9][0-9]") {
fix_nated_contact();
fix_nated_sdp("1");
force_rtp_proxy();
# otherwise, is it a transaction behind a NAT and we did not
# know at time of request processing ? (RFC1918 contacts)
} else if (nat_uac_test("1")) {
fix_nated_contact();
};
}
regards
Sanjay
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.700 / Virus Database: 457 - Release Date: 06.06.2004
Hi Guys,
I went throug my_account.php and commented out :
if (false === $row = $data->get_sip_user_details($user_id, $config->domain, $errors)) break;
and things are working fine now. But still need to find out why that's the case, when everything else works fine.
Zak
Jan Janak <jan(a)iptel.org> wrote:
>Are there any error messages in the logs of apache ?
>
> Jan.
>
>On 05-06 13:01, xirak(a)netscape.net wrote:
>> Hi Guys,
>>
>> I have installed serweb and the admin pages are running without a problem.
>> But I'm having a problem with the user interface pages.
>> When I try to login into the user pages.. everything hangs at my_account.php Apache log shows a 302 redirect to my_account.php but the page wouldn't load.
>>
>> If I try to click on the account link from the admin pages, the same thing happens.
>>
>> Anyone had any issue with my_account.php ?
>>
>> thanks,
>>
>> Zak
>>
>> __________________________________________________________________
>> Introducing the New Netscape Internet Service.
>> Only $9.95 a month -- Sign up today at http://isp.netscape.com/register
>>
>> Netscape. Just the Net You Need.
>>
>> New! Netscape Toolbar for Internet Explorer
>> Search from anywhere on the Web and block those annoying pop-ups.
>> Download now at http://channels.netscape.com/ns/search/install.jsp
>>
>> _______________________________________________
>> Serusers mailing list
>> serusers(a)lists.iptel.org
>> http://lists.iptel.org/mailman/listinfo/serusers
>
__________________________________________________________________
Introducing the New Netscape Internet Service.
Only $9.95 a month -- Sign up today at http://isp.netscape.com/register
Netscape. Just the Net You Need.
New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
Hello,
Can any body please tell me, what configurations to make so that all active
calls are recorded in active_sessions table.
Thanx in advance.
Regards,
Saket Maheshwary
Jan,
I double checked to make sure the group exits and that the user being called
is a member of the voicemail group. Still the same problem?
Could this be due to using the RPM's?
I'll be building a new system from scratch on my second test box to get back
to where I was before the upgrade and then building my original box as the
test box.
Warm Regards
Shad
-----Original Message-----
From: Jan Janak [mailto:jan@iptel.org]
Sent: Monday, June 07, 2004 6:13 PM
To: Shad Mortazavi
Cc: serusers(a)lists.iptel.org
Subject: Re: [Serusers] Problems Following upgrade to MySQL 4.0.20
Did you check if you have corresponding line in the grp table ? Maybe
something went wrong and the table is empty now ?
Jan.
On 03-06 06:22, Shad Mortazavi wrote:
> Dear Group,
>
> I got a copy of ser + sems + serweb and voicemail working, thanks to some
> great input from the group.
>
> I saw that there was error 77 on the missed calls page on serweb. I
> understood from the user group that this is due to a missing function in
> version 3.1.x of Mysql. I upgraded my MySQL version 4.0.22. I booted ran
the
> fix privileges routine as advised. MySQL started.
>
> I then started my testing and now my Voice Mail and Forwarding to my
> Asterisk Box are broken ???. I can see from the debug(below) that the
system
> can no longer find the user in the voicemail group? So there is some
change
> in the table/db or the interaction of the script with the DB.
>
> I tried dropping the DB, recreating is with the ser_mysql.sh command, and
> reading the users and I keep getting the same result;
>
> Here is the debug. You can see from the debug that 5(2226) is_user_in():
> User is not in group 'voicemail, before the upgrade the system showed the
> user in the voicemail group???
>
> Before this issue my voicemail would go to the voicemail.cfg script and
> record a voicemail, now I get Not Found and no voicemail turned on from;
>
> if ( !( isflagset(4) || (uri =~ "conference") || (uri =~ "echo") ) )
> {
> log(1, "no voicemail subscriber->return 404");
> sl_send_reply("404", "Not Found and no voicemail turned
> on");
> break;
> };
>
> As always your help would be appreciated.
>
> Here is the debug.
>
> 5(2226) SIP Request:
> 5(2226) method: <INVITE>
> 5(2226) uri: <sip:ella@convergenceone.com>
> 5(2226) version: <SIP/2.0>
> 5(2226) parse_headers: flags=1
> 5(2226) Found param type 235, <rport> = <n/a>; state=6
> 5(2226) Found param type 232, <branch> =
> <z9hG4bKF54DAB3D6C0C455FBF00B605D4C8A3CD>; state=16
> 5(2226) end of header reached, state=5
> 5(2226) parse_headers: Via found, flags=1
> 5(2226) parse_headers: this is the first via
> 5(2226) After parse_msg...
> 5(2226) preparing to run routing scripts...
> 5(2226) -------------------------------------------
> 5(2226) entering main loop
> 5(2226) INVITE message received
> 5(2226) DEBUG : is_maxfwd_present: searching for max_forwards header
> 5(2226) parse_headers: flags=128
> 5(2226) end of header reached, state=9
> 5(2226) DEBUG: get_hdr_field: <To> [31];
uri=[sip:ella@convergenceone.com]
> 5(2226) DEBUG: to body [<sip:ella@convergenceone.com>
>
> ]
> 5(2226) get_hdr_field: cseq <CSeq>: <54246> <INVITE>
> 5(2226) DEBUG: is_maxfwd_present: value = 70
> 5(2226) parse_headers: flags=256
> 5(2226) DEBUG: get_hdr_body : content_length=270
> 5(2226) found end of header
> 5(2226) find_first_route(): No Route headers found
> 5(2226) loose_route(): There is no Route HF
> 5(2226) check_self - checking if host==us: 18==9 && [convergenceone.com]
> == [127.0.0.1]
> 5(2226) check_self - checking if port 5060 matches port 5060
> 5(2226) check_self - checking if host==us: 18==13 &&
[convergenceone.com]
> == [192.168.0.206]
> 5(2226) check_self - checking if port 5060 matches port 5060
> 5(2226) lookup(): 'ella' Not found in usrloc
> 5(2226) is_user_in(): User is not in group 'voicemail
> '
> 5(2226) lookup(): 'ella' Not found in usrloc
> 5(2226) requested user not found
> 5(2226) -------------------------------------------
> 5(2226) entering route[4] = requested user not online
> 5(2226) no voicemail subscriber->return 404 5(2226) parse_headers:
flags=-1
> 5(2226) check_via_address(192.168.0.1, 144.137.65.167, 0)
> 5(2226) receive_msg: cleaning up
> 7(2234) SIP Request:
> 7(2234) method: <ACK>
> 7(2234) uri: <sip:ella@convergenceone.com>
> 7(2234) version: <SIP/2.0>
> 7(2234) parse_headers: flags=1
> 7(2234) Found param type 235, <rport> = <n/a>; state=6
> 7(2234) Found param type 232, <branch> =
> <z9hG4bKF54DAB3D6C0C455FBF00B605D4C8A3CD>; state=16
> 7(2234) end of header reached, state=5
> 7(2234) parse_headers: Via found, flags=1
> 7(2234) parse_headers: this is the first via
> 7(2234) After parse_msg...
> 7(2234) parse_headers: flags=4
> 7(2234) DEBUG: add_param: tag=b27e1a1d33761e85846fc98f5f3a7e58.9612
> 7(2234) end of header reached, state=29
> 7(2234) DEBUG: get_hdr_field: <To> [73];
uri=[sip:ella@convergenceone.com]
> 7(2234) DEBUG: to body [<sip:ella@convergenceone.com>]
> 7(2234) DEBUG: sl_filter_ACK : local ACK found -> dropping it!
>
>
> Kind Regards
>
> Shad Mortazavi
> ---------------------------------------------------
> Nexus Technical Manager
> n|m Nexus Management Inc
> Neutral Bay
> Sydney
>
> _______________________________________________
> Serusers mailing list
> serusers(a)lists.iptel.org
> http://lists.iptel.org/mailman/listinfo/serusers
hello serusers!
I have followed these instructions carefully again(http://iptel.org/ser/doc/ser_radius/ser_radius.html) and now I can see that authentication process works well but I did not see any "Accounting Report" in /var/log/radius/radacct/ or neither in radiusd -X debug, please can someone send me an example of ser.cfg configuration for this purpose?
thanks
Rafael
PS: my current ser.cfg configuration is shown below, freeradius it is installed in the same host (SuSe Linux 9.0):
ser:/var/log/radius/radacct # more /etc/ser/ser.cfg
#
# $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=9
fork=yes
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 "//lib/ser/modules/mysql.so"
loadmodule "//lib/ser/modules/sl.so"
loadmodule "//lib/ser/modules/tm.so"
loadmodule "//lib/ser/modules/rr.so"
loadmodule "//lib/ser/modules/maxfwd.so"
loadmodule "//lib/ser/modules/usrloc.so"
loadmodule "//lib/ser/modules/registrar.so"
loadmodule "//lib/ser/modules/group_radius.so"
#loadmodule "//lib/ser/modules/group.so"
# Uncomment this if you want digest authentication
# mysql.so must be loaded !
loadmodule "//lib/ser/modules/auth.so"
#loadmodule "//lib/ser/modules/auth_db.so"
loadmodule "//lib/ser/modules/auth_radius.so"
loadmodule "//lib/ser/modules/acc.so"
#loadmodule "//lib/ser/modules/uri.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)
modparam("auth_radius","radius_config","/etc/radiusclient/radiusclient.conf")
modparam("auth_radius","service_type",15)
modparam("acc", "radius_config","/etc/radiusclient/radiusclient.conf")
modparam("acc", "service_type", 15)
modparam("acc", "radius_flag", 1)
modparam("acc", "radius_missed_flag", 3)
# ------------------------- 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("")) {
www_challenge("", "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();
};
}
ser:/var/log/radius/radacct #
When tring to make to PSTN gateway,
I got following error in my syslog messages file:
"513" "Message too big"
Can anybody tell me what cause this problem and how to fix it?
Gary