[asterisk-users] Failed to Allocate port for RTP instance

Kevin P. Fleming kpfleming at digium.com
Wed Jan 18 15:13:28 CST 2012


On 01/18/2012 01:44 AM, shalu dhamija wrote:
> Hello,
>
> I am trying to deposit a voicemail message(using voicemail()
> application) for a subscriber using asterisk-1.8.7.1. But i am facing
> aproblem in the rtp port allocation for a session due to which '488 Not
> Acceptable' response is sent towards the client end. Following are error
> messages:
>
> [Jan 18 12:43:59] ERROR[19164] res_rtp_asterisk.c: Failed to Allocate
> port 7660 for RTP instance '0x1a75ab98'
> [Jan 18 12:43:59] ERROR[19164] res_rtp_asterisk.c: Oh dear... we
> couldn't allocate a port (x=7662)7660 for RTP instance '0x1a75ab98'.
> errno 99
> [Jan 18 12:43:59] DEBUG[19164] rtp_engine.c: Engine 'asterisk' failed to
> setup RTP instance '0x1a75ab98'
> [Jan 18 12:43:59] DEBUG[19164] rtp_engine.c: Destroyed RTP instance
> '0x1a75ab98'
> [Jan 18 12:43:59] DEBUG[19164] chan_sip.c: ERROR: failed to allocate rtp
> instance
> [Jan 18 12:43:59] DEBUG[19164] chan_sip.c: Could not initialize RTP
> instance for dialog: 800E51A5-1140-E111-A216-001A4B4698C3 at 10.34.77.90
> <mailto:800E51A5-1140-E111-A216-001A4B4698C3 at 10.34.77.90>
>
> Please find attached the log file for more information.

The messages you've posted above don't appear to match what is in the 
Asterisk source code; if you've modified res_rtp_asterisk.c, then we 
can't tell you what is wrong if your changes are at fault.

However, on the surface this looks very simple: there aren't any RTP 
ports available for the channel Asterisk was trying to setup. Either you 
need to increase the block of ports defined in rtp.conf to make more 
ports available, or you need to ensure that no other application on the 
system is using the same ports, or both.

-- 
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
Jabber: kfleming at digium.com | SIP: kpfleming at digium.com | Skype: kpfleming
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at www.digium.com & www.asterisk.org



More information about the asterisk-users mailing list