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.
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.
Alternatively, download the
Screenshot — installing from Module Admin
Screenshot — installing from Module Admin
Screenshot: Admin → Module Admin → Humain Kiosk → Download and Process
.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 — entering your credential
Screenshot — entering your credential
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:
Click Save, then Apply Config.
- 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 — adding a Humain Kiosk destination
Screenshot — adding a Humain Kiosk destination
Screenshot: Connectivity → Humain Kiosk Destinations → Add Destination form
4
Route calls to the AI
With the destination created, route calls to it from anywhere in FreePBX:Click Save, then Apply Config.
- Inbound route
- IVR option
- Ring group timeout
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 — setting destination on an inbound route
Screenshot — setting destination on an inbound route
Screenshot: Inbound Routes → Set Destination → Humain Kiosk → Main AI Agent
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 — sandbox mode toggle
Screenshot — sandbox mode toggle
Screenshot: Admin → Humain Kiosk Settings → Sandbox mode toggle
Advanced settings
Passing caller ID to the AI session
Passing caller ID to the AI session
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:
Codec configuration
Codec configuration
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.
Fallback on API error
Fallback on API error
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.