I am having a problem with the acc module crashing my SER when it hits the
setflag(1) statement. It appears after many hours of debugging, that when I
just include the modparam statements in the config file after it relay's the
message I get a "child process # exited by a signal 11" . I have recompiled
acc for mysql support and installed it.
Thanks,
-Kevin
Try using a different value for db_flag and db_missed_flag and see it helps
or not.
Zeus
> -----Original Message-----
> From: Kevin McCauley [mailto:kevin@fullcirclenetworks.net]
> Sent: Thursday, 9 September 2004 11:52 PM
> To: 'Zeus Ng'
> Cc: serusers(a)lists.iptel.org
> Subject: RE: [Serusers] ser-mysql accounting: Crashing SER
>
>
> Zeus,
>
> Here is my ser.cfg. Is not much different than the
> distributions. One thing I noticed last night is that if I
> leave the setflag(1) in and comment out all the modparam's
> for the acc module, it doesn't crash.
>
> -Kevin
>
> -----Original Message-----
> From: Zeus Ng [mailto:zeus.ng@isquare.com.au]
> Sent: Thursday, September 09, 2004 9:18 AM
> To: 'Kevin McCauley'
> Cc: serusers(a)lists.iptel.org
> Subject: RE: [Serusers] ser-mysql accounting: Crashing SER
>
> Kevin,
>
> Can you attach your ser.cfg? Can say much without that.
>
> Zeus
>
> > -----Original Message-----
> > From: serusers-bounces(a)lists.iptel.org
> > [mailto:serusers-bounces@lists.iptel.org] On Behalf Of Kevin McCauley
> > Sent: Thursday, 9 September 2004 10:13 PM
> > To: serusers(a)lists.iptel.org
> > Subject: [Serusers] ser-mysql accounting: Crashing SER
> >
> >
> > I am having a problem with the acc module crashing my SER
> > when it hits the setflag(1) statement. It appears after many
> > hours of debugging, that when I just include the modparam
> > statements in the config file after it relay's the message I
> > get a "child process # exited by a signal 11" . I have
> > recompiled acc for mysql support and installed it.
> >
> >
> >
> > Thanks,
> >
> >
> >
> > -Kevin
> >
> >
> >
> >
>
>
Thanks for your reply !
When I put strict_route at the place of loose_route, i have an error. (Module
missing).
Ser version is : 0.8.12.
What can i modifie to apply strict routing only?
HELP MEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE
:0)
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();
if (loose_route()) {
t_relay();
break;
};
/* record-route INVITEs -- all subsequent requests must visit us */
if (method=="INVITE") {
record_route();
};
Selon Franz Edler <franz.edler(a)utanet.at>:
> From: Nicolas RUIZ Sent: Wednesday, September 08, 2004 6:14 PM
>
> > I want to disable "loose routing" on IPTEL.
> > What can I write in my configuration file to stop loose routing?
>
> I assume you have to exchange the function "loose_route()"with
> "strict_route()" in you ser.cfg.
>
> > I have disable this line: modparam("rr", "enable_full_lr", 1) but the
> > UA(With RFC 3261) use always loose routing.
>
> Of course, this only modifies the "lr"-parameter in the routing header.
>
> Franz
>
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Hello,
I'm using radius for auth with a mysql backend. I'm a little confused
about Digest. I've read the radius howto and the mysql guide
(http://www.frontios.com/freeradius.html) but it doesn't really explain
digest.
When I add new users I'm putting them in the mysql table
"radcheck". Do I then always have to enter the user in the
/etc/raddb/digest file as well?
I'm trying to run a basic test. Here's what I have in the digest file:
User-Name = "test", Digest-Response =
"631d6d73147add2f9e437f59bbc3aeb7", Digest-Realm = "testrealm",
User-Password = "test", Digest-Nonce = "test" ,
Digest-Method = "INVITE", Digest-URI = "sip:5555551212@example.com",
Digest-Algorithm = "MD5", Digest-User-Name = "test"
"radcheck" table:
UserName = test
Attribute = Password
Value = test
"radgroupcheck" table:
GroupName = phone
Attribute = Auth-Type
Value = Digest
"usergroup" table:
UserName = test
GroupName = phone
When I run:
[root@scratch raddb]# radclient -f digest localhost auth qwerty
Received response ID 81, code 3, length = 20
Here's the debug output:
rad_recv: Access-Request packet from host 127.0.0.1:38061, id=91,
length=154
User-Name = "test"
Digest-Response = "631d6d73147add2f9e437f59bbc3aeb7"
Digest-Attributes = "\001\013testrealm"
User-Password = "test"
Digest-Attributes = "\002\006test"
Digest-Attributes = "\003\010INVITE"
Digest-Attributes = "\004\034sip:5555551212@example.com"
Digest-Attributes = "\006\005MD5"
Digest-Attributes = "\n\006test"
modcall: entering group authorize for request 0
modcall[authorize]: module "preprocess" returns ok for request 0
modcall[authorize]: module "chap" returns noop for request 0
modcall[authorize]: module "eap" returns noop for request 0
rlm_digest: Converting Digest-Attributes to something sane...
Digest-Realm = "testrealm"
Digest-Nonce = "test"
Digest-Method = "INVITE"
Digest-Uri = "sip:5555551212@example.com"
Digest-Algorithm = "MD5"
Digest-User-Name = "test"
rlm_digest: Adding Auth-Type = DIGEST
modcall[authorize]: module "digest" returns ok for request 0
radius_xlat: 'test'
rlm_sql (sql): sql_set_user escaped user --> 'test'
radius_xlat: 'SELECT id,UserName,Attribute,Value,op FROM radcheck WHERE
Username = 'test' ORDER BY id'
rlm_sql (sql): Reserving sql socket id: 4
radius_xlat: 'SELECT
radgroupcheck.id,radgroupcheck.GroupName,radgroupcheck.Attribute,radgroupcheck.Value,radgroupcheck.op FROM radgroupcheck,usergroup WHERE usergroup.Username = 'test' AND usergroup.GroupName = radgroupcheck.GroupName ORDER BY radgroupcheck.id'
radius_xlat: 'SELECT id,UserName,Attribute,Value,op FROM radreply WHERE
Username = 'test' ORDER BY id'
radius_xlat: 'SELECT
radgroupreply.id,radgroupreply.GroupName,radgroupreply.Attribute,radgroupreply.Value,radgroupreply.op FROM radgroupreply,usergroup WHERE usergroup.Username = 'test' AND usergroup.GroupName = radgroupreply.GroupName ORDER BY radgroupreply.id'
rlm_sql (sql): Released sql socket id: 4
modcall[authorize]: module "sql" returns ok for request 0
rlm_realm: No '@' in User-Name = "test", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[authorize]: module "suffix" returns noop for request 0
users: Matched DEFAULT at 152
modcall[authorize]: module "files" returns ok for request 0
modcall[authorize]: module "mschap" returns noop for request 0
modcall: group authorize returns ok for request 0
rad_check_password: Found Auth-Type DIGEST
rad_check_password: Found Auth-Type Digest
Warning: Found 2 auth-types on request for user 'test'
auth: type "digest"
modcall: entering group authenticate for request 0
A1 = test:testrealm:test
A2 = INVITE:sip:5555551212@example.com
KD =
1e00d6dbd30441265df6064b9d9b7da9:test:675b8c827b388805aa252ea38bfb6804
rlm_digest: FAILED authentication
modcall[authenticate]: module "digest" returns reject for request 0
modcall: group authenticate returns reject for request 0
auth: Failed to validate the user.
Login incorrect: [test/test] (from client localhost port 0)
Delaying request 0 for 1 seconds
Finished request 0
Going to the next request
--- Walking the entire request list ---
Waking up in 1 seconds...
--- Walking the entire request list ---
Waking up in 1 seconds...
--- Walking the entire request list ---
Sending Access-Reject of id 91 to 127.0.0.1:38061
Waking up in 4 seconds...
--- Walking the entire request list ---
Cleaning up request 0 ID 91 with timestamp 413f842e
Nothing to do. Sleeping until we see a request.
-------------------------
The username is "test" and the password is "test". I'm stumped.
I'm using FreeRadius 0.9.3 / SER 0.8.12 / radiusclient 0.3.2
Any help is appreciated.
Thanks,
- Darren
Hi Adrian,
a call to pstn is 012345@localdomain
a call to iptel is 012345@remotedomain
Now, the iptel-invite should not be touched and forwarded straight, the pstn
invite must be rewritten to +4912345@localdomain.
Now the problem is if the UA initiating the call is sending an ACK. It will
send the ACK with Request-URI 012345@finaldestination and several route
header fields to traverse the proxy chain.
This 012345@finaldestination must not be touched if the initial call was for
a remote domain (To will be 012345@remotedomain), but it must be rewritten
do +4912345@finaldestination for a PSTN call (To will be
012345@localdomain). Thus there is the need to look after the To value.
Thanks for your feedback,
regards,
Martin
----- Original Message -----
From: Adrian Georgescu
To: Martin Koenig [toplink-plannet GmbH]
Sent: Wednesday, September 08, 2004 5:28 PM
Subject: Re: [Serusers] Domain and To header fields
I understand better now. But why would you do that? If I understand maybe
some idea pops up.
On Sep 8, 2004, at 5:15 PM, Martin Koenig [toplink-plannet GmbH] wrote:
Hi Adrian,
the URI will not be local, it will be the remote target as defined for loose
routing.
Regards,
Martin
----- Original Message -----
From: Adrian Georgescu
To: Martin Koenig
Cc: serusers(a)lists.iptel.org
Sent: Tuesday, September 07, 2004 10:41 PM
Subject: [Serusers] Domain and To header fields
Martin, try is_uri_host_local()
Adrian
>>>>>>>>>>>>>>>
Hi List,
I have a multi domain ser setup with the domain module operating, and I need
to check whether the TO header field contains a local domain or not.
Can this be done with is_domain_local()? If yes how?
Or do i need to write a new function based on is_from_local() to achieve
such a goal.
The Problem is that there is no possiblity to distinguish between our user
calling 012345 at iptel.org (Remote SIP desination) or 012345 at domain.com
(PSTN
target) after (!) the initial INVITE, especially with loose routing. This is
important because Request-URIs to the PSTN have to be transformed (add f.e.
+49), but requests to other sip destinations have to not be touched.
Thanks for your input,
regards,
hello richard ,
as per your previous suggestin i got new cvs download
but i donot know why the same problem is presisting
for me is either my system lacks some thing for that
software which i doubt.
so now my Make file look like this
*****************************************************
[root@server ivr]# cat Makefile
plug_in_name = ivr
#
# perl specific
#
# uncomment the next lines if you want to script the
ivr with perl scripts
# put used Perl modules here, e.g. time, mysql etc.
PERL_DYNLOAD_MODULES = /usr/lib/perl/5.8/auto/IO/IO.so
/usr/lib/perl/5.8/auto/Fcntl/Fcntl.so \
/usr/lib/perl/5.8/auto/Socket/Socket.so
/usr/lib/perl/5.8/auto/DBI/DBI.so \
/usr/lib/perl/5.8/auto/Sys/Hostname/Hostname.so
/usr/lib/perl/5.8/auto/Sys/Syslog/Syslog.so \
/usr/lib/perl/5.8/auto/Sys/Syslog/Syslog.so
/usr/lib/perl5/auto/Date/Calc/Calc.so \
/usr/lib/perl/5.8/auto/MIME/Base64/Base64.so
/usr/lib/perl/5.8/auto/POSIX/POSIX.so \
/usr/lib/perl/5.8/auto/Time/HiRes/HiRes.so
/usr/lib/perl/5.8/auto/Cwd/Cwd.so \
/usr/lib/perl5/auto/Bit/Vector/Vector.so
/usr/lib/perl5/auto/DBD/mysql/mysql.so \
/usr/lib/perl/5.8/auto/Data/Dumper/Dumper.so
/usr/lib/perl/5.8/auto/File/Glob/Glob.so
PERL_module_ldflags = `perl -MExtUtils::Embed -e
ldopts` -DPERL_IMPLICIT_CONTEXT \
$(PERL_DYNLOAD_MODULES)
PERL_module_cflags = -DIVR_PERL `perl
-MExtUtils::Embed -e ccopts ` -DPERL_IMPLICIT_CONTEXT
#
# flite text to speech
#
# uncomment the next lines if you want to have flite
text-to-speech (ivr.say("Hello there"); )
FLITE_DIR = /usr/src/flite-1.2-release
ALT_FLITE_DIR = /usr/include/flite
IVR_TTS_module_ldflags = -L$(FLITE_DIR)/lib -lm
-lflite_cmu_us_kal -lflite_usenglish \
-lflite_cmulex -lflite
IVR_TTS_module_cflags = -I$(FLITE_DIR)/include
-I$(ALT_FLITE_DIR) -DIVR_WITH_TTS
LOCAL_INCLUDES = -I$(FLITE_DIR)/lang/usenglish
LD_FLAGS = -ldl -lpthread -lutil -lm -Xlinker
--export-dynamic -Xlinker --no-strip-discarded
module_ldflags = -ldl -lpthread -lutil -lm -Xlinker
--export-dynamic \
$(PYTHON_module_ldflags) \
$(IVR_TTS_module_ldflags) \
$(PERL_module_ldflags)
# for perl support:
# -DIVR_PERL `perl -MExtUtils::Embed -e ccopts `
# for flite text-to-speech support -DIVR_WITH_TTS
module_cflags = \
$(PYTHON_module_cflags) \
$(IVR_TTS_module_cflags) \
$(PERL_module_cflags)
include ../Makefile.app_module
[root@server ivr]#
*****************************************************
and the erroor information is
*****************************************************
Ivr.cpp: In member function `virtual void
IvrDialog::onSessionStart(AmRequest*)':
Ivr.cpp:243: no matching function for call to
`IvrPython::cancel()'
make[1]: *** [Ivr.o] Error 1
make[1]: Leaving directory
`/root/answer_machine/plug-in/ivr'
make: [all] Error 2 (ignored)
*****************************************************
with regards
serdiehard
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail
I've been with this problem for over 2 weeks now..i still havn't found a
solution. I always read ser-accouting problems and possible solutions
and apply them to my sip server but nothing good has come out.
I installed ser-0.8.14 on 4.9-STABLE FreeBSD running mysql Ver 12.22
Distrib 4.0.16, for portbld-freebsd4.9 (i386) and all seems to be well.
I then added the acc module by reinstalling. I uncommented out the sql
line in acc/Makefile and then made exlude_module="" modules, and finally
installed.
I start SER without any errors, in full debug mode and logging its stuff
on STDOUT, when I make a call I even see it sending invite,trying etc.
but NOTHING is recorded in the ser database!
Some one please look at my ser.cfg and tell me what may be wrong, many
thanks ...
Regards,
Wilson
Hi ..I want to do something like this: When someone calls me at three
numbers ( for example 300800901 and 300800902 and 300800903 ) I want to
direct those calls to a single number ( for example 300800900 ).
And nother problem: if someone calls 300800910 and the number is busy then
I want to direct him to 300800911 or 300800912 and if these two last
numbers are busy too then I want him to be directed to 2222222 (for
example).