mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-04 02:03:59 +00:00
The chat layer lets an inbound SIP MESSAGE select which chat proto handles it, and the `api` proto runs the address as a FreeSWITCH API command. The new per-profile `enable-chat-api-proto` param controls that route and is off unless set. A MESSAGE selecting the proto on a profile without it is answered 403 and logged with the source and the requested command. The proto compare is case-insensitive, matching the chat interface registry, which is created with `switch_core_hash_init_nocase()`. The param ships commented out in the four vanilla profiles and the mod_sofia sofia.conf.xml sample.