[OpenSIPS-Devel] SF.net SVN: opensips:[8772] trunk

Ovidiu Sas osas at voipembedded.com
Tue Mar 13 13:32:24 CET 2012


More details on this:
 - if "children" param is set before "listen" param, then it works fine
 - if "children" param is set after "listen", it doesn't work
 - if "children" param is not set, it doesn't work

Regards,
Ovidiu Sas

-- 
VoIP Embedded, Inc.
http://www.voipembedded.com

On Tue, Mar 13, 2012 at 8:25 AM, Ovidiu Sas <osas at voipembedded.com> wrote:
> This seems to create some issues: if the use_children is not present,
> no udp receiver will be created.
>
> Without "use_children":
> $ opensipsctl ps
> Process::  ID=0 PID=10988 Type=attendant
> Process::  ID=1 PID=10989 Type=MI FIFO
> Process::  ID=2 PID=10990 Type=HTTPD
> Process::  ID=3 PID=10991 Type=time_keeper
> Process::  ID=4 PID=10992 Type=timer
> Process::  ID=5 PID=10993 Type=timer
>
> With "use_children" set to 1:
> $ opensipsctl ps
> Process::  ID=0 PID=11092 Type=attendant
> Process::  ID=1 PID=11093 Type=MI FIFO
> Process::  ID=2 PID=11094 Type=HTTPD
> Process::  ID=3 PID=11095 Type=SIP receiver udp:192.168.2.2:5080
> Process::  ID=4 PID=11096 Type=time_keeper
> Process::  ID=5 PID=11097 Type=timer
> Process::  ID=6 PID=11098 Type=timer
>
>
> Regards,
> Ovidiu Sas
>
> On Thu, Mar 8, 2012 at 6:16 AM, Bogdan-Andrei Iancu <bogdan at opensips.org> wrote:
>> Revision: 8772
>>          http://opensips.svn.sourceforge.net/opensips/?rev=8772&view=rev
>> Author:   bogdan_iancu
>> Date:     2012-03-08 11:16:13 +0000 (Thu, 08 Mar 2012)
>> Log Message:
>> -----------
>> add support for configuring different number of processes per UDP interface; existing "children" parameter will define the default number of processes per UDP interfave, if the interface does not have an explicit definition for number of procs.
>>
>> Syntax example:
>>        listen=udp:127.0.0.1:5060 use_children 5
>>        listen=udp:127.0.0.1:5060 as 99.88.44.33:5060 use_children 3
>>        listen=127.0.0.1 use_children 3
>> The "use_children" token is, of course, optional
>>
>> Modified Paths:
>> --------------
>>    trunk/cfg.lex
>>    trunk/cfg.y
>>    trunk/daemonize.c
>>    trunk/ip_addr.h
>>    trunk/main.c
>>    trunk/pt.c
>>    trunk/socket_info.c
>>    trunk/socket_info.h
>>    trunk/statistics.c
>>    trunk/statistics.h



More information about the Devel mailing list