- Joined
- Aug 8, 2024
- Messages
- 1
- Reaction score
- 3
Hello everyone,
I developed a community Call Processing Script for 3CX V20 that provides JSON-based routing for inbound calls received from a SIP trunk.
The script reads the called number and checks routes.json to determine the destination.
Main features:
• Routes calls to 3CX extensions or external numbers
• Uses 3CX outbound rules to select the destination SIP trunk
• Simple JSON routing table
• Normalizes common number-formatting characters
• Logs routing decisions for troubleshooting
• Blocks unmatched numbers by default for security
This can be useful for CUCM-to-3CX integration and other PBX-to-PBX transit-routing scenarios.
GitHub repository:
https://github.com/uchitha1996/3cx-json-trunk-router
The repository includes:
• Commented C# source code
• Example routes.json
• Installation instructions
• Security considerations
• MIT License
Important: This is a community-developed project and is not officially supported by 3CX. Please test it in a non-production environment first. Proper outbound rules and permissions must be configured to prevent unauthorized calls.
Feedback and improvements are welcome.
I developed a community Call Processing Script for 3CX V20 that provides JSON-based routing for inbound calls received from a SIP trunk.
The script reads the called number and checks routes.json to determine the destination.
Main features:
• Routes calls to 3CX extensions or external numbers
• Uses 3CX outbound rules to select the destination SIP trunk
• Simple JSON routing table
• Normalizes common number-formatting characters
• Logs routing decisions for troubleshooting
• Blocks unmatched numbers by default for security
This can be useful for CUCM-to-3CX integration and other PBX-to-PBX transit-routing scenarios.
GitHub repository:
https://github.com/uchitha1996/3cx-json-trunk-router
The repository includes:
• Commented C# source code
• Example routes.json
• Installation instructions
• Security considerations
• MIT License
Important: This is a community-developed project and is not officially supported by 3CX. Please test it in a non-production environment first. Proper outbound rules and permissions must be configured to prevent unauthorized calls.
Feedback and improvements are welcome.