ARI-Trying to list bridges gives a 500 return

Hopefully this is something simple, but I’ve got a new Asterisk 18.6.0 setup that I’m experimenting with, and this is the first thing that’s not working as expected. I can create a bridge, move channels into a bridge, but I can’t list bridges for some reason. If I send a GET to “http://localhost:8088/ari/bridges” I get back a 500 with error “Allocation failed” in the body. Sending a GET to “http://localhost:8088/ari/channels” works, and I get a channel list back. The debug log when I made the call looks like this:

|354|[2022-01-14 14:56:54] DEBUG[28534] http.c: HTTP Request URI is /ari/bridges||
|---|---|---|
|355|[2022-01-14 14:56:54] DEBUG[28534] http.c: match request [ari/bridges] with handler [httpstatus] len 10||
|356|[2022-01-14 14:56:54] DEBUG[28534] http.c: match request [ari/bridges] with handler [ari] len 3||
|357|[2022-01-14 14:56:54] DEBUG[28534] http.c: Match made with [ari]||
|358|[2022-01-14 14:56:54] DEBUG[28534] res_ari.c: Finding handler for bridges||
|359|[2022-01-14 14:56:54] DEBUG[28534] res_ari.c: Finding handler for bridges||
|360|[2022-01-14 14:56:54] DEBUG[28534] res_ari.c: Checking ari applications: Didn't match bridges||
|361|[2022-01-14 14:56:54] DEBUG[28534] res_ari.c: Checking ari asterisk: Didn't match bridges||
|362|[2022-01-14 14:56:54] DEBUG[28534] res_ari.c: Checking ari bridges: Explicit match with bridges||
|363|[2022-01-14 14:56:54] DEBUG[28534] http.c: HTTP keeping session open. status_code:500||

Note that this is the same result after I’ve already created and am using a bridge, so there’s definitely something active on the system. Any idea why I can’t get a list of bridges?

Do you use create and dial? If so, then there was an issue that was resolved[1].

[1] [ASTERISK-29668] ari: Listing bridges fails when dialing bridge exists - Digium/Asterisk JIRA

Yes, I may have at some point, so that could be it. I’m currently using the freepbx distro, and updated that to 15.0.17.64, but there doesn’t seem to be a way to update the asterisk version on there beyond what’s included in the distro (18.6.0), unless there’s something I’m missing?

I don’t work on FreePBX, I can’t comment on any of that.

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