Unable to create channel of type 'SIP'

i setup a asterisk relay system.the structure is Gw(s) -->asterisk(a) —>asterisk(b)---->gw(d).all is sip protocol.
all works well.but the active calls on asterisk is less than 125,that mean sip channels can not over 250. when call over 125,warnnings appears. as following.is someone have good ideas? thanks

Nov 23 10:24:43 ERROR[11998]: chan_sip.c:11773 sip_request_call: Unable to build sip pvt data for ‘61618613961602163@CT_test_sh_02_2’ (Out of memory)
Nov 23 10:24:43 NOTICE[11998]: app_dial.c:1056 dial_exec_full: Unable to create channel of type ‘SIP’ (cause 42 - Switching equipment congestion)

Nov 23 10:24:45 WARNING[7684]: channel.c:562 ast_channel_alloc: Channel allocation failed: Can’t create alert pipe!
Nov 23 10:24:45 WARNING[7684]: chan_sip.c:2776 sip_new: Unable to allocate SIP channel structure
Nov 23 10:24:45 NOTICE[7684]: chan_sip.c:10676 handle_request_invite: Unable to create/find channel
Nov 23 10:24:45 WARNING[7684]: acl.c:306 ast_ouraddrfor: Cannot create socket
Nov 23 10:24:45 ERROR[7684]: rtp.c:946 ast_rtp_new_with_bindaddr: Unable to allocate socket: Too many open files
Nov 23 10:24:45 WARNING[7684]: chan_sip.c:3118 sip_alloc: Unable to create RTP audio session: Too many open files
Nov 23 10:24:46 WARNING[7684]: channel.c:562 ast_channel_alloc: Channel allocation failed: Can’t create alert pipe!
Nov 23 10:24:46 WARNING[7684]: chan_sip.c:2776 sip_new: Unable to allocate SIP channel structure
Nov 23 10:24:46 NOTICE[7684]: chan_sip.c:10676 handle_request_invite: Unable to create/find channel
Nov 23 10:24:47 WARNING[12009]: res_agi.c:247 launch_script: Unable to create toast pipe: Too many open files
:frowning: :frowning: :frowning: :frowning:

have you modified the ‘ulimit’ for your system to allow more files open ?

voip-info.org/wiki/view/file+descriptors

[quote=“baconbuttie”]have you modified the ‘ulimit’ for your system to allow more files open ?

voip-info.org/wiki/view/file+descriptors[/quote]

yes,i’ve done as you said,but same as before,no affection appear…