[OpenSIPS-Devel] pkg_malloc question

Alex Massover alex at jajah.com
Mon Mar 22 09:34:16 CET 2010


That's a good idea, thanks :) I'll switch to this design for mid/long term solution.

> -----Original Message-----
> From: devel-bounces at lists.opensips.org [mailto:devel-
> bounces at lists.opensips.org] On Behalf Of Bogdan-Andrei Iancu
> Sent: יום ב 22 מרץ 2010 00:35
> To: OpenSIPS devel mailling list
> Subject: Re: [OpenSIPS-Devel] pkg_malloc question
> 
> Hi,
> 
> I think this is the most elegant solution, and you do not actually need
> a new module - use t_write_fifo / t_write_unix (from tm module) to push
> custom data from script to the external app. Your external daemon will
> just read from fifo/uixsock.
> 
> Regards,
> Bogdan
> 
> Stanisław Pitucha wrote:
> > On 21.03.2010 14:26, Alex Massover wrote:
> >
> >> The idea is to have a queue of accounting messages and thread pool
> that takes messages from the queue and sends it to radius server.
> Nothing blocks in this scenario (until queue is full).
> >>
> >
> > Ok - just a quick idea, so someone more experienced may bash me later
> ;)
> >
> > How about a module that simply sends the request to a local
> pipe/socket?
> > Then you can set up a completely separate daemon which receives the
> > information and sends the proper request. This way you don't have to
> > wait for the response and are not limited by Opensips design. Just
> have
> > your daemon do all the threading/scheduling/queueing.
> >
> > Since AF_UNIX is reliable, you can just send the message and not care
> > about it anymore in the opensips code.
> >
> > _______________________________________________
> > Devel mailing list
> > Devel at lists.opensips.org
> > http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
> >
> >
> 
> 
> --
> Bogdan-Andrei Iancu
> www.voice-system.ro
> 
> 
> _______________________________________________
> Devel mailing list
> Devel at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
> 
> This mail was received via Mail-SeCure System.

This mail was sent via Mail-SeCure System.


More information about the Devel mailing list