Hi,
I would like to know if it is possible to append a variable to a log command like:
log(1, "Register received \n");
For troubleshooting purposes I would like to be able to see a log in syslog that would say something like:
"Register received from subscriber= ricvil"
Is it possible to do something like?
log(1, "Register received from subscriber= $username\n");
I could not find any documentation to support this.
Thanks,
Ricardo
Well, I have no problem releasing the code, but there are a few
technical constraints.
- This is very much a test jig. For example, it uses
psql via a pipe to do all database access. That stuff is
layered out, so it can easily be directed at a real postgres
perl module, but we have some issues with perl modules so
tend not to use them, at least in early development. I
would expect it to start groaning at around 100
calls/minute. We're in a beta test at the moment and will
be in production within a month. When our call volume
increases, we will certainly recode this in C. However,
using direct database access from perl would probably give
an 80% of the gains, so that might be the next step.
- It depends on a special syslogd version. The change
is simple -- the timestamp is written as "seconds since
1970" to msec precision instead of the human-readable
representation. Unix time_t is simply more natural for this
kind of work. I didn't attempt to layer the timestamp
processing, but it only occurs in one or two places, so
introducing mktime() and giving up on msecs would generalize
this. I have a converted Linux syslogd.c. I'm pretty sure
less than 10 lines changed. I know I converted a FreeBSD
syslogd as well, but I can't find it.
- The script uses the database to keep state. The first
INVITE inserts the call detail and the call is active (no
call_end time). The first BYE with matching call_id updates
the call_end time. Heuristics are then applied to match
each log entry from the gateway (cisco based) to the
database entry. This allows detection of missed BYEs. The
point is that the the database is integral in the matching
algorithm. The side-benefit is that the database can be
used to display active calls. The algorithm is dependent
on efficient database indexing.
- There is no particular dependency on database type except I
do record endpoint IPs as Postgres "inet" types, but these
are not searched so could as easily be "char" type.
A "timestamp" type of some kind is pretty much crucial.
So, I'm happy to push the code out to the group "as is". If nothing
else, there are probably code fragments worthy of harvest. I can also
put a bit of time into generalizing it a little before making it
available. Opinions?
Andy
--
Andrew Fullford Email: andy(a)august.net
August.Net Services, LLC Web: www.august.net
> Date: Wed, 26 Mar 2003 08:18:44 +0100
> To: "Greg Fausak" <greg(a)august.net>,
> "'Ricardo Villa'" <ricvil(a)epm.net.co>, <serusers(a)lists.iptel.org>
> From: Michael Haberler <mah(a)eunet.at>
> Subject: RE: [Serusers] Accounting Script
> Cc: <sip(a)august.net>
>
> --=======55A13AEF=======
> Content-Type: multipart/alternative; x-avg-checked=avg-ok-722294; boundary="=====================_54395666==.ALT"
>
>
> --=====================_54395666==.ALT
> Content-Type: text/plain; x-avg-checked=avg-ok-722294; charset=us-ascii; format=flowed
> Content-Transfer-Encoding: 8bit
>
> At 18:21 25.03.2003 -0600, Greg Fausak wrote:
>
> >My partner (Andy Fullford) wrote our code that does this.
> >
> >We turned on SER accounting, deliver via SYSLOG, and have a script that
> >scrapes all of that up and creates accounting records.
> >
> >In addition, we apply the syslog accounting output from our
> >gateway routers to verify the INVITE/BYE sequences. Finally,
> >we populate a database with the results. We were going to
> >use radius, but it didn't quite work right for us. I think what we have
> >cobbled together works really well. We don't have any 'hanging' calls
> >anymore....and even if we did we would catch them with the gateway
> >accounting.
> >
> >We did not think the SER user base would be interested. We use a postgres
> >database and
> >this doesn't seem to be mainstream. However, if there is interest for this
> >sort of thing perhaps we could donate it?
>
> me as including the SER user base would be interested.
>
> Also, we are migrating towards a Postgres shop here, so I would be very
> interested in Postgressifying the whole thing, accounting and SER itself.
>
> There was a post a while ago that somebody set out to do a DB interface
> SER/Postgres; if this is under way, fine - if this project was abandoned,
> we might chip in and do it - pleas get in touch with me
>
> -Michael
> nic.at
>
> >
> >Anyway, you could respond to <mailto:sip@august.net>sip(a)august.net and ask
> >Andy if he can
> >hack you out a piece of it to do what you want.
> >
> >---greg
> >Greg Fausak
> >
> >-----Original Message-----
> >From: serusers-admin(a)iptel.org [mailto:serusers-admin@lists.iptel.org] On Behalf
> >Of Ricardo Villa
> >Sent: Tuesday, March 25, 2003 3:53 PM
> >To: serusers(a)lists.iptel.org
> >Subject: [Serusers] Accounting Script
> >
> >Hi,
> >
> >Has anybody developed some sort of crude accounting script for SER that
> >would match all BYEs with their respective INVITEs in the syslog file and
> >say how many seconds each call lasted?
> >
> >Thanks,
> >Ricardo
serweb is a web interface for ser. the database definitions are supplied
with ser.
-jiri
At 05:20 PM 3/26/2003, Frost, Rod wrote:
>All,
>
>Where can I find the database and its schema for use with SerWeb. I have installed serweb but don't see a database in mysql.
>
>Thanks
>
>Rod Frost
>_______________________________________________
>Serusers mailing list
>serusers(a)lists.iptel.org
>http://lists.iptel.org/mailman/listinfo/serusers
--
Jiri Kuthan http://iptel.org/~jiri/
Hi,
Has anybody developed some sort of crude accounting script for SER that would match all BYEs with their respective INVITEs in the syslog file and say how many seconds each call lasted?
Thanks,
Ricardo
Make modules fails on registrar with the following error message(s):
sip_msg.h:75: parse error before "cparam_t"
sip_msg.h:83: parse error before '*' token
Can you fix this (or let me know how to fix it)?
thanks
Stephan
--
Stephan Reiff-Marganiec
Research Fellow
Department of Computing Science; University of Stirling
email: srm(a)cs.stir.ac.uk tel: 01786 46 7448
--
The University of Stirling is a university established in Scotland by
charter at Stirling, FK9 4LA. Privileged/Confidential Information may
be contained in this message. If you are not the addressee indicated
in this message (or responsible for delivery of the message to such
person), you may not disclose, copy or deliver this message to anyone
and any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. In such case, you should destroy this
message and kindly notify the sender by reply email. Please advise
immediately if you or your employer do not consent to Internet email
for messages of this kind. Opinions, conclusions and other
information in this message that do not relate to the official
business of the University of Stirling shall be understood as neither
given nor endorsed by it.
I just updated ser from cvs and encounter the problem that ser will no
longer start.
I have my own module and a function (exec_pol) in that is started from
ser.cfg in the route block.
This used to work fine, but since the latest update from ser, ser just
terminates saying "Parse Error: Command cannot be used in the block".
I got this message after make all, make install and trying to start ser. I
then realised that my module was not compiled anew because the find_export
function now has more arguments (the NO_SCRIPT on, which it didn't need
before). Having fixed this, things compile fine, but the error persists
and I cannot start ser.
Have I overseen an important change??
thanks,
Stephan
--
Dr Stephan Reiff-Marganiec
Research Fellow
Department of Computing Science; University of Stirling
email: srm(a)cs.stir.ac.uk tel: 01786 46 7448
--
The University of Stirling is a university established in Scotland by
charter at Stirling, FK9 4LA. Privileged/Confidential Information may
be contained in this message. If you are not the addressee indicated
in this message (or responsible for delivery of the message to such
person), you may not disclose, copy or deliver this message to anyone
and any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. In such case, you should destroy this
message and kindly notify the sender by reply email. Please advise
immediately if you or your employer do not consent to Internet email
for messages of this kind. Opinions, conclusions and other
information in this message that do not relate to the official
business of the University of Stirling shall be understood as neither
given nor endorsed by it.
Hello,
On 26-03 14:00, Valery Shampal wrote:
> Hi, Jan
>
> Thank you very much indeed.
> So quick answer :-)
>
> As from the page http://www.iptel.org/ser/ under SIP Express Router (ser)
> topic
>
> ========================================================================
> Technical Information:
>
> C-Written. Ported to Linux (PC, IPAQ), BSD (PC) and Solaris (Sun).
> Throughput thousands of calls per second (CPS) on a dual-CPU PC (capacity
> needed to cover Bay Area) and hundreds of CPS on Compaq IPAQ. Support for
> both IPv4 and IPv6. Small footprint size: 300k core, all common modules
> (optional) up to 630k.
> ========================================================================
>
> A dual CPU Pc is mentioned. This was a "trigger" to ask the questions.
Yes, we use a dual Athlon CPU for performance measurements. On this HW
ser with simple configuration is able to do ~ 5000 CPS. The 5k CPS are
stateful, stateless ser could do more.
> We will use it within some Test-Demo Lab along with Hammer, Hammer ST and
> PacketSphere
> products from Empirix (http://www.empirix.com). We are their value added
> distributors here in Israel.
Unfortunately I don't know the products.
> So it might be thousands calls over IP in this Lab. As I understood from
> your answer, there are no
> firm limitations on PC hardware. In other words, one with 450MGhz CPU and
> 512MB
> physical memory might be enough. Am I right?
>
No, there is no HW manufacturer limitation. HW configuration really
depends a lot on the test scenarios. If you are going to have many
concurrent transactions, you will need at least 4 kB of memory per
transaction. So if you know duration of the transactions you can
easily calculate how fast you will run out of memory.
If you are going to use user location and will have many users
registered simultaneously, you will need some additional memory for
user location records (~2kB per record).
Our tests showed that usually memory is the bottleneck. The more
memory you have the longer your tests can run.
> So what about a dual CPU above?
That's a machine we use for testing.
Could you, please, provide us with more information regarding the
testing ? We are also interested in such testing (especially if
you can generate really high number of CPS or messages per
second). Maybe we could provide you with some ser optimizations so
both sides could benefit from it.
Jan.
Dear friends,
We are going to use this product.
I would like to know what version of Linux RedHat on Intel PC is
supported and what hardware is recommended: CPU, Memory, disk, etc.
Thank you very much in advance.
Regards,
Valery
Valery Shampal, MIS Manager
Negev Software Industries, Ltd.
+972-53-987211 mobile
+972-3-5331976 ext. 211
+972-3-5332371 fax
mailto:valery.shampal@nsi.co.il http://www.nsi.co.il
Take a look at
http://snad.ncsl.nist.gov/proj/iptel/
regards,
klaus
-----Original Message-----
From: gooty sreedharreddy [mailto:gsreddy_4c@yahoo.com]
Sent: Wednesday, March 26, 2003 10:51 AM
To: serusers(a)lists.iptel.org
Subject: [Serusers] Any java example SIP server is there ....?
Hi everybody,
we want to develop a SIP server. We downloaded SER from iptel.org. But
which is only for linux/solaris. Is there any server for windows. And we
want develop it using java. Is there any SIP server using java.
Please help me out.
cheers
sreedhar reddy g
_____
Do you Yahoo!?
Yahoo!
<http://rd.yahoo.com/platinum/evt=8162/*http://platinum.yahoo.com/splash
.html> Platinum - Watch CBS' NCAA March Madness, live
<http://rd.yahoo.com/platinum/evt=8162/*http://platinum.yahoo.com/splash
.html> on your desktop!