Actions462
- Users Actions
- Download Greeting
- Batch Delete
- Get Call Log
- Get Phone Registrars
- Reboot Phone
- Reprovision Phone
- Upgrade Phone
- Generate Prov Link
- Has Duplicated Email
- Get Duplicated Emails
- Send Welcome Email
- List Groups
- List Forwarding Profiles
- Get Phone Secret
- Regenerate
- Regenerate Passwords
- Export Extensions
- Get Phone Registrar
- Bulk Update
- Get User
- Update User
- Delete User
- List Greetings
- Make Call User Record Greeting
- Make Call
- Get Monitor Status
- Set Monitor Status
- Multi User Update
- Reprovision All Phones
- Get Multi Edit Greetings
- Multi Delete Greeting
- Get User By Number
- List User
- Create User
- Active Calls Actions
- Activity Log Actions
- Anti Hacking Settings Actions
- Backups Actions
- Black List Numbers Actions
- Blocklist Actions
- Call Cost Settings Actions
- Call Flow Apps Actions
- Call Flow Scripts Actions
- Call History View Actions
- Call Parking Settings Actions
- Call Types Settings Actions
- CDR Settings Actions
- Chat History View Actions
- Chat Log Settings Actions
- Contacts Actions
- Chat Messages History View Actions
- Codecs Settings Actions
- Conference Settings Actions
- Console Restrictions Actions
- Countries Actions
- Country Codes Actions
- CRM Integration Actions
- Crm Templates Actions
- Custom Prompts Actions
- Data Connector Settings Actions
- Defs Actions
- Device Infos Actions
- Dial Code Settings Actions
- Did Numbers Actions
- DN Properties Actions
- E 164 Settings Actions
- Email Template Actions
- Emergency Geo Locations Actions
- Fax Actions
- Fax Server Settings Actions
- Firewall Actions
- Firmwares Actions
- Fxs Actions
- General Settings For Pbx Actions
- Google Settings Actions
- Emergency Notifications Settings Actions
- Event Logs Actions
- Fxs Templates Actions
- General Settings For Apps Actions
- Groups Actions
- Holidays Actions
- Hotel Services Actions
- Microsoft 365 Integration Actions
- My Group Actions
- Inbound Rules Actions
- Last Cdr And Chat Message Timestamp Actions
- License Status Actions
- Logging Settings Actions
- Microsoft 365 Teams Integration Actions
- Music On Hold Settings Actions
- My Tokens Actions
- My User Actions
- Network Interfaces Actions
- Network Settings Actions
- Notification Settings Actions
- Office Hours Actions
- Outbound Rules Actions
- Parameters Actions
- Parkings Actions
- Peers Actions
- Phone Book Settings Actions
- Phone Logos Actions
- Phones Settings Actions
- Phone Templates Actions
- Playlists Actions
- Prompt Sets Actions
- Purge Settings Actions
- Queues Actions
- Receptionists Actions
- Report Queue Failed Callbacks Actions
- Recordings Actions
- System Status Actions
- Remote Archiving Settings Actions
- Report Abandoned Chats Statistics Actions
- Report Abandoned Queue Calls Actions
- Report Agent Login History Actions
- Report Agents In Queue Statistics Actions
- Report Audit Log Actions
- Report Average Queue Waiting Time Actions
- Report Breaches Sla Actions
- Report Call Cost By Extension Group Actions
- Report Call Distribution Actions
- Report Call Log Data Actions
- Report Detailed Queue Statistics Actions
- Report Extensions Statistics By Ring Groups Actions
- Report Extension Statistics By Group Actions
- Report Extension Statistics Actions
- Report Inbound Rules Actions
- Report Queue Agents Chat Statistics Actions
- Report Queue Agents Chat Statistics Totals Actions
- Report Queue Answered Calls By Wait Time Actions
- Report Queue An Un Calls Actions
- Report Queue Callbacks Actions
- Report Queue Chat Performance Actions
- Report Statistic Sla Actions
- Report Queue Performance Overview Actions
- Report Queue Performance Totals Actions
- Report Ring Group Statistics Actions
- Sbcs Actions
- Secure Sip Settings Actions
- Report Team Queue General Statistics Actions
- Scheduled Reports Actions
- Ring Groups Actions
- Security Tokens Actions
- Service Principals Actions
- Services Actions
- Sip Devices Actions
- Directories Actions
- Tenant Properties Actions
- Trunks Actions
- Trunk Templates Actions
- Updates Actions
- Voicemail Settings Actions
- Website Links Actions
- Report Inbound Calls Actions
- Report Outbound Calls Actions
- Report User Activity Actions
Overview
The "Update Trunk" operation in the 3CX node allows users to modify the configuration of an existing trunk entity within the 3CX telephony system. This operation is useful for administrators who need to update trunk settings such as authentication credentials, call routing rules, codec preferences, and other telephony parameters without recreating the trunk from scratch.
Common scenarios include:
- Changing authentication details (Auth ID and Password) for a trunk.
- Adjusting call direction permissions (inbound/outbound).
- Updating codec or gateway configurations.
- Modifying emergency location data or routing rules.
- Enabling or disabling features like video calls or tunneling.
Practical example: An administrator wants to update the simultaneous call limit and enable inbound calls on a specific trunk identified by its Id. Using this operation, they can send the new configuration directly to 3CX via the API.
Properties
| Name | Meaning |
|---|---|
| Id | The unique identifier of the trunk entity to update. Required. Can be set using expressions like {{$json.Id}}. |
| Auth ID | Authentication ID string used for the trunk. |
| Auth Password | Authentication password in JSON format. |
| Certificate | Certificate string associated with the trunk. |
| Certificate Name | Name of the certificate used. |
| Configuration Issue | Description or flag indicating any configuration issues. |
| Did Numbers | JSON array of DID numbers associated with the trunk. |
| Direction | Call direction allowed on the trunk. Options: None, Inbound, Outbound, Both. |
| Disable Video | Boolean flag to disable video calls on the trunk. Default true. |
| Diversion Header | Boolean flag indicating if diversion headers are enabled. Default true. |
| E 164 Country Code | String representing the E.164 country code for number formatting. |
| E 164 Process Incoming Number | Boolean flag to process incoming numbers according to E.164 formatting. Default true. |
| Emergency Geo Locations | JSON array defining emergency geographic locations related to the trunk. |
| Enable Inbound Calls | Boolean to enable or disable inbound calls. Default true. |
| Enable Outbound Calls | Boolean to enable or disable outbound calls. Default true. |
| External Number | External phone number string associated with the trunk. |
| Gateway | JSON object containing gateway configuration including codecs, inbound/outbound params, source identification, and variable choices. |
| Groups | JSON array defining groups with rights and tags associated with the trunk. |
| In CID Formatting | JSON array defining inbound caller ID formatting rules. |
| IP Restriction | IP restriction type. Options: Any, IPV4, IPV6. |
| Is Online | Boolean indicating if the trunk is currently online. Default true. |
| Messaging | JSON object for messaging-related configuration. |
| Number | Phone number string assigned to the trunk. |
| Outbound Caller ID | String specifying the outbound caller ID. |
| Out CID Formatting | JSON array defining outbound caller ID formatting rules. |
| Public Info Groups | JSON array of public information groups associated with the trunk. |
| Public IP in SIP | String specifying the public IP address used in SIP signaling. |
| Publish Info | Boolean flag to publish trunk info. Default true. |
| Receive Extensions | JSON array defining extensions that receive calls through this trunk. |
| Receive Info | Boolean flag to receive info. Default true. |
| Remote My Phone URI Host | String for remote phone URI host configuration. |
| Remote PBX Prefix | String prefix for remote PBX. |
| Routing Rules | JSON array defining routing rules including holidays, office hours, out-of-office hours, and trunk DN membership and tags. |
| Secondary Registrar | String specifying secondary registrar address. |
| Separate Auth Id | String for separate authentication ID if used. |
| Simultaneous Calls | Number specifying how many simultaneous calls are allowed on the trunk. |
| Tags | JSON array of tags associated with the trunk. |
| Transcription Mode | Mode for transcription services. Options: Nothing, Voicemail, Recordings, Both, Inherit. |
| Transport Restriction | Transport protocol restriction. Options: Any, UDP, TCP, TLS. |
| Trunk Reg Times | JSON array defining registration times for the trunk. |
| Tunnel Enabled | Boolean flag to enable or disable tunneling. Default true. |
| Tunnel Remote Addr | String specifying the remote address for tunneling. |
| Tunnel Remote Port | Number specifying the remote port for tunneling. |
| Use Separate Auth Id | Boolean flag indicating whether to use a separate authentication ID. Default true. |
Output
The output of the "Update Trunk" operation typically contains JSON data reflecting the updated trunk entity as returned by the 3CX API. This includes all the properties of the trunk after the update has been applied, such as identifiers, configuration details, status flags, and any metadata.
If the node supports binary data output (not indicated here), it would generally represent files or media related to the trunk configuration, but this operation primarily deals with JSON data.
Dependencies
- Requires an active connection to a 3CX telephony system API endpoint.
- Requires an API authentication token or OAuth2 credential configured in n8n to authorize requests.
- The base URL for the 3CX server must be correctly set in the node credentials.
- The node sends HTTP requests with JSON payloads to the 3CX API.
Troubleshooting
- Invalid or missing Id: The operation requires a valid trunk Id. Ensure the Id property is provided and corresponds to an existing trunk.
- Authentication errors: If the API key or OAuth2 token is invalid or expired, the request will fail. Refresh or reconfigure credentials.
- Malformed JSON inputs: Properties expecting JSON (e.g., AuthPassword, DidNumbers) must be valid JSON strings. Invalid JSON will cause parsing errors.
- Permission denied: The authenticated user may lack permission to update trunks. Verify API user roles and permissions.
- Network issues: Connectivity problems to the 3CX server will prevent updates. Check network access and server availability.
- Unsupported values: Some properties have restricted options (e.g., Direction, IPRestriction). Providing unsupported values will cause errors.