{ "name": "n8n-sip-pbx-demo-part-2-step-1-internal-outbound", "nodes": [ { "parameters": { "triggerOn": "trunk", "ref": "external", "trunkConnectionMode": "dynamic", "trunkStaticUsername": "trunk", "trunkStaticPassword": "Passw0rd", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbxTrigger", "typeVersion": 1, "position": [ -3520, 3072 ], "id": "99ad2fa2-7736-4bbe-9d1f-176d5f5a9461", "name": "external" }, { "parameters": { "triggerOn": "extensions", "ref": "internal", "staticCredentials": { "item": [ { "username": "user1", "password": "Passw0rd", "extension": "101" }, { "username": "user2", "password": "Passw0rd", "extension": "102" }, { "username": "user3", "password": "Passw0rd", "extension": "103" } ] }, "extensionsEnableCallRecording": false, "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbxTrigger", "typeVersion": 1, "position": [ -3520, 3440 ], "id": "34c0d499-5535-4661-aff3-3e4fa9fd8dbb", "name": "internal" }, { "parameters": { "rules": { "values": [ { "conditions": { "options": { "caseSensitive": true, "leftValue": "", "typeValidation": "strict", "version": 3 }, "conditions": [ { "leftValue": "={{ $json.calledNumber }}", "rightValue": "9", "operator": { "type": "string", "operation": "startsWith" }, "id": "2ac76834-3cac-42e4-bc75-c22c53eaee9b" } ], "combinator": "and" }, "renameOutput": true, "outputKey": "External" } ] }, "options": { "fallbackOutput": "extra" } }, "type": "n8n-nodes-base.switch", "typeVersion": 3.4, "position": [ -3312, 3360 ], "id": "2f354859-8935-4c03-876e-180ec3375807", "name": "outgoing_type" }, { "parameters": { "operation": "dial.make", "callMode": "trunk", "ref": "external", "destination": "={{ $json.calledNumber.slice(1) }}", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -3104, 3280 ], "id": "085ed721-f908-4989-a931-00cc0c6260f4", "name": "dial_external" }, { "parameters": { "operation": "dial.make", "callMode": "extension", "extensionNumbers": "={{ $json.calledNumber }}", "options": { "extensionOnlyFreeEndpoints": false } }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -3104, 3440 ], "id": "8b8b4f08-fea2-42f9-b24b-76368c304f8d", "name": "dial_internal" }, { "parameters": { "resource": "call", "operation": "call.bridge", "legAId": "={{ $json.legId }}", "legBId": "={{ $('internal').item.json.legId }}", "options": {} }, "type": "n8n-nodes-sip-pbx.sipPbx", "typeVersion": 1, "position": [ -2896, 3360 ], "id": "f480574c-c5cb-4b4c-9925-71b058d865ef", "name": "bridge_outgoing" } ], "pinData": {}, "connections": { "dial_external": { "main": [ [ { "node": "bridge_outgoing", "type": "main", "index": 0 } ] ] }, "dial_internal": { "main": [ [ { "node": "bridge_outgoing", "type": "main", "index": 0 } ] ] }, "outgoing_type": { "main": [ [ { "node": "dial_external", "type": "main", "index": 0 } ], [ { "node": "dial_internal", "type": "main", "index": 0 } ] ] }, "internal": { "main": [ [ { "node": "outgoing_type", "type": "main", "index": 0 } ], [] ] } }, "active": false, "settings": { "executionOrder": "v1", "binaryMode": "separate", "timeSavedMode": "fixed", "saveDataSuccessExecution": "all", "callerPolicy": "workflowsFromSameOwner", "availableInMCP": false }, "meta": { "templateCredsSetupCompleted": true }, "tags": [] }