ARI /channels/externalMedia throwing “Allocation Failed”

Hello, I’m new here. I’m trying to create an externalMedia channel using ARI as shown in the documentation External Media and ARI - Asterisk Project - Asterisk Project Wiki.

As soon as I send a request, I get a response with code 500 and message {“error”: “Allocation failed”}. In the logs I also see the following message:
WARNING[11034] channel.c: No channel type registered for ‘UnicastRTP’

I’ve looked at a lot of forum posts, looked at the documentation, but I can’t solve it.
Any idea what I should do?

It requires the chan_rtp Asterisk module to be loaded. You seemingly don’t have it loaded.

I assumed that, but the engineer assured me that everything was fine. I asked him to check it again and he restarted the chan_rtp module and everything worked. Thank you!

Hello! After a while it stopped working again. The channel was successfully created and I was receiving a stream. But now the “Allocation failed” error is thrown again when creating the channel. I have not changed any configuration since then.

I create the channel like this: http://host:port/ari/channels/externalMedia?channelId=testExternalChannel&app=app&external_host=host:port&format=ulaw&connection_type=client&direction=both

I immediately checked the chan_rtp module and reloaded it, it didn’t help. I rebooted the Asterisk and that didn’t help. I checked the memory and its enough.

What exactly does the “Allocation failed” error mean?

There is no specific answer to that, it’s a generic non-specific error. You would need to give further information, such as what happens in the Asterisk console as well as a log[1].

[1] Collecting Debug Information - Asterisk Project - Asterisk Project Wiki

Engineer transmitted:
WARNING[13462]: channel.c:6256 request_channel: No channel type registered for ‘UnicastRTP’
0x7fca5416d880 – Strict RTP learning after remote address set to: xxx:10412

The rest of the logs look like a normal call. The address in the log does not match the address in the request

If the warning is recent, then that means chan_rtp is not loaded … again.

It really is. But I had to uninstall and reinstall the module several times to make it work. Hopefully it won’t bother us again, but we’ll know what’s wrong. Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.