npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

n8n-nodes-3cx-sip-call

v1.1.2

Published

n8n custom node for 3CX SIP integration. Make calls, send messages, and register SIP accounts directly from your workflows

Readme

n8n-nodes-3cx-sip-call

npm version License: MIT

n8n custom node for 3CX SIP integration. This node allows you to interact with 3CX SIP servers to make calls, send messages, and register SIP accounts directly from your n8n workflows.

Features

  • Make Calls: Initiate internal or external SIP calls via 3CX
  • Receive Calls: Wait for and auto-answer incoming SIP calls
  • Send Messages: Send SIP messages to other extensions
  • Register Account: Register SIP account with 3CX server
  • Easy Configuration: Simple credential setup in n8n
  • TypeScript: Built with TypeScript for better reliability

Installation

Method 1: Via n8n UI (Recommended)

  1. Open your n8n instance
  2. Go to Settings > Community Nodes
  3. Click Install a community node
  4. Enter: n8n-nodes-3cx-sip-call
  5. Click Install

Method 2: Via npm

npm install n8n-nodes-3cx-sip-call

Then restart your n8n instance.

Configuration

Step 1: Create Credentials

  1. In n8n, go to Credentials > New

  2. Search for 3CX SIP API

  3. Fill in your 3CX SIP server details:

    • SIP Server Address: Your 3CX SIP server IP address (e.g., 10.30.0.2)
    • SIP Server Port: SIP server port (default: 5060)
    • Auth ID: Your authentication ID (e.g., Jd7S9hsA30)
    • Extension Number: Your extension number (e.g., 1070)
    • Password: Your SIP account password

Step 2: Example Configuration

SIP Server: 10.30.0.2
Port: 5060
Auth ID: Jd7S9hsA30
Extension: 1070
Password: o8oIsWzW6V

Usage

Make a Call

  1. Add the 3CX SIP node to your workflow
  2. Select "Make Call" operation
  3. Configure the call parameters:
    • Destination Number: Phone number to call
      • External number: 0539372XXXX or 90539372XXXX
      • Internal extension: 1001
    • Caller ID (From): Optional - Caller ID to display (defaults to extension from credentials)
      • Example: 1070 (leave empty to use default extension)
  4. Connect your credentials
  5. Execute the workflow

Example: Call from extension 1070 to external number 0539372XXXX

  • Destination Number: 0539372XXXX
  • Caller ID: 1070 (or leave empty)

Output:

{
  "success": true,
  "message": "Call initiated",
  "destination": "539372XXXX",
  "callerId": "1070",
  "fromExtension": "1070",
  "sessionId": "call-id-123456"
}

Send a Message

  1. Add the 3CX SIP node to your workflow
  2. Select "Send Message" operation
  3. Enter the message content
  4. Enter the destination number
  5. Connect your credentials
  6. Execute the workflow

Output:

{
  "success": true,
  "message": "Message sent successfully",
  "to": "1001",
  "content": "Hello from n8n!"
}

Receive a Call

  1. Add the 3CX SIP node to your workflow
  2. Select "Receive Call" operation
  3. Configure the wait/answer behavior:
    • Max Wait Time (seconds): How long to wait for an incoming call (default: 30)
    • Auto Answer: Automatically answer the call when it arrives (default: true)
  4. Connect your credentials
  5. Execute the workflow and wait for an incoming call

Output:

{
  "success": true,
  "message": "Incoming call handled",
  "caller": "0539372XXXX",
  "callee": "1070",
  "callId": "call-id-456",
  "autoAnswered": true
}

Register Account

  1. Add the 3CX SIP node to your workflow
  2. Select "Register" operation
  3. Connect your credentials
  4. Execute the workflow to register your SIP account

Output:

{
  "success": true,
  "message": "SIP account registered successfully",
  "extension": "1070",
  "sipServer": "10.30.0.2"
}

Workflow Examples

Example 1: Call External Number from Extension

Manual Trigger → 3CX SIP (Make Call) → Response

Node Configuration:

  • Operation: Make Call
  • Destination Number: 0539372XXXX
  • Caller ID: 1070

Call from extension 1070 to external number 0539372XXXX.

Example 2: Call on Webhook Trigger

Webhook → 3CX SIP (Make Call) → Response

When a webhook is received, automatically make a call to a predefined number. Use {{$json.phoneNumber}} to get the number from webhook data.

Example 3: Send SMS via SIP Message

Schedule Trigger → 3CX SIP (Send Message) → Log

Send a daily reminder message via SIP.

Example 4: Register and Monitor

3CX SIP (Register) → Wait → 3CX SIP (Make Call)

Register the account first, then make a call after a delay.

Example 5: Auto-Answer Incoming Call

Manual Trigger → 3CX SIP (Receive Call)

Use the node to register and wait up to 30 seconds for an incoming call. When the call arrives it is automatically answered so the rest of the workflow can continue (e.g., notify a team, log the call, etc.).

Technical Details

Transport Protocol

This node uses WebSocket transport by default. The implementation uses the sip.js library which primarily supports WebSocket connections.

Important Notes:

  • If your 3CX server requires UDP transport, you may need to configure a SIP proxy
  • Ensure your 3CX server supports WebSocket connections
  • For production use, test thoroughly with your 3CX configuration

Dependencies

  • sip.js: ^0.20.0 - SIP protocol implementation
  • n8n-workflow: n8n workflow types and interfaces

Development

Prerequisites

  • Node.js >= 14
  • npm >= 6
  • n8n instance

Build from Source

# Clone the repository
git clone https://github.com/abdurrahimceylan/n8n-nodes-3cx-sip-call.git
cd n8n-nodes-3cx-sip-call

# Install dependencies
npm install

# Build the project
npm run build

Development Mode

# Watch mode for development
npm run dev

Code Quality

# Lint code
npm run lint

# Fix linting issues
npm run lintfix

# Format code
npm run format

Troubleshooting

Connection Issues

  • Verify your SIP server address and port are correct
  • Check firewall settings
  • Ensure 3CX server is accessible from your n8n instance

Authentication Errors

  • Double-check your Auth ID, Extension, and Password
  • Verify credentials in 3CX management console
  • Ensure the extension is enabled for SIP

WebSocket Connection Failed

  • Confirm 3CX supports WebSocket connections
  • Check if a proxy is required
  • Review 3CX server logs for connection attempts

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see LICENSE file for details

Author

Abdurrahim CEYLAN

Support

For issues and questions:

  • Open an issue on GitHub
  • Check n8n community forums

Related Links


Note: This is a community node. For production use, please test thoroughly with your 3CX server configuration.