agent
Version, currently 1.2.1016 versions
- 1.2.10latestMar 29, 2026
- 1.2.9not indexedApr 25, 2026
- 1.2.8not indexedApr 25, 2026
- 1.2.7not indexedApr 25, 2026
- 1.2.6not indexedApr 25, 2026
- 1.2.5not indexedApr 25, 2026
- 1.2.4not indexedApr 25, 2026
- 1.2.2not indexedApr 25, 2026
- 1.2.1not indexedApr 25, 2026
- 1.2.0not indexedApr 25, 2026
- 1.1.0not indexedApr 25, 2026
- 1.0.4not indexedApr 25, 2026
- 1.0.3not indexedApr 25, 2026
- 1.0.2not indexedApr 25, 2026
- 1.0.1not indexedApr 25, 2026
- 1.0.0not indexedApr 25, 2026
github.com/voipstack/voipstack_agent
VOIPStack Agent
Installation
# Add this to your shard.yml
dependencies:
agent:
github: voipstack/voipstack_agent
version: ~> 1.2.10Then run:
shards installshard.yml
- Crystal
>= 1.17- Author
- Jovany Leandro G.C
- Targets
voipstack_agentfrom src/cli.crvoipstack_agent_mediafrom src/cli_media.cr
Dependencies
Runtime Dependencies
- hep*github: bit4bit/hep.cr
- crest*github: mamantoha/crest
- sip_utils*github: bit4bit/sip_utils.cr
- openssl_ext*github: voipstack/openssl_ext
- asterisk-ami*github: bit4bit/asterisk-ami.cr
- freeswitch-esl1.1.1github: bit4bit/freeswitch-esl.cr, branch: main
- phoenixchannels*github: bit4bit/phoenixchannels.cr
- voipstack_audio_fork*github: voipstack/voipstack_audio_fork
README
VOIPStack Agent
Installation
Github releases
- Go to releases page
- Download the latest release for your platform
- Extract the downloaded archive
- Move the binary to a location in your PATH:
sudo mv voipstack_agent /usr/local/bin/
Usage
Production
For production deployment use systemd service unit. The file should be located at /etc/systemd/system/voipstack_agent.service.
sudo useradd voipstack_agent
sudo chown -R voipstack_agent:voipstack_agent /etc/voipstack
sudo systemctl enable voipstack_agent
sudo systemctl start voipstack_agent
Media Server
To enable real-time stream support, you must use the voipstack_agent_media application.
- Install
voipstack_agent - Download
voipstack_agent_media - Update the
voipstack_agent.servicefile and set the path tovoipstack_agent_media
Development
Step by step to run the agent:
- Generate the priv/pub keys in the same project:
./voipstack_agent --generate-private-key voipstack_agent.key
- Execute the agent:
VOIPSTACK_AGENT_PRIVATE_KEY_PEM_PATH=voipstack_agent.key ./voipstack_agent -s fs://ClueCon:ClueCon@ip
Asterisk Media Support
For Asterisk media support, you can use a custom YAML configuration file. The agent includes default handlers for Asterisk that can be customized via YAML.
Default Asterisk Handlers
The agent provides built-in handlers for Asterisk:
- Hangup Handler - Handles hangup actions
- Listen Handler - Handles audio stream start actions (with
break: trueto stop further processing)
Custom YAML Configuration
Create a custom YAML file (e.g., asterisk.yml) to customize Asterisk handlers:
executor:
listen:
type: softswitch-interface
only_for: "asterisk"
break: true
when:
action: start
app_id: audio
command: Originate
interface:
Channel: PJSIP/<OUTBOUND ENDPOINT>/sip:voipstack@${VOIPSTACK_GLOBAL_AGENT_MEDIA_SIP_HOST}:${VOIPSTACK_GLOBAL_AGENT_MEDIA_SIP_PORT}
Application: ChanSpy
Data: ${VOIPSTACK_ACTION_VENDOR_CHANNEL},q
Variable: "PJSIP_HEADER(add,X-VOIPSTACK-STREAM-IN-URL)=${VOIPSTACK_ACTION_INPUT_INPUT_STREAM_IN_URL}"
Async: true
Running with Custom YAML
./voipstack_agent -s asterisk://ClueCon:ClueCon@ip -c /path/to/asterisk.yml
Environment Variables for Asterisk
The following environment variables are available for customization:
VOIPSTACK_AGENT_MEDIA_SIP_HOST- Media SIP host (default: 127.0.0.1)VOIPSTACK_AGENT_MEDIA_SIP_PORT- Media SIP port (default: 6070)
Example Asterisk Configuration
See examples/asterisk.yml for a complete example configuration.
Considerations
- The application stops on presence of any error.
Contributing
- Fork it (https://github.com/voipstack/voipstack_agent/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- Jovany Leandro G.C - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This release
- Version
1.2.10- Tagged
- Mar 29, 2026
- Commit
06665582ab17- Crystal
>= 1.17- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/voipstack/voipstack_agent
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 15, 2026
- Synced
- Aug 15, 2026
- Versions
- 16