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
Hello List,
I am working on an assignment to develop a load balancing asterisk
cluster. I started with google and found out that SER+ASTERISK is the
best way to do it.
Here is what I am trying to do.
I have a sip account / DID (18xx xxx xxxx ) from an abc company. Now the
company is gateway for between my asterisk server and PSTN network. My
Asterisk server registers with abc company's gateway to receive and make
calls.
How can I do load balancing in this case.
I understand that my SER server should register with the gateway, the
gateway should forward call to SER server and then the server should
forward call to one of the asterisk servers.
Is it possible have the SER server register with another SER or Asterisk
server and act like a client to receive and make calls? Can some one
please point me to some documentation or case study?
Thank you,
-JK
Hi all,
Appreciate if someone can give me a suggestion or even an answer.
Since the call from SIP device to PSTN phone did not have Caller ID and
our Telco carriers request for the Caller ID, we have to set a number before
the calls are routed to PSTN gateway.
I did it in Asterisk before with the function calls SetCallerID(CLID) or
Set(CALLERID(number)=CLID) (depends on the Asterisk version) and these
function calls worked. But because of the scalabliity issue, I changed to
SER and would like to do the similar thing as in Asterisk.
I read the SER document and awared SIP_HF_FROM has the data for the
entired FROM field. Is there any other variables for Caller ID only ?
I searched the mailing list for SER and did not find any related topic
(only found one with title: caller-id with raius using sip-rpid, but it is
irrelevant).
Thanks in advance.
Larry
_________________________________________________________________
Try the next generation of search with Windows Live Search today!
http://imagine-windowslive.com/minisites/searchlaunch/?locale=en-us&source=…
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
I am trying to forward requests so that the request is
completely gone and the UA is forwarded to the final
destination with no signaling from the forwarding
system.
For example: "5551212@" would be forwarded to 1.1.1.2
but 1.1.1.2 would not get a redirect request from
1.1.1.1 rather, directly from the UA.
Any thoughts?
Thanks! FR
____________________________________________________________________________________
Access over 1 million songs - Yahoo! Music Unlimited
(http://music.yahoo.com/unlimited)
Hello,
a new presence server which follows the standards and latest draft of
SIMPLE has been committed on CVS. With this occasion I want to introduce
Anca Vamanu, a new developer which will be in charge of maintaining the
presence related stuff.
The new module passed successfully a period of tests with common SIP UAs
having SIMPLE extensions. It is still long way until we get full SIMPLE
extensions, but we have the most desired functionalities: presence info,
watcher info and XCAP. Some of you already tested it, and would be great
if we can collect the experiences everyone encounters with presence
extensions and different UA. There is a dokuwiki page where everybody
can contribute:
http://www.openser.org/dokuwiki/doku.php/presence:presence-module
Since there are not so many mature implementation in client side, the
testing proves to be a difficult process, and your help is very welcome.
The dokuwiki page includes some sample config files that can be used as
starting point.
The news on web site and the readme for the module:
http://www.openser.org/index.php?option=com_content&task=view&id=62&Itemid=9http://www.openser.org/docs/modules/devel/presence.html
Next on track is a generic module which will be able to publish presence
information in behalf of dummy entities. For example will publish
online/offline for hardphones registered on user location table.
Looking forward to your feedback.
Cheers,
Daniel