Hi!
I'm running ser-0.9.6, on FreeBSD 6.1-stable, database backend
is postgresql version 8.1.3.
Today I got errors in logfiles, saying:
messages.2.bz2:May 29 14:35:03 <XXX> /usr/local/sbin/ser[51448]:
ERROR:avpops:dbrow2avp: dbrow contains NULL fields
The similar problem reported in:
http://lists.iptel.org/pipermail/serusers/2005-May/019681.html
with much more detailed description of error, database contents
and config samples.
Patch is trivial, and looks more like a fix to copy'n'paste error:
in mysql/val.c function str2val states:
if (!_s) {
memset(_v, 0, sizeof(db_val_t));
VAL_TYPE(_v) = _t;
VAL_NULL(_v) = 1;
return 0;
}
VAL_NULL(_v) = 0;
and the last line mentions that 'well, that's value is not NULL'.
In postgresql/db_val.c, line 182, function str2valp, the same statement is the:
if (!_s) {
DLOG("str2valp", "got a null value");
VAL_TYPE(_v) = _t;
VAL_NULL(_v) = 1;
return 0;
}
without explicit notification that this is not-NULL value.
More than, nowhere else in this function VAL_NULL(_v) not set to 0.
So, if a value _v.val contained anyting but 0 at the function start,
resulting value will be threated as NULL despite the fact, that _s is NOT NULL.
Patch is obvious, just add VAL_NULL(_v)=0; after cited block (line 188) and
everyting will be ok.
At least for me it's ok for some hours :)
Hi, all.
I know this is a little bit out off Topic. I'm trying to install
CDRTool for CDR normalization and billing with SER. I get the things allmost
working (freeradius + MySQL + SER) But i can't get the CDRs normalized with
price. Can anybody please help me or post a CDRTool global.inc working file?
.
Thanks a lot in advance any help will be highly apreciated!
Hello,
I have a 64bit machine running openser 1.1.0, and wish to log radius
accounting details to radius using the acc module and radiusclient-ng.
I am facing issues talking to a freeradius server, as described at:
https://developer.berlios.de/bugs/?func=detailbug&bug_id=7442&group_id=1208
Basically, the server reports:
Error: Received Accounting-Request packet from w.x.y.z with invalid
signature! (Shared secret is incorrect.)
I have updated to the cvs version of radiusclient-ng, but the problem
still exists. It would appear that the md5 routine is not compatible
with the md5 routine used by the freeradius software.
Just wondering is anyone else has worked their way around this problem.
Cheers, Stuart
> X-Archived: http://article.gmane.org/gmane.comp.voip.openser.user/4415
> From: Daniel-Constantin Mierla <daniel@...>
> Subject: FYI: bug in radiusclient ng for 64b
> Newsgroups: gmane.comp.voip.openser.user, gmane.comp.voip.openser.devel
> Date: 2006-05-16 01:44:16 GMT (13 weeks, 3 days and 58 minutes ago)
>
> On 05/16/06 02:48, Maxim Sobolev wrote:
>> Hi,
>>
>> Reportedly there is an problem in radiusclient library with md5 hash
>> calculation on 64bit platforms (amd64, sparc64, etc), which results in
>> server rejecting requests even with proper secret configured on
>> client. I have applied a fix, but don't have access to any 64bit
>> hardware, therefore can't verify.
>>
>> Therefore, if anybody is having problems with radiusclient on 64bit
>> arch he is more than welcome to try update to the latest version from
>> cvs and let me know if it helps or not. Instructions on checking out
>> sources from berlios cvs are here:
>> https://developer.berlios.de/cvs/?group_id=1208.
>>
>> Thanks!
>>
>> -Maxim
>
Hi,
Just managed to install the new openser administrator and everything just
works. Thanks to Mike for this nice application. However I can't add user
with openserctl anymore. The following error appears:
ERROR 1054 (42S22) at line 1: Unknown column 'phplib_id' in 'field list'
ERROR: introducing the new user '5702' to the database failed
On the other hand, adding new users from administrator GUI does not have
this problem. This happened right after installation of aministrator so I
think it is related to the administrator mysql table changes.
Any suggestions please? Thanks,
Patrick
Hello,
We have a few hundred users registered to a openser we are running and
everything works fine, however i get som error messages in the logs I
would like to get rid of...
//sbin/openser[28867]: ERROR: get_hdr_field: bad to header
/sbin/openser[28867]: ERROR: bad header field
/sbin/openser[28867]: ERROR: get_hdr_field: bad to header
/sbin/openser[28867]: ERROR: bad header field
/sbin/openser[28867]: ERROR:parse_from_header: bad from header
/sbin/openser[28867]: xl_get_from: ERROR cannot parse FROM header
/sbin/openser[28867]: ERROR: get_hdr_field: bad to header
/sbin/openser[28867]: ERROR: bad header field
/sbin/openser[28867]: xl_get_to: ERROR cannot parse TO header
/sbin/openser[28867]: [REGISTER] from [<null>] to [<null>]
/sbin/openser[28867]: ERROR: get_hdr_field: bad to header
/sbin/openser[28867]: ERROR: bad header field
/sbin/openser[28867]: ERROR:maxfwd:is_maxfwd_present : parsing
MAX_FORWARD header failed!
/sbin/openser[28867]: ERROR:parse_from_header: bad from header
/sbin/openser[28867]: insert_RR(): From parsing failed
/sbin/openser[28867]: record_route(): Error while inserting Record-Route
line
/sbin/openser[28867]: ERROR: get_hdr_field: bad to header
/sbin/openser[28867]: ERROR: bad header field
/sbin/openser[28867]: find_first_route: Error while parsing headers
/sbin/openser[28867]: analyzing REGISTER request
/sbin/openser[28867]: ERROR: get_hdr_field: bad to header
/sbin/openser[28867]: ERROR: bad header field
/sbin/openser[28867]: find_credentials(): Error while parsing headers
/sbin/openser[28867]: pre_auth(): Error while looking for credentials
/sbin/openser[28867]: ERROR: get_hdr_field: bad to header
/sbin/openser[28867]: ERROR: bad header field
/sbin/openser[28867]: ERROR: get_hdr_field: bad to header
/sbin/openser[28867]: ERROR: bad header field
/sbin/openser[28867]: ERROR: build_res_buf_from_sip_req: alas,
parse_headers failed
/sbin/openser[28867]: pre_auth(): Error while sending 400 reply
/
Anyone has a clue what I can do to debug this to find out where the
request are coming from or what can be done to stop the invalid(?)
requests from being processed and clutter my logs?
Thanks
Lars Sundqvist
Hi!
append_rpid_hf() was removed from CVS in 2005 with the following note:
"Rpid support dropped, it will be implemented using AVPs."
Is there a standard way of implementing this?
OpenSER utilizes avp_printf() for this which isn't part of SER:
http://www.mail-archive.com/devel@openser.org/msg02248.html
What is the Best Current Practice to add the Rpid header?
If there is none I'd help implementing something new since I'm already
tackling some Rpid to P-Asserted-Identity transformation things.
It would also be handy to add the privacy tag according to another
AVP (although I'm not using it).
Cheers,
Hendrik
--
freenet Cityline GmbH, Hamburger Chaussee 2-4, 24114 Kiel, Germany
Phone: +49 (0)431 9020552, Fax: +49 (0)431 9020559
Internet: http://www.freenet.de, eMail: hendrik.scholz(a)freenet-ag.de
Hi, I'm having some doubts on how to use/do some things with
dispatcher module and failure route.
I'll try to explain my problem.
On my main route block I select the destination (using ds_select_dst)
to where I want to send the message, and indicate that responses
should pass through the failure_route, I also add a header with some
things that are needed by the next proxy. On the failure route when I
get 408 Time Out I mark the previous destination and select the next
destination. until here everything goes fine. After this I want to
change the message that I'm going to send to next proxy, for this I
need to remove the header that I inserted previously on the main route
block and access the destination URI that the ds_next_dst updates.
My first doubt is that when I print the destination URI it has the
previous destination ( the one used in the main route block) but when
it relay's the message it goes to the right destination (the one
returned from ds_next_dst), Is there any reason for this ? I'm using
$du to access it, is this wrong?
My second doubt is, what sip message do I have access to in the
failure route (the one I received or the one I sent out)? I ask this
because I try to remove the header I inserted in the main route block
and it does not remove anything but when I relay the message the
header I tried to remove goes on the message.
Thanks in advance,
José Carlos Silva
[Fri Sep 22 06:54:42 2006] [error] [client 192.168.250.108] PHP
Warning: require_once(DB.php) [<a
href='function.require-once'>function.require-once</a>]: failed to open
stream: No such file or directory in
/srv/www/serweb/html/main_prepend.php on line 38
[Fri Sep 22 06:54:42 2006] [error] [client 192.168.250.108] PHP Fatal
error: require_once() [<a
href='function.require'>function.require</a>]: Failed opening required
'DB.php' (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in
/srv/www/serweb/html/main_prepend.php on line 38
# locate DB.php
/usr/share/php5/PEAR/PEAR/DependencyDB.php
How can I get it?
In the meantime I have tried to turn off loging in config.php:
$config->enable_loging = false;
$config->log_file = "/var/log/serweb";
but get still the same error.
SuSE 10.1 installed pear5 (there is no 'pear')
# pear5 list
Installed packages, channel pear.php.net:
=========================================
Package Version State
Archive_Tar 1.3.1 stable
Console_Getopt 1.2 stable
PEAR 1.4.6 stable
# pear5 list-all
PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried
to allocate 8208 bytes) in /usr/share/php5/PEAR/PEAR/Registry.php on
line 1048
What do I need to do?
bye
Ronald
I used to be able to create user accounts by issuing the following SER
command:
serctl add UserName UserPassword UserName@email
Openser documentation gives the example
openserctl add UserName UserPassword UserName@Email
But when I do this I get the following error
WARINIG: no database engine found - tried ''
This command requires a database engine - none was loaded
So how do you use openserctl to create new users?
Thanks....Chris
Hi, I have a question:
the user A is register, the ip of register is 192.168.0.55.
the user change PC, and this PC have the ip 192.168.0.66
the user register again, in the new machine, but, how to unregister the firsth registration from 192.168.0.55 ?
best regards
Javier