[OpenSIPS-Devel] pkg_malloc question

Bogdan-Andrei Iancu bogdan at voice-system.ro
Sun Mar 21 23:35:13 CET 2010


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




More information about the Devel mailing list