Hangup Methods
Dialgen offers two methods for intelligent call termination:Silence Detection
Automatically end calls when no audio is detected:- Unit: Seconds
- Default: 10
- Recommended: 8-15 seconds
How It Works
- Timer starts when agent finishes speaking
- Timer resets if user speaks
- If timer reaches threshold, call ends
- Hangup message plays (if configured)
- Call terminates
Recommended Timeouts
| Use Case | Timeout |
|---|---|
| Quick inquiries | 8-10s |
| Standard support | 10-15s |
| Complex consultations | 15-20s |
Prompt-Based Detection
Add hangup logic to your agent prompt:Example Prompt
Hangup Messages
Configure a custom closing message:Available Variables
{name}- Contact’s name{company}- Contact’s company{email}- Contact’s email- Any custom metadata variables
Examples
Professional:Combining Methods
Use both silence detection and prompt-based hangup:Benefits
- Silence detection: Catches abandoned calls
- Prompt-based: Natural, context-aware endings
- Hangup message: Professional closing
Hangup Status Codes
Track why calls ended:| Status | Description |
|---|---|
COMPLETED | Call ended normally |
USER_HANGUP | User hung up |
SILENCE | Ended due to silence timeout |
TIMEOUT | Reached maximum duration |
FAILED | Technical error |
Status codes are available in call metrics and webhook payloads.
Troubleshooting
Calls Ending Too Early
Solutions:- Increase silence timeout to 15-20 seconds
- Make hangup conditions more specific
- Review call recordings
Calls Running Too Long
Solutions:- Decrease silence timeout to 8-10 seconds
- Add explicit hangup conditions to prompt
- Implement duration limits
Next Steps
Duration Limits
Set maximum call duration
Call Status
Monitor call status and lifecycle