mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-26 12:13:14 +00:00
On a profile with `extended-info-parsing` set, an inbound SIP INFO whose content type is `freeswitch/api-request` puts an FSAPI command in the request body and gets its output back in the 200 OK. The branch needs no dialog, and no `mod_sofia` authentication or ACL setting covers an out-of-dialog INFO. That same param also enables the in-dialog `session-event` half, so there is no way to keep one and not the other. The new per-profile `enable-info-api-request` param gates the api-request branch alone and is off unless set, leaving `session-event` reachable under `extended-info-parsing` as before. An INFO selecting the branch on a profile without the new param is answered 403 and logged with the source and the requested command; a permitted one is logged too, since the source address appears in no event the API path fires. Both lines print the body's first line, capped, rather than the whole body.