Last active
August 12, 2024 13:11
-
-
Save davehorton/94b64b8bafcfdf8779d256b292e644bf to your computer and use it in GitHub Desktop.
inbound node-red application with teams integration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "78a1de2a7f51f760", | |
"type": "tab", | |
"label": "MS Teams Inbound", | |
"disabled": false, | |
"info": "", | |
"env": [] | |
}, | |
{ | |
"id": "c2a2926da5985482", | |
"type": "group", | |
"z": "78a1de2a7f51f760", | |
"name": "MS Teams Inbound", | |
"style": { | |
"label": true | |
}, | |
"nodes": [ | |
"48d626e3514d0119", | |
"3a5e94976f448a0b", | |
"210986dac3667e87", | |
"d336729cf6852ce9" | |
], | |
"x": 34, | |
"y": 19, | |
"w": 812, | |
"h": 82 | |
}, | |
{ | |
"id": "48d626e3514d0119", | |
"type": "function", | |
"z": "78a1de2a7f51f760", | |
"g": "c2a2926da5985482", | |
"name": "Change call format", | |
"func": "// Remove only the outermost double quotes\nmsg.call.caller_name = msg.call.caller_name.replace(/^\"|\"$/g, '');\n\n\nmsg.call.to = \"+\" + msg.call.to;\nmsg.call.from = \"+\" + msg.call.from;\nreturn msg;", | |
"outputs": 1, | |
"timeout": 0, | |
"noerr": 0, | |
"initialize": "", | |
"finalize": "", | |
"libs": [], | |
"x": 410, | |
"y": 60, | |
"wires": [ | |
[ | |
"3a5e94976f448a0b" | |
] | |
] | |
}, | |
{ | |
"id": "3a5e94976f448a0b", | |
"type": "dial", | |
"z": "78a1de2a7f51f760", | |
"g": "c2a2926da5985482", | |
"name": "", | |
"targets": [ | |
{ | |
"type": "teams", | |
"varType": "msg", | |
"dest": "call.to" | |
} | |
], | |
"headers": [], | |
"actionhook": "", | |
"actionhookType": "str", | |
"answeronbridge": true, | |
"anchormedia": true, | |
"callerid": "call.from", | |
"calleridType": "msg", | |
"callername": "call.from", | |
"callernameType": "msg", | |
"confirmhook": "", | |
"confirmhookType": "str", | |
"dialmusic": "", | |
"dialmusicType": "str", | |
"dtmfcapture": "", | |
"dtmfcaptureType": "str", | |
"referhook": "", | |
"referhookType": "str", | |
"dtmfhook": "", | |
"dtmfhookType": "str", | |
"onholdhook": "", | |
"onholdhookType": "str", | |
"timelimit": "", | |
"timeout": "", | |
"listenurl": "", | |
"listenurlType": "str", | |
"transcriptionhook": "", | |
"transcriptionhookType": "str", | |
"transcriptionvendor": "default", | |
"recognizerlang": "default", | |
"recognizeraltlang": "", | |
"recognizeraltlangType": "", | |
"interim": false, | |
"profanityfilter": false, | |
"transcriptionhints": "", | |
"transcriptionhintsType": "str", | |
"separaterecog": false, | |
"useenhanced": false, | |
"words": false, | |
"punctuation": false, | |
"diarization": false, | |
"diarizationmin": 2, | |
"diarizationminType": "num", | |
"diarizationmax": 6, | |
"diarizationmaxType": "num", | |
"interactiontype": "unspecified", | |
"naics": 0, | |
"naicsType": "num", | |
"identifychannels": false, | |
"speakerlabel": false, | |
"vocabularyname": "", | |
"vocabularynameType": "str", | |
"vocabularyfiltername": "", | |
"vocabularyfilternameType": "str", | |
"x": 590, | |
"y": 60, | |
"wires": [ | |
[ | |
"210986dac3667e87" | |
] | |
] | |
}, | |
{ | |
"id": "210986dac3667e87", | |
"type": "webhook out", | |
"z": "78a1de2a7f51f760", | |
"g": "c2a2926da5985482", | |
"name": "", | |
"x": 750, | |
"y": 60, | |
"wires": [] | |
}, | |
{ | |
"id": "d336729cf6852ce9", | |
"type": "webhook in", | |
"z": "78a1de2a7f51f760", | |
"g": "c2a2926da5985482", | |
"name": "", | |
"url": "/msteams/inbound", | |
"method": "post", | |
"x": 170, | |
"y": 60, | |
"wires": [ | |
[ | |
"48d626e3514d0119" | |
] | |
] | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment