[Asterisk-Dev] file descriptors per call?

Roy Sigurd Karlsbakk roy at karlsbakk.net
Mon Feb 28 01:39:51 MST 2005


>>> how many file descriptors will asterisk need per concurrent gatewayed
>>> call between SIP and IAX2?
>>
>> I don't know the answer for sure, but I believe it to be a significant
>> number; there are pipes created for each channel's audio, and also for
>> alerting the channel driver of events. If the channel uses RTP, then a
>> socket will be created for that as well. There could be 4-6 fds used 
>> for
>> a channel in some cases.
>
> That doesn't sound right. There shouldn't be any pipes for the audio.
> IAX2 and SIP both have a socket open for the call and RTP would be 
> extra
> one more. Audio would be converted to an ast_frame and transfered
> internally as a data structure.

seems there can be a lot, though
# lsof -p 9569|wc -l
     639

that's on a SIP/IAX2 gateway with around 35 active channels

roy




More information about the asterisk-dev mailing list