here is the ulimit command output.<br>
<br>
[root@myserver ~]# ulimit<br>
unlimited<br>
<br>
Also if you notice in logs asterisk is running under root privileges.<br>
<br>
- astguy<br>
<br><br><div><span class="gmail_quote">On 1/20/06, <b class="gmail_sendername">Quang Minh Phan</b> <<a href="mailto:quang-minh.phan@wengo.fr">quang-minh.phan@wengo.fr</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>You need to increase the limit of maximum opened files on your system by<br>using ulimit command. If you already reached the hard limit, you need to be<br>root to increase this value.<br><br>Rgds,<br><br>Minh<br>
<br><br>-----Original Message-----<br>From: <a href="mailto:asterisk-dev-bounces@lists.digium.com">asterisk-dev-bounces@lists.digium.com</a><br>[mailto:<a href="mailto:asterisk-dev-bounces@lists.digium.com">asterisk-dev-bounces@lists.digium.com
</a>] On Behalf Of ast guy<br>Sent: vendredi 20 janvier 2006 07:12<br>To: <a href="mailto:asterisk-dev@lists.digium.com">asterisk-dev@lists.digium.com</a><br>Subject: [asterisk-dev] rtp.c: Unable to allocate socket: Too many open
<br>files<br><br>Hi,<br> Asterisk was not responding when reconnected as<br># asterisk -vvr<br><br>and outputing log messages<br><br>---------------   ---------------   ---------------   ---------------<br>Jan 20 04:50:44 WARNING[11231] 
acl.c: Cannot create socket<br>Jan 20 04:50:44 ERROR[11231] rtp.c: Unable to allocate socket: Too<br>many open files<br>Jan 20 04:50:44 WARNING[11231] chan_sip.c: Unable to create RTP audio<br>session: Too many open files
<br>Jan 20 04:50:46 WARNING[11231] acl.c: Cannot create socket<br>Jan 20 04:50:46 ERROR[11231] rtp.c: Unable to allocate socket: Too<br>many open files<br>Jan 20 04:50:46 WARNING[11231] chan_sip.c: Unable to create RTP audio
<br>session: Too many open files<br>Jan 20 04:50:50 WARNING[11231] acl.c: Cannot create socket<br>Jan 20 04:50:50 ERROR[11231] rtp.c: Unable to allocate socket: Too<br>many open files<br>Jan 20 04:50:50 WARNING[11231] chan_sip.c: Unable to create RTP audio
<br>session: Too many open files<br>Jan 20 04:50:58 WARNING[11231] acl.c: Cannot create socket<br>---------------   ---------------   ---------------   ---------------<br><br>when I greped asterisk from lsof (list of open files) output it showed
<br>something<br><br>---------------   ---------------   ---------------   ---------------<br>asterisk  11170    
root    8u    
IPv4    7620763                
UDP<br>*:17008<br>asterisk  11170    
root    9r    
FIFO        0,5            
7314941 pipe<br>asterisk  11170    
root   10r    
FIFO        0,5            
7314942 pipe<br>asterisk  11170    
root   11w    
FIFO        0,5            
7314942 pipe<br>asterisk  11170    
root  
12u      REG        8,6    
8192     309064<br>/var/lib/asterisk/astdb<br>asterisk  11170    
root   13u    
IPv4    7314947                
UDP<br>*:5060<br>asterisk  11170    
root   14u    
IPv4    7314956                
UDP<br>*:4569<br>asterisk  11170    
root   16u    
IPv4    7620764                
UDP<br>*:17009<br>asterisk  11170    
root   18r    
FIFO        0,5            
7620765 pipe<br>asterisk  11170    
root   19w    
FIFO        0,5            
7620765 pipe<br>asterisk  11170    
root   20u    
IPv4    7626265                
UDP<br>*:12800<br>asterisk  11170    
root   21u    
IPv4    7626266                
UDP<br>*:12801<br>asterisk  11170    
root   22r    
FIFO        0,5            
7626267 pipe<br>asterisk  11170    
root   23w    
FIFO        0,5            
7626267 pipe<br>asterisk  11170    
root   24u    
IPv4    7623165                
UDP<br>*:13296<br>asterisk  11170    
root   25u    
IPv4    7623166                
UDP<br>*:13297<br>asterisk  11170    
root   26r    
FIFO        0,5            
7623167 pipe<br>asterisk  11170    
root   27w    
FIFO        0,5            
7623167 pipe<br>asterisk  11170    
root   28u    
IPv4    7624084                
UDP<br>*:16822<br>asterisk  11170    
root   29u    
IPv4    7624085                
UDP<br>*:16823<br>asterisk  11170    
root   30r    
FIFO        0,5            
7624086 pipe<br>asterisk  11170    
root   31w    
FIFO        0,5            
7624086 pipe<br>asterisk  11170    
root   32u    
IPv4    7636044                
UDP<br>*:18038<br>asterisk  11170    
root   33u    
IPv4    7636045                
UDP<br>*:18039<br>asterisk  11170    
root   34r    
FIFO        0,5            
7636046 pipe<br>asterisk  11170    
root   35w    
FIFO        0,5            
7636046 pipe<br>asterisk  11170    
root   36u    
IPv4    7624100                
UDP<br>*:19966<br>asterisk  11170    
root   37u    
IPv4    7623822                
UDP<br>*:19236<br>asterisk  11170    
root   38u    
IPv4    7623823                
UDP<br>*:19237<br>asterisk  11170    
root   39r    
FIFO        0,5            
7623824 pipe<br>asterisk  11170    
root   40w    
FIFO        0,5            
7623824 pipe<br>asterisk  11170    
root   41u    
IPv4    7624101                
UDP<br>*:19967<br>asterisk  11170    
root   42r    
FIFO        0,5            
7624102 pipe<br>asterisk  11170    
root   43w    
FIFO        0,5            
7624102 pipe<br>asterisk  11170    
root   44u    
IPv4    7624152                
UDP<br>*:10446<br>asterisk  11170    
root   45u    
IPv4    7624153                
UDP<br>*:10447<br>asterisk  11170    
root   46r    
FIFO        0,5            
7624154 pipe<br>asterisk  11170    
root   47w    
FIFO        0,5            
7624154 pipe<br>asterisk  11170    
root   48u    
IPv4    7624270                
UDP<br>*:12420<br>asterisk  11170    
root   49u    
IPv4    7624271                
UDP<br>*:12421<br>asterisk  11170    
root   50r    
FIFO        0,5            
7624272 pipe<br>asterisk  11170    
root   51w    
FIFO        0,5            
7624272 pipe<br>asterisk  11170    
root   52u    
IPv4    7624376                
UDP<br>*:18372<br>asterisk  11170    
root   53u    
IPv4    7624377                
UDP<br>*:18373<br>asterisk  11170    
root   54r    
FIFO        0,5            
7624378 pipe<br><br>---------------   ---------------   ---------------   ---------------<br><br>Any one came across this rtp File descriptor issue?<br><br>regards,<br><br>astguy<br></blockquote></div><br>