Skip to main content
This page is for FreePBX administrators who want to route calls to the Humain AI without writing dialplan code. If you are an Asterisk developer who prefers scripted control, see the Asterisk AGI integration guide instead.
The Humain Kiosk FreePBX module adds a new destination type — Humain Kiosk AI — to your FreePBX routing table. Once installed, you can route any inbound route, IVR option, or ring group timeout directly to the AI — the same way you would route to a queue or voicemail.

Installation

1

Install the module

In your FreePBX admin panel, go to Admin → Module Admin. Click Check Online to refresh the module repository, then search for “Humain Kiosk”. Click Download and then Process.
Screenshot: Admin → Module Admin → Humain Kiosk → Download and Process
Alternatively, download the .tar.gz from the FreePBX module page and upload it via Module Admin → Upload.After installation, click Apply Config to reload Asterisk.
2

Enter your credential

Go to Admin → Humain Kiosk Settings. Paste your device credential token into the Credential field and click Save.
Screenshot: Admin → Humain Kiosk Settings → Credential field
Issue credentials from the Humain admin panel under Kiosk → Credentials → Issue new credential. The token is displayed only once — copy it before closing that page.
3

Configure the AI destination

Go to Connectivity → Humain Kiosk Destinations. Click Add Destination and configure:
  • Name — a label for this destination (e.g., “Main AI Agent”)
  • Codec preference — G.722 recommended; G.711 PCMU/PCMA for legacy carriers
  • Timeout — maximum call duration in seconds (0 = unlimited)
  • Fallback destination — where to route the call if the AI is unavailable
Screenshot: Connectivity → Humain Kiosk Destinations → Add Destination form
Click Save, then Apply Config.
4

Route calls to the AI

With the destination created, route calls to it from anywhere in FreePBX:
Go to Connectivity → Inbound Routes. Edit the route for the DID number you want the AI to answer. Set Set Destination to Humain Kiosk → [your destination name].
Screenshot: Inbound Routes → Set Destination → Humain Kiosk → Main AI Agent
Click Save, then Apply Config.
5

Test with sandbox mode

Before going live, enable Sandbox mode in Admin → Humain Kiosk Settings. In sandbox mode, the AI uses stub responses — no LLM credits are consumed.Dial the DID number or trigger the IVR option. You should hear a predictable sandbox response. Once satisfied, disable sandbox mode and apply config.
Screenshot: Admin → Humain Kiosk Settings → Sandbox mode toggle

Advanced settings

When enabled, the module passes the caller’s CLI (Caller Line Identification) and the dialled DID to the Humain session as metadata. Your kiosk’s action endpoints can use this to look up customer records.Enable Pass caller metadata in Admin → Humain Kiosk Settings → Advanced. The following fields are added to each session:
The module negotiates codecs with the Humain SIP gateway in this preference order: G.722 → G.711 PCMU → G.711 PCMA.To force a specific codec, change the Codec preference setting on each destination. See the codec guide for quality recommendations.
If the Humain API is unreachable when the call arrives, the module routes to the configured Fallback destination instead of dropping the call. Set the fallback to a queue, voicemail, or another extension in Connectivity → Humain Kiosk Destinations.