<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[automate builders - Medium]]></title>
        <description><![CDATA[Automate Builders is a side project of mine. It’s a place where I can share tools that make managing and configuring collaboration solutions easier. Hopefully it allows us all to work smarter rather than harder. - Medium]]></description>
        <link>https://medium.com/automate-builders?source=rss----d6b6f4702c19---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>automate builders - Medium</title>
            <link>https://medium.com/automate-builders?source=rss----d6b6f4702c19---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 17:41:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/automate-builders" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A fax story; Decoding a fax.]]></title>
            <link>https://medium.com/automate-builders/a-fax-story-decoding-a-fax-300532c87fab?source=rss----d6b6f4702c19---4</link>
            <guid isPermaLink="false">https://medium.com/p/300532c87fab</guid>
            <dc:creator><![CDATA[Jeremy Worden]]></dc:creator>
            <pubDate>Wed, 11 Dec 2024 17:11:43 GMT</pubDate>
            <atom:updated>2024-12-11T17:11:43.673Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*HZ-DD67Rr0qShtB8iYpeKQ.png" /></figure><p>You’d think a technology invented in the 1840s would gone thru a revolution in it’s 180 year lifespan. Instead, for countless IT professionals like myself, faxing has become a persistent technology that refuses to die.</p><p>Faxing seems to persist for several reasons despite seeming being outdated. Over my career I’ve always heard that faxing was more secure than other technologies like email. In reality, I feel like this security is more about perception than actual safeguards, as faxes can be intercepted at the machine, misdirected to wrong numbers, or left sitting in paper trays for anyone to see. And recently I’ve discovered that they can be easily decoded from an audio wav file.</p><p>I work in a hospital. We fax a lot. Like a super lot. Like thousands a day a lot. And nearly all of those faxes go off without a hitch. However occasionally I’ll be pulled in on a troubleshooting effort where a single fax is defying all logic. Despite all other faxes working perfectly this single issue becomes a maddening puzzle that can seems like it can never be solved.</p><p>Recently we had another hospital tell us that our faxes to them were arriving jumbled and rotated 90 degrees. Where do you even begin to troubleshoot something like this? There are countless intersection this fax took on it’s journey. Being a network engineer my first thought was, can’t we just do a packet capture as it leaves our network to “see” that fax looks correct?</p><p>Naively I figured that Wireshark had a plugin that would let you see the message, but it was quickly pointed out to me that the packet would only contain the audio of the fax. And that got me thinking, was there something out there that could decode the audio into an image? The simple answer is yes. The long answer is that the code to do this hasn’t been updated since 2005. When you have code that is over 20 years old it can be just as maddening to get it to run on modern machines as is the fax issue that I’m trying to solve with it.</p><p>I figured if I could just get it to run, then I could containerize it for everyone and share it. So here it is, my containerized version of <a href="https://github.com/freeswitch/spandsp">SpanDSP</a>.</p><p><a href="https://github.com/sieteunoseis/spandsp">GitHub - sieteunoseis/spandsp</a></p><p>I won’t bore you with all the details of this project in this post, but you are welcomed to read about them on Github. Also in researching this issue I stumbled across other articles that paved the way for me. Interestedly someone wanted to decode a hidden track on a CD that contained “fax” noises. Spoiler alert, they got it decoded. Also I nerded out on this and ordered a copy of the CD from Germany.</p><p><a href="https://www.journaldulapin.com/2022/10/10/decode-fax/">Décoder un fax - Le journal du lapin</a></p><p>And here another user wanted to decode a fax that was left on a voicemail (Which makes me really question that whole security perspective).</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=https%3A%2F%2Fbsky.app%2Fprofile%2Fab.bsky.social%2Fpost%2F3k7mfrt35du2p&amp;type=text%2Fhtml&amp;schema=bluesky&amp;display_name=bluesky&amp;src=https%3A%2F%2Fbsky.app%2Fprofile%2Fab.bsky.social%2Fpost%2F3k7mfrt35du2p%2F%3Fdata_bluesky_uri%3Dat%3A%2F%2Fdid%3Aplc%3A5e7foz6p4nmsch3ulrt42q6d%2Fapp.bsky.feed.post%2F3k7mfrt35du2p" width="600" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/374bc4d1ef6bc69c0d4ec244e1d9c6bf/href">https://medium.com/media/374bc4d1ef6bc69c0d4ec244e1d9c6bf/href</a></iframe><p>Lastly here is a post where I found some of the audio I used to test the decoder.</p><p><a href="https://goughlui.com/2013/02/13/sounds-of-fax-modes-and-ecm/">Sounds of Fax Modes and ECM</a></p><p>Feel free to reach out via the comments or on the project’s GitHub page if you have any questions or improvements.</p><p>For those that are curious, our decoded faxes appeared fine as they left our network so we are still hunting for the reason.</p><p>Thanks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=300532c87fab" width="1" height="1" alt=""><hr><p><a href="https://medium.com/automate-builders/a-fax-story-decoding-a-fax-300532c87fab">A fax story; Decoding a fax.</a> was originally published in <a href="https://medium.com/automate-builders">automate builders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Low code Cisco DevOps automation with Node-RED]]></title>
            <link>https://medium.com/automate-builders/low-code-devops-automation-with-node-red-784a868a69b8?source=rss----d6b6f4702c19---4</link>
            <guid isPermaLink="false">https://medium.com/p/784a868a69b8</guid>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[cisco]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[node-red]]></category>
            <dc:creator><![CDATA[Jeremy Worden]]></dc:creator>
            <pubDate>Mon, 06 Nov 2023 22:54:18 GMT</pubDate>
            <atom:updated>2023-11-07T22:41:23.073Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*8J38lV2wvPi2Ml1nKNsBRg.png" /></figure><p>Today we’ll be using <a href="https://nodered.org/">Node-RED</a> as a DevOps tool to automate Cisco Collaboration workflows. Node-RED is an easy to use application that allows users to create functionality by wiring together flows. These flows can then be easily shared as JSON files.</p><h3>Getting Started</h3><p>This boilerplate consists of the Node-RED image based on Node 18. It will also install the following Cisco Collaboration packages via NPM.</p><ul><li><a href="https://www.npmjs.com/package/cisco-axl">Cisco AXL</a></li><li><a href="https://www.npmjs.com/package/cisco-perfmon">Cisco Perfmon</a></li><li><a href="https://www.npmjs.com/package/cisco-risport">Cisco Risport</a></li><li><a href="https://www.npmjs.com/package/cisco-dime">Cisco DIME</a></li></ul><p>Additionally, it will also install the <a href="https://github.com/FlowFuse/node-red-dashboard">FlowFuse Dashboard 2.0</a> that we can use to interact with our flows.</p><p>To get started lets clone the boilerplate from <a href="https://github.com/sieteunoseis/cisco-vos-node-red-boilerplate">GitHub</a> and use Docker to get the application up and running:</p><pre>git clone https://github.com/sieteunoseis/cisco-vos-nodered-bolierplate.git<br>cd cisco-vos-nodered-bolierplate<br>docker-compose up -d</pre><p>Your application should now be up and running on port 1880! Navigate to <a href="http://localhost:1880/">http://localhost:1880</a> to access application.</p><p>Now that our boilerplate is up and running. Let’s take a look at some examples.</p><h3><strong>Get Random SIP Trunk via AXL</strong></h3><p>Here is a fully working example flow for retrieving the configuration of a random SIP trunk. This example shows how to build a flow that will display the data on a dashboard after retrieving.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KPX8HPi_biDOlutY" /><figcaption>Node-RED flow to retrieve a random SIP Trunk from Cisco CUCM application</figcaption></figure><p>You can import this flow with the following JSON:</p><pre>[{&quot;id&quot;:&quot;60644299e58c7c53&quot;,&quot;type&quot;:&quot;subflow&quot;,&quot;name&quot;:&quot;Set Global Variables&quot;,&quot;info&quot;:&quot;&quot;,&quot;category&quot;:&quot;&quot;,&quot;in&quot;:[{&quot;x&quot;:40,&quot;y&quot;:80,&quot;wires&quot;:[{&quot;id&quot;:&quot;f08e510bbf870d27&quot;}]}],&quot;out&quot;:[{&quot;x&quot;:400,&quot;y&quot;:80,&quot;wires&quot;:[{&quot;id&quot;:&quot;f08e510bbf870d27&quot;,&quot;port&quot;:0}]}],&quot;env&quot;:[],&quot;meta&quot;:{},&quot;color&quot;:&quot;#DDAA99&quot;},{&quot;id&quot;:&quot;f08e510bbf870d27&quot;,&quot;type&quot;:&quot;change&quot;,&quot;z&quot;:&quot;60644299e58c7c53&quot;,&quot;name&quot;:&quot;Set Global Variables&quot;,&quot;rules&quot;:[{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;hostname&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;hq-cucm-pub.abc.inc&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;username&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;administrator&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;password&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;ciscopsdt&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;version&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;14.0&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;ciscoAxlOpts&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;{\&quot;clean\&quot;:true,\&quot;removeAttributes\&quot;:false,\&quot;dataContainerIdentifierTails\&quot;:\&quot;_data\&quot;}&quot;,&quot;tot&quot;:&quot;json&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;debug&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;false&quot;,&quot;tot&quot;:&quot;str&quot;}],&quot;action&quot;:&quot;&quot;,&quot;property&quot;:&quot;&quot;,&quot;from&quot;:&quot;&quot;,&quot;to&quot;:&quot;&quot;,&quot;reg&quot;:false,&quot;x&quot;:220,&quot;y&quot;:80,&quot;wires&quot;:[[]]},{&quot;id&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;type&quot;:&quot;tab&quot;,&quot;label&quot;:&quot;AXL — Random SIP Trunk&quot;,&quot;disabled&quot;:false,&quot;info&quot;:&quot;# Introduction\n\nThis flow demonstrates how to use nodes to interface with Cisco AXL API. The final result is diplaying a table on the dashboard of a random SIP trunk.\n\n# Set Global Variables Group\n\nSet global variables needed for flow to run. Note: this flow is set to auto run once after being deployed.\n\n# Return All Operations Group\n\nUses AXL to return an array of all the operations users can use via AXL. Output is viewable in the Debug messages tab. Click next to \&quot;Press here -&gt;\&quot; on injection to start flow.\n\n# Return Operations with Filter Group\n\nUses AXL to return an array of all the operations users can use via AXL, filtered by keyword. Useful if you wanted to find all AXL operations that had the word \&quot;phone\&quot; in it as an example. Output is viewable in the Debug messages tab. Click next to \&quot;Press here -&gt;\&quot; on injection to start flow.\n\n# Get Random SIP Trunk Group\n\nUses AXL to retrieve a random SIP trunk and display results in a table to the user. Click next to \&quot;Press here -&gt;\&quot; on injection to start flow, or via form on UI dashboard.&quot;,&quot;env&quot;:[]},{&quot;id&quot;:&quot;624832a2fb087436&quot;,&quot;type&quot;:&quot;group&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;name&quot;:&quot;Set Global Variables Group&quot;,&quot;style&quot;:{&quot;label&quot;:true},&quot;nodes&quot;:[&quot;af4227575775487d&quot;,&quot;1a80d16add27b309&quot;,&quot;5428f3977c5f9c86&quot;,&quot;234bc8b4609e370f&quot;,&quot;e9a74c8b987834e0&quot;],&quot;x&quot;:34,&quot;y&quot;:59,&quot;w&quot;:972,&quot;h&quot;:122},{&quot;id&quot;:&quot;5e131529b1525be2&quot;,&quot;type&quot;:&quot;group&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;name&quot;:&quot;Return All Operations Group&quot;,&quot;style&quot;:{&quot;label&quot;:true},&quot;nodes&quot;:[&quot;475b89a28f9e7ab5&quot;,&quot;853c94ff3ad03a7e&quot;,&quot;bfc9ccc1e9466a23&quot;,&quot;6292f890b1b24eee&quot;,&quot;591982ccb0f527f9&quot;],&quot;x&quot;:34,&quot;y&quot;:199,&quot;w&quot;:972,&quot;h&quot;:142},{&quot;id&quot;:&quot;7c8a44c41684705d&quot;,&quot;type&quot;:&quot;group&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;name&quot;:&quot;Return Operations with Filter Group&quot;,&quot;style&quot;:{&quot;label&quot;:true},&quot;nodes&quot;:[&quot;cdba16f310ac15c6&quot;,&quot;5a13e4f32538d506&quot;,&quot;f3e225601e0e0429&quot;,&quot;b9c462316925e74d&quot;,&quot;c68528eeda140778&quot;],&quot;x&quot;:34,&quot;y&quot;:379,&quot;w&quot;:972,&quot;h&quot;:142},{&quot;id&quot;:&quot;6f101b74d7ad4085&quot;,&quot;type&quot;:&quot;group&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;name&quot;:&quot;Get Random SIP Trunk Group&quot;,&quot;style&quot;:{&quot;label&quot;:true},&quot;nodes&quot;:[&quot;d99317627aa41903&quot;,&quot;a12b7c8869f6e1fa&quot;,&quot;bbf77229aa5b40ea&quot;,&quot;2416470f2b89eec9&quot;,&quot;61a3698fccb814ea&quot;,&quot;223adf1aa5c328ef&quot;,&quot;78adbeb053e64068&quot;,&quot;66f6b14997e6ae9b&quot;,&quot;629c91408aecb192&quot;,&quot;82f325dc80e52adb&quot;,&quot;2273fa315ba06f4b&quot;,&quot;da0505e42946b287&quot;,&quot;925ab0b059e02556&quot;,&quot;398d0586af379d3f&quot;,&quot;ff18cb83d5b4074b&quot;,&quot;b6018c440e223a4d&quot;,&quot;ce390508bbf6881d&quot;,&quot;6532eaf6f583f04e&quot;,&quot;4ac06dd4e7168b2a&quot;,&quot;b3db52093d05b479&quot;,&quot;448a5099cd3b8c37&quot;,&quot;4185eecfe7bad6eb&quot;,&quot;02231b158874ce78&quot;,&quot;7ea40055f154c6a3&quot;,&quot;8ee9a7af249a3343&quot;,&quot;686e38a7dae027dc&quot;,&quot;235c66d492bfe1f2&quot;,&quot;bc4eae98dc9cdc6e&quot;,&quot;a669ecc3b20364c8&quot;],&quot;x&quot;:34,&quot;y&quot;:559,&quot;w&quot;:1252,&quot;h&quot;:902},{&quot;id&quot;:&quot;475b89a28f9e7ab5&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;5e131529b1525be2&quot;,&quot;name&quot;:&quot;Return Operations&quot;,&quot;func&quot;:&quot;try {\n let service = new ciscoAxl(global.get(\&quot;hostname\&quot;), global.get(\&quot;username\&quot;), global.get(\&quot;password\&quot;), global.get(\&quot;version\&quot;));\n\n var msg;\n var operations = await service.returnOperations();\n \n msg = {\n payload: operations\n };\n\n return msg;\n} catch (error) {\n let errMsg = null\n errMsg = JSON.stringify(error);\n throw new Error(errMsg)\n}&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:&quot;&quot;,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[{&quot;var&quot;:&quot;ciscoAxl&quot;,&quot;module&quot;:&quot;cisco-axl&quot;}],&quot;x&quot;:610,&quot;y&quot;:300,&quot;wires&quot;:[[&quot;853c94ff3ad03a7e&quot;]]},{&quot;id&quot;:&quot;853c94ff3ad03a7e&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;5e131529b1525be2&quot;,&quot;name&quot;:&quot;Debug payload&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;payload&quot;,&quot;targetType&quot;:&quot;msg&quot;,&quot;statusVal&quot;:&quot;&quot;,&quot;statusType&quot;:&quot;auto&quot;,&quot;x&quot;:880,&quot;y&quot;:300,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;af4227575775487d&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;624832a2fb087436&quot;,&quot;name&quot;:&quot;Set Variables&quot;,&quot;props&quot;:[{&quot;p&quot;:&quot;payload&quot;}],&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:true,&quot;onceDelay&quot;:0.1,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;{\&quot;variables\&quot;:\&quot;set\&quot;,\&quot;flow\&quot;:\&quot;Get Random SIP Trunk\&quot;}&quot;,&quot;payloadType&quot;:&quot;json&quot;,&quot;x&quot;:350,&quot;y&quot;:140,&quot;wires&quot;:[[&quot;234bc8b4609e370f&quot;]],&quot;outputLabels&quot;:[&quot;Payload&quot;],&quot;info&quot;:&quot;# Introduction\n\nWhere we set the initial payload. This will be the where results are stored as it flows thru nodes.&quot;},{&quot;id&quot;:&quot;1a80d16add27b309&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;624832a2fb087436&quot;,&quot;name&quot;:&quot;Set to Auto Run -&gt;&quot;,&quot;info&quot;:&quot;First node will initalize flow.\n\nMake sure your AXL settings are correct in the ‘Set Global Variables’ node.\n\nThis will auto run every time you \&quot;Deploy\&quot; the flow.&quot;,&quot;x&quot;:150,&quot;y&quot;:140,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;bfc9ccc1e9466a23&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;5e131529b1525be2&quot;,&quot;name&quot;:&quot;Return All Operations&quot;,&quot;info&quot;:&quot;# Return All Operations\n\nThis flow will return all the operations available via AXL on this CUCM cluster.\n\nResults returned in array.&quot;,&quot;x&quot;:360,&quot;y&quot;:240,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;cdba16f310ac15c6&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;7c8a44c41684705d&quot;,&quot;name&quot;:&quot;Set Filter Keyword&quot;,&quot;props&quot;:[{&quot;p&quot;:&quot;payload&quot;},{&quot;p&quot;:&quot;topic&quot;,&quot;vt&quot;:&quot;str&quot;}],&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:false,&quot;onceDelay&quot;:0.1,&quot;topic&quot;:&quot;returnOperations&quot;,&quot;payload&quot;:&quot;{\&quot;filter\&quot;:\&quot;siptrunk\&quot;}&quot;,&quot;payloadType&quot;:&quot;json&quot;,&quot;x&quot;:370,&quot;y&quot;:480,&quot;wires&quot;:[[&quot;5a13e4f32538d506&quot;]],&quot;outputLabels&quot;:[&quot;Payload&quot;],&quot;info&quot;:&quot;# Introduction\n\nInject node to start flow. Set filter keyword here.&quot;},{&quot;id&quot;:&quot;5a13e4f32538d506&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;7c8a44c41684705d&quot;,&quot;name&quot;:&quot;Return Operations (Filter)&quot;,&quot;func&quot;:&quot;try {\n let service = new ciscoAxl(global.get(\&quot;hostname\&quot;), global.get(\&quot;username\&quot;), global.get(\&quot;password\&quot;), global.get(\&quot;version\&quot;));\n\n var newMsg;\n var operations = await service.returnOperations(msg.payload.filter);\n \n newMsg = {\n payload: operations,\n topic: msg.topic\n };\n\n return newMsg;\n} catch (error) {\n let errMsg = null\n errMsg = JSON.stringify(error);\n throw new Error(errMsg)\n}&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:&quot;&quot;,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[{&quot;var&quot;:&quot;ciscoAxl&quot;,&quot;module&quot;:&quot;cisco-axl&quot;}],&quot;x&quot;:630,&quot;y&quot;:480,&quot;wires&quot;:[[&quot;f3e225601e0e0429&quot;]]},{&quot;id&quot;:&quot;f3e225601e0e0429&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;7c8a44c41684705d&quot;,&quot;name&quot;:&quot;Debug payload&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;payload&quot;,&quot;targetType&quot;:&quot;msg&quot;,&quot;statusVal&quot;:&quot;&quot;,&quot;statusType&quot;:&quot;auto&quot;,&quot;x&quot;:880,&quot;y&quot;:480,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;b9c462316925e74d&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;7c8a44c41684705d&quot;,&quot;name&quot;:&quot;Return Operations With \&quot;siptrunk\&quot; Filter&quot;,&quot;info&quot;:&quot;This flow will get all the operations available via AXL on this CUCM cluster.\n\nResults returned in array, filtered by keyword.&quot;,&quot;x&quot;:410,&quot;y&quot;:420,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;d99317627aa41903&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Get Operations Tags&quot;,&quot;func&quot;:&quot;try {\n let service = new ciscoAxl(global.get(\&quot;hostname\&quot;), global.get(\&quot;username\&quot;), global.get(\&quot;password\&quot;), global.get(\&quot;version\&quot;));\n\n var msg;\n var operation = \&quot;getSipTrunk\&quot;;\n var tags = await service.getOperationTags(operation);\n\n msg = {\n payload: tags,\n topic: ‘getSipTrunk’\n };\n\n return msg;\n} catch (error) {\n let errMsg = null\n errMsg = JSON.stringify(error);\n throw new Error(errMsg)\n}&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[{&quot;var&quot;:&quot;ciscoAxl&quot;,&quot;module&quot;:&quot;cisco-axl&quot;}],&quot;x&quot;:300,&quot;y&quot;:1220,&quot;wires&quot;:[[&quot;da0505e42946b287&quot;,&quot;a669ecc3b20364c8&quot;]]},{&quot;id&quot;:&quot;a12b7c8869f6e1fa&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Get all tags needed for operation: ‘getSipTrunk’&quot;,&quot;info&quot;:&quot;This flow will get all the operations available via AXL on this CUCM cluster.\n\nResults returned in array, filtered by keyword.&quot;,&quot;x&quot;:300,&quot;y&quot;:1160,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;bbf77229aa5b40ea&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Set operation&quot;,&quot;props&quot;:[{&quot;p&quot;:&quot;payload&quot;}],&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:false,&quot;onceDelay&quot;:0.1,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;{\&quot;operation\&quot;:\&quot;listSipTrunk\&quot;}&quot;,&quot;payloadType&quot;:&quot;json&quot;,&quot;x&quot;:370,&quot;y&quot;:660,&quot;wires&quot;:[[&quot;2416470f2b89eec9&quot;]],&quot;outputLabels&quot;:[&quot;Payload&quot;],&quot;info&quot;:&quot;# Introduction\n\nUse injection node to start flow. Here you can specify the payload that will be send to the next node. Useful for passing settings to next node.&quot;},{&quot;id&quot;:&quot;2416470f2b89eec9&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Get Operations Tags&quot;,&quot;func&quot;:&quot;try {\n let service = new ciscoAxl(global.get(\&quot;hostname\&quot;), global.get(\&quot;username\&quot;), global.get(\&quot;password\&quot;), global.get(\&quot;version\&quot;));\n\n var newMsg;\n var operation = msg.payload.operation;\n var tags = await service.getOperationTags(operation);\n\n newMsg = {\n payload: tags,\n topic: operation\n };\n\n return newMsg;\n} catch (error) {\n let errMsg = null\n errMsg = JSON.stringify(error);\n throw new Error(errMsg)\n}&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:&quot;&quot;,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[{&quot;var&quot;:&quot;ciscoAxl&quot;,&quot;module&quot;:&quot;cisco-axl&quot;}],&quot;x&quot;:700,&quot;y&quot;:660,&quot;wires&quot;:[[&quot;223adf1aa5c328ef&quot;,&quot;a669ecc3b20364c8&quot;]]},{&quot;id&quot;:&quot;61a3698fccb814ea&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Get All Tags needed for operation: ‘listSipTrunk’&quot;,&quot;info&quot;:&quot;This flow will get all the operations available via AXL on this CUCM cluster.\n\nResults returned in array, filtered by keyword.&quot;,&quot;x&quot;:420,&quot;y&quot;:600,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;223adf1aa5c328ef&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Return Results from ‘listSipTrunk’&quot;,&quot;func&quot;:&quot;try {\n let service = new ciscoAxl(global.get(\&quot;hostname\&quot;), global.get(\&quot;username\&quot;), global.get(\&quot;password\&quot;), global.get(\&quot;version\&quot;));\n var newMsg;\n var operation = msg.topic;\n\n msg.payload.searchCriteria.name = \&quot;%%\&quot;;\n msg.payload.searchCriteria.description = \&quot;%%\&quot;;\n msg.payload.searchCriteria.callingSearchSpaceName = \&quot;%%\&quot;;\n msg.payload.searchCriteria.devicePoolName = \&quot;%%\&quot;;\n\n var results = await service.executeOperation(operation, msg.payload, global.get(\&quot;ciscoAxlOpts\&quot;));\n\n newMsg = {\n payload: results,\n topic: ‘listSipTrunkData’\n };\n\n return newMsg;\n} catch (error) {\n let errMsg = null\n errMsg = JSON.stringify(error);\n throw new Error(errMsg)\n}&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:&quot;&quot;,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[{&quot;var&quot;:&quot;ciscoAxl&quot;,&quot;module&quot;:&quot;cisco-axl&quot;}],&quot;x&quot;:280,&quot;y&quot;:980,&quot;wires&quot;:[[&quot;ff18cb83d5b4074b&quot;,&quot;a669ecc3b20364c8&quot;]]},{&quot;id&quot;:&quot;78adbeb053e64068&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Call ‘listSipTrunk’ operation&quot;,&quot;info&quot;:&quot;This function will get all the operations available via AXL on this CUCM cluster.\n\nResults returned in array, filtered by keyword.&quot;,&quot;x&quot;:300,&quot;y&quot;:920,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;6292f890b1b24eee&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;5e131529b1525be2&quot;,&quot;name&quot;:&quot;&quot;,&quot;props&quot;:[{&quot;p&quot;:&quot;payload&quot;}],&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:false,&quot;onceDelay&quot;:0.1,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;{}&quot;,&quot;payloadType&quot;:&quot;json&quot;,&quot;x&quot;:330,&quot;y&quot;:300,&quot;wires&quot;:[[&quot;475b89a28f9e7ab5&quot;]],&quot;outputLabels&quot;:[&quot;Payload&quot;],&quot;info&quot;:&quot;We set the initial payload to {}. This will be the where results are stored as it flows thru nodes.&quot;},{&quot;id&quot;:&quot;5428f3977c5f9c86&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;624832a2fb087436&quot;,&quot;name&quot;:&quot;Debug payload&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;payload&quot;,&quot;targetType&quot;:&quot;msg&quot;,&quot;statusVal&quot;:&quot;&quot;,&quot;statusType&quot;:&quot;auto&quot;,&quot;x&quot;:880,&quot;y&quot;:140,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;66f6b14997e6ae9b&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Select random item from ‘listSipTrunk’&quot;,&quot;func&quot;:&quot;var newMsg;\nconst randomItem = msg.payload.sipTrunk[Math.floor(Math.random() * msg.payload.sipTrunk.length)];\n\nnewMsg = {\n payload: { name: randomItem.name },\n topic : ‘randomSipTrunk’\n};\n\nreturn newMsg;&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:&quot;&quot;,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[],&quot;x&quot;:350,&quot;y&quot;:1100,&quot;wires&quot;:[[&quot;da0505e42946b287&quot;,&quot;a669ecc3b20364c8&quot;]]},{&quot;id&quot;:&quot;629c91408aecb192&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Debug payload&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;payload&quot;,&quot;targetType&quot;:&quot;msg&quot;,&quot;statusVal&quot;:&quot;&quot;,&quot;statusType&quot;:&quot;auto&quot;,&quot;x&quot;:1140,&quot;y&quot;:860,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;c68528eeda140778&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;7c8a44c41684705d&quot;,&quot;name&quot;:&quot;Press here -&gt;&quot;,&quot;info&quot;:&quot;# Manual Execution\n\nUse injection to manually start flow. Useful for troubleshooting flow(s).&quot;,&quot;x&quot;:130,&quot;y&quot;:480,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;591982ccb0f527f9&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;5e131529b1525be2&quot;,&quot;name&quot;:&quot;Press here -&gt;&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:130,&quot;y&quot;:300,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;82f325dc80e52adb&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Press here -&gt;&quot;,&quot;info&quot;:&quot;# Manual Execution\n\nUse this injection to manually start flow. Useful for troubleshooting flow(s).&quot;,&quot;x&quot;:170,&quot;y&quot;:660,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;2273fa315ba06f4b&quot;,&quot;type&quot;:&quot;link in&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;getSipTrunk Tags Link In&quot;,&quot;links&quot;:[&quot;ff18cb83d5b4074b&quot;,&quot;574297447e9723cd&quot;],&quot;x&quot;:95,&quot;y&quot;:1220,&quot;wires&quot;:[[&quot;d99317627aa41903&quot;]]},{&quot;id&quot;:&quot;da0505e42946b287&quot;,&quot;type&quot;:&quot;join&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Join msg parts into one. Msg Parts:&quot;,&quot;mode&quot;:&quot;custom&quot;,&quot;build&quot;:&quot;object&quot;,&quot;property&quot;:&quot;payload&quot;,&quot;propertyType&quot;:&quot;msg&quot;,&quot;key&quot;:&quot;topic&quot;,&quot;joiner&quot;:&quot;\\n&quot;,&quot;joinerType&quot;:&quot;str&quot;,&quot;accumulate&quot;:false,&quot;timeout&quot;:&quot;&quot;,&quot;count&quot;:&quot;2&quot;,&quot;reduceRight&quot;:false,&quot;reduceExp&quot;:&quot;&quot;,&quot;reduceInit&quot;:&quot;&quot;,&quot;reduceInitType&quot;:&quot;num&quot;,&quot;reduceFixup&quot;:&quot;&quot;,&quot;x&quot;:690,&quot;y&quot;:1220,&quot;wires&quot;:[[&quot;925ab0b059e02556&quot;]],&quot;info&quot;:&quot;Joining outputs from the last two flows. We will need data from both for the final flow function.\n&quot;},{&quot;id&quot;:&quot;925ab0b059e02556&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Get ‘getSipTrunk’ results&quot;,&quot;func&quot;:&quot;try {\n let service = new ciscoAxl(global.get(\&quot;hostname\&quot;), global.get(\&quot;username\&quot;), global.get(\&quot;password\&quot;), global.get(\&quot;version\&quot;));\n var newMsg;\n var operation = \&quot;getSipTrunk\&quot;;\n // Let’s update the returned JSON with the name of the trunk we are trying to copy\n msg.payload.getSipTrunk.name = msg.payload.randomSipTrunk.name\n\n var results = await service.executeOperation(operation, msg.payload.getSipTrunk, global.get(\&quot;ciscoAxlOpts\&quot;));\n\n newMsg = {\n payload: results\n };\n\n return newMsg;\n} catch (error) {\n let errMsg = null\n errMsg = JSON.stringify(error);\n throw new Error(errMsg)\n}&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:&quot;&quot;,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[{&quot;var&quot;:&quot;ciscoAxl&quot;,&quot;module&quot;:&quot;cisco-axl&quot;}],&quot;x&quot;:1030,&quot;y&quot;:1220,&quot;wires&quot;:[[&quot;02231b158874ce78&quot;,&quot;a669ecc3b20364c8&quot;]]},{&quot;id&quot;:&quot;398d0586af379d3f&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Get results for random SIP Trunk&quot;,&quot;info&quot;:&quot;This function will use ‘getSipTrunk’ to return the values of the SIP trunk, using the tags in the first step.\n\n&quot;,&quot;x&quot;:1030,&quot;y&quot;:1160,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;234bc8b4609e370f&quot;,&quot;type&quot;:&quot;subflow:60644299e58c7c53&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;624832a2fb087436&quot;,&quot;name&quot;:&quot;Set Global Variables&quot;,&quot;x&quot;:600,&quot;y&quot;:140,&quot;wires&quot;:[[&quot;5428f3977c5f9c86&quot;]]},{&quot;id&quot;:&quot;ff18cb83d5b4074b&quot;,&quot;type&quot;:&quot;link out&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;listSipTrunk Link Out&quot;,&quot;mode&quot;:&quot;link&quot;,&quot;links&quot;:[&quot;2273fa315ba06f4b&quot;,&quot;b6018c440e223a4d&quot;],&quot;x&quot;:545,&quot;y&quot;:1000,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;b6018c440e223a4d&quot;,&quot;type&quot;:&quot;link in&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;randomSipTrunk Link In&quot;,&quot;links&quot;:[&quot;ff18cb83d5b4074b&quot;,&quot;574297447e9723cd&quot;],&quot;x&quot;:95,&quot;y&quot;:1100,&quot;wires&quot;:[[&quot;66f6b14997e6ae9b&quot;]]},{&quot;id&quot;:&quot;ce390508bbf6881d&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Select Random Item&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:350,&quot;y&quot;:1040,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;6532eaf6f583f04e&quot;,&quot;type&quot;:&quot;catch&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Catch Error&quot;,&quot;scope&quot;:null,&quot;uncaught&quot;:false,&quot;x&quot;:290,&quot;y&quot;:1420,&quot;wires&quot;:[[&quot;4ac06dd4e7168b2a&quot;]]},{&quot;id&quot;:&quot;4ac06dd4e7168b2a&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Error Function&quot;,&quot;func&quot;:&quot;\nreturn msg;&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[],&quot;x&quot;:640,&quot;y&quot;:1420,&quot;wires&quot;:[[&quot;b3db52093d05b479&quot;]]},{&quot;id&quot;:&quot;b3db52093d05b479&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Debug error&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;error&quot;,&quot;targetType&quot;:&quot;msg&quot;,&quot;statusVal&quot;:&quot;&quot;,&quot;statusType&quot;:&quot;auto&quot;,&quot;x&quot;:1170,&quot;y&quot;:1420,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;448a5099cd3b8c37&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Error Handling&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:290,&quot;y&quot;:1380,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;4185eecfe7bad6eb&quot;,&quot;type&quot;:&quot;ui-table&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;group&quot;:&quot;9b417ddf901f7c08&quot;,&quot;name&quot;:&quot;Dashboard Table&quot;,&quot;label&quot;:&quot;text&quot;,&quot;order&quot;:0,&quot;width&quot;:0,&quot;height&quot;:0,&quot;maxrows&quot;:&quot;10&quot;,&quot;autocols&quot;:true,&quot;columns&quot;:[],&quot;x&quot;:630,&quot;y&quot;:1360,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;02231b158874ce78&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Flatten JSON to Table&quot;,&quot;func&quot;:&quot;var jsonObj = msg.payload\n\nconst flatTable = Object.entries(jsonObj.sipTrunk).map(([key, value]) =&gt; ({\n key,\n value\n}));\n\nvar newMsg = {\n payload: flatTable\n}\n\nreturn newMsg;&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:0,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[],&quot;x&quot;:300,&quot;y&quot;:1320,&quot;wires&quot;:[[&quot;4185eecfe7bad6eb&quot;]]},{&quot;id&quot;:&quot;7ea40055f154c6a3&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;View @ http://&lt;node-red ip add&gt;:&lt;port&gt;/dashboard/axl&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:680,&quot;y&quot;:1320,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;8ee9a7af249a3343&quot;,&quot;type&quot;:&quot;ui-button&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;group&quot;:&quot;9b417ddf901f7c08&quot;,&quot;name&quot;:&quot;&quot;,&quot;label&quot;:&quot;Get Random SIP Trunk&quot;,&quot;order&quot;:0,&quot;width&quot;:0,&quot;height&quot;:0,&quot;passthru&quot;:false,&quot;tooltip&quot;:&quot;&quot;,&quot;color&quot;:&quot;&quot;,&quot;bgcolor&quot;:&quot;&quot;,&quot;className&quot;:&quot;&quot;,&quot;icon&quot;:&quot;&quot;,&quot;payload&quot;:&quot;{\&quot;operation\&quot;:\&quot;listSipTrunk\&quot;}&quot;,&quot;payloadType&quot;:&quot;json&quot;,&quot;topic&quot;:&quot;topic&quot;,&quot;topicType&quot;:&quot;msg&quot;,&quot;x&quot;:380,&quot;y&quot;:780,&quot;wires&quot;:[[&quot;2416470f2b89eec9&quot;]]},{&quot;id&quot;:&quot;686e38a7dae027dc&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Dashboard Form -&gt;&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:150,&quot;y&quot;:780,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;e9a74c8b987834e0&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;624832a2fb087436&quot;,&quot;name&quot;:&quot;CHANGE ME.&quot;,&quot;info&quot;:&quot;# Edit Subflow\n\nUpdate credentials to set global variables.\n\nNote: This should only need to be done once for all flows in project that use global variables.&quot;,&quot;x&quot;:610,&quot;y&quot;:100,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;235c66d492bfe1f2&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;View @ http://&lt;node-red ip add&gt;:&lt;port&gt;/dashboard/axl&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:280,&quot;y&quot;:720,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;bc4eae98dc9cdc6e&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Pipe output to debug console&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:1060,&quot;y&quot;:800,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;a669ecc3b20364c8&quot;,&quot;type&quot;:&quot;switch&quot;,&quot;z&quot;:&quot;9d09ad44a1d8cfef&quot;,&quot;g&quot;:&quot;6f101b74d7ad4085&quot;,&quot;name&quot;:&quot;Debug Variable Check&quot;,&quot;property&quot;:&quot;debug&quot;,&quot;propertyType&quot;:&quot;global&quot;,&quot;rules&quot;:[{&quot;t&quot;:&quot;eq&quot;,&quot;v&quot;:&quot;true&quot;,&quot;vt&quot;:&quot;str&quot;}],&quot;checkall&quot;:&quot;true&quot;,&quot;repair&quot;:false,&quot;outputs&quot;:1,&quot;x&quot;:920,&quot;y&quot;:860,&quot;wires&quot;:[[&quot;629c91408aecb192&quot;]]},{&quot;id&quot;:&quot;9b417ddf901f7c08&quot;,&quot;type&quot;:&quot;ui-group&quot;,&quot;name&quot;:&quot;Get Random SIP Trunk&quot;,&quot;page&quot;:&quot;0a87b32a472e0d54&quot;,&quot;width&quot;:&quot;6&quot;,&quot;height&quot;:&quot;1&quot;,&quot;order&quot;:-1,&quot;disp&quot;:true},{&quot;id&quot;:&quot;0a87b32a472e0d54&quot;,&quot;type&quot;:&quot;ui-page&quot;,&quot;name&quot;:&quot;AXL Dashboard&quot;,&quot;ui&quot;:&quot;20412f87db1b0cd7&quot;,&quot;path&quot;:&quot;/axl&quot;,&quot;layout&quot;:&quot;grid&quot;,&quot;theme&quot;:&quot;e0714ab1e4e245cf&quot;,&quot;order&quot;:-1},{&quot;id&quot;:&quot;20412f87db1b0cd7&quot;,&quot;type&quot;:&quot;ui-base&quot;,&quot;name&quot;:&quot;Dashboard&quot;,&quot;path&quot;:&quot;/dashboard&quot;},{&quot;id&quot;:&quot;e0714ab1e4e245cf&quot;,&quot;type&quot;:&quot;ui-theme&quot;,&quot;name&quot;:&quot;Normal&quot;,&quot;colors&quot;:{&quot;surface&quot;:&quot;#ffffff&quot;,&quot;primary&quot;:&quot;#0094ce&quot;,&quot;bgPage&quot;:&quot;#eeeeee&quot;,&quot;groupBg&quot;:&quot;#ffffff&quot;,&quot;groupOutline&quot;:&quot;#cccccc&quot;}]</pre><p>Once imported you can either activate the flow via the inject node or via the dashboard.</p><blockquote>Note: Start with editing the “Set Global Variables” subflow to update your credentials.</blockquote><p>To view the dashboard navigate to <a href="http://localhost:1880/dashboard/axl.">http://localhost:1880/dashboard/axl</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sqi2CDHHCOmLCFQadP7lxQ.png" /><figcaption>Dashboard view of Get Random SIP Trunk</figcaption></figure><h3>Copy SIP Trunk via AXL</h3><p>This example shows how to use Node-RED to copy a SIP trunk via AXL. This example is similar to the <em>“Super Copy”</em> functionality within Cisco Unified Communications Manager.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tPVWoICrvMkZk8R2oJgCrw.png" /><figcaption>Node-RED flow to retrieve a copy a SIP Trunk from Cisco CUCM application</figcaption></figure><p>This flow uses a form on the dashboard to collect information from the user.</p><blockquote>Form is accessible at: <a href="http://localhost:1880/dashboard/axl.">http://localhost:1880/dashboard/axl.</a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1aSI8ZQgFH96PKL6Bxt_TA.png" /></figure><p>User is presented with a notification once trunk has been successfully copied.</p><p>Import this flow with the following JSON:</p><pre>[{&quot;id&quot;:&quot;60644299e58c7c53&quot;,&quot;type&quot;:&quot;subflow&quot;,&quot;name&quot;:&quot;Set Global Variables&quot;,&quot;info&quot;:&quot;&quot;,&quot;category&quot;:&quot;&quot;,&quot;in&quot;:[{&quot;x&quot;:40,&quot;y&quot;:80,&quot;wires&quot;:[{&quot;id&quot;:&quot;f08e510bbf870d27&quot;}]}],&quot;out&quot;:[{&quot;x&quot;:400,&quot;y&quot;:80,&quot;wires&quot;:[{&quot;id&quot;:&quot;f08e510bbf870d27&quot;,&quot;port&quot;:0}]}],&quot;env&quot;:[],&quot;meta&quot;:{},&quot;color&quot;:&quot;#DDAA99&quot;},{&quot;id&quot;:&quot;f08e510bbf870d27&quot;,&quot;type&quot;:&quot;change&quot;,&quot;z&quot;:&quot;60644299e58c7c53&quot;,&quot;name&quot;:&quot;Set Global Variables&quot;,&quot;rules&quot;:[{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;hostname&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;hq-cucm-pub.abc.inc&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;username&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;administrator&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;password&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;ciscopsdt&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;version&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;14.0&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;ciscoAxlOpts&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;{\&quot;clean\&quot;:true,\&quot;removeAttributes\&quot;:false,\&quot;dataContainerIdentifierTails\&quot;:\&quot;_data\&quot;}&quot;,&quot;tot&quot;:&quot;json&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;debug&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;false&quot;,&quot;tot&quot;:&quot;str&quot;}],&quot;action&quot;:&quot;&quot;,&quot;property&quot;:&quot;&quot;,&quot;from&quot;:&quot;&quot;,&quot;to&quot;:&quot;&quot;,&quot;reg&quot;:false,&quot;x&quot;:220,&quot;y&quot;:80,&quot;wires&quot;:[[]]},{&quot;id&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;type&quot;:&quot;tab&quot;,&quot;label&quot;:&quot;AXL - Copy SIP Trunk&quot;,&quot;disabled&quot;:false,&quot;info&quot;:&quot;# Introduction\n\nThis flow demonstrates how to use nodes to interface with Cisco AXL API. The final result is copying a SIP Trunk.\n\n# Set Global Variables Group\n\nSet global variables needed for flow to run. Note: this flow is set to auto run once after being deployed.\n\n# Copy SIP Trunk Group\n\nUses AXL to copy a SIP trunk. Similar to \&quot;Super Copy\&quot; functionality built into Cisco Unified Communications Manager.\n\nFlow is initiated via a form on dashboard. Navigate [here](http://localhost:1880/dashboard/copytrunk) to start. Users are notified via notification on dashboard once flow has been completed.&quot;,&quot;env&quot;:[]},{&quot;id&quot;:&quot;60b804dd122799e9&quot;,&quot;type&quot;:&quot;group&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;name&quot;:&quot;Set Global Variables Group&quot;,&quot;style&quot;:{&quot;label&quot;:true},&quot;nodes&quot;:[&quot;c1fa5a5216cba7f7&quot;,&quot;55a39c63725d45dc&quot;,&quot;d4e762f637ca1630&quot;,&quot;27a2ad46df60add4&quot;,&quot;f811012c01e87e27&quot;],&quot;x&quot;:34,&quot;y&quot;:19,&quot;w&quot;:1132,&quot;h&quot;:122},{&quot;id&quot;:&quot;5108fa6c2d7d2f80&quot;,&quot;type&quot;:&quot;group&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;name&quot;:&quot;Copy SIP Trunk Group&quot;,&quot;style&quot;:{&quot;label&quot;:true},&quot;nodes&quot;:[&quot;b7327fcf71f6446f&quot;,&quot;5f7e702ed0f90bb0&quot;,&quot;c83c0efce3894bd4&quot;,&quot;52367d191d2aa22f&quot;,&quot;857e7c8f775d1d3b&quot;,&quot;891594f086d8ae35&quot;,&quot;58f1622c5663a714&quot;,&quot;bafbc2ba717038a1&quot;,&quot;c9d2a29b590e65dd&quot;,&quot;cadd4b8f923d6285&quot;,&quot;df21bc3c26056007&quot;,&quot;83819789723600cf&quot;,&quot;8256f2740a544c70&quot;,&quot;65127ff930599159&quot;,&quot;4cc74405d2b5d9f0&quot;,&quot;419fd37fc6bfd128&quot;],&quot;x&quot;:34,&quot;y&quot;:159,&quot;w&quot;:1132,&quot;h&quot;:642},{&quot;id&quot;:&quot;b7327fcf71f6446f&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;5108fa6c2d7d2f80&quot;,&quot;name&quot;:&quot;Get Operation &#39;getSipTrunk&#39; Tags&quot;,&quot;func&quot;:&quot;try {\n let service = new ciscoAxl(global.get(\&quot;hostname\&quot;), global.get(\&quot;username\&quot;), global.get(\&quot;password\&quot;), global.get(\&quot;version\&quot;));\n\n var msg;\n var operation = \&quot;getSipTrunk\&quot;;\n var tags = await service.getOperationTags(operation);\n \n msg = {\n payload: tags\n };\n\n return msg;\n} catch (error) {\n let errMsg = null\n errMsg = JSON.stringify(error);\n throw new Error(errMsg)\n}&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:&quot;&quot;,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[{&quot;var&quot;:&quot;ciscoAxl&quot;,&quot;module&quot;:&quot;cisco-axl&quot;}],&quot;x&quot;:380,&quot;y&quot;:380,&quot;wires&quot;:[[&quot;891594f086d8ae35&quot;,&quot;419fd37fc6bfd128&quot;]]},{&quot;id&quot;:&quot;c1fa5a5216cba7f7&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;60b804dd122799e9&quot;,&quot;name&quot;:&quot;Set Variables&quot;,&quot;props&quot;:[{&quot;p&quot;:&quot;payload&quot;}],&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:true,&quot;onceDelay&quot;:0.1,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;{\&quot;variables\&quot;:\&quot;set\&quot;,\&quot;flow\&quot;:\&quot;Copy SIP Trunk\&quot;}&quot;,&quot;payloadType&quot;:&quot;json&quot;,&quot;x&quot;:350,&quot;y&quot;:100,&quot;wires&quot;:[[&quot;55a39c63725d45dc&quot;]],&quot;outputLabels&quot;:[&quot;Payload&quot;],&quot;info&quot;:&quot;# Introduction\n\nWhere we set the initial payload. This will be the where results are stored as it flows thru nodes.&quot;},{&quot;id&quot;:&quot;5f7e702ed0f90bb0&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;5108fa6c2d7d2f80&quot;,&quot;name&quot;:&quot;Error Handling&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:310,&quot;y&quot;:700,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;c83c0efce3894bd4&quot;,&quot;type&quot;:&quot;catch&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;5108fa6c2d7d2f80&quot;,&quot;name&quot;:&quot;Catch Error&quot;,&quot;scope&quot;:null,&quot;uncaught&quot;:false,&quot;x&quot;:310,&quot;y&quot;:760,&quot;wires&quot;:[[&quot;52367d191d2aa22f&quot;]]},{&quot;id&quot;:&quot;52367d191d2aa22f&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;5108fa6c2d7d2f80&quot;,&quot;name&quot;:&quot;Error Function&quot;,&quot;func&quot;:&quot;\nreturn msg;&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[],&quot;x&quot;:660,&quot;y&quot;:760,&quot;wires&quot;:[[&quot;857e7c8f775d1d3b&quot;]]},{&quot;id&quot;:&quot;857e7c8f775d1d3b&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;5108fa6c2d7d2f80&quot;,&quot;name&quot;:&quot;Debug error&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;error&quot;,&quot;targetType&quot;:&quot;msg&quot;,&quot;statusVal&quot;:&quot;&quot;,&quot;statusType&quot;:&quot;auto&quot;,&quot;x&quot;:1030,&quot;y&quot;:760,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;891594f086d8ae35&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;5108fa6c2d7d2f80&quot;,&quot;name&quot;:&quot;Get &#39;getSipTrunk&#39; results&quot;,&quot;func&quot;:&quot;try {\n let service = new ciscoAxl(global.get(\&quot;hostname\&quot;), global.get(\&quot;username\&quot;), global.get(\&quot;password\&quot;), global.get(\&quot;version\&quot;));\n var newMsg;\n var operation = \&quot;getSipTrunk\&quot;;\n // Let&#39;s update the returned JSON with the name of the trunk we are trying to copy\n msg.payload.name = flow.get(\&quot;sipTrunkToCopy\&quot;);\n\n var results = await service.executeOperation(operation, msg.payload, global.get(\&quot;ciscoAxlOpts\&quot;));\n\n msg = {\n payload: results\n };\n\n return msg;\n} catch (error) {\n let errMsg = null\n errMsg = JSON.stringify(error);\n throw new Error(errMsg)\n}&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[{&quot;var&quot;:&quot;ciscoAxl&quot;,&quot;module&quot;:&quot;cisco-axl&quot;}],&quot;x&quot;:350,&quot;y&quot;:520,&quot;wires&quot;:[[&quot;c9d2a29b590e65dd&quot;,&quot;419fd37fc6bfd128&quot;]]},{&quot;id&quot;:&quot;58f1622c5663a714&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;5108fa6c2d7d2f80&quot;,&quot;name&quot;:&quot;Get tags for &#39;getSipTrunk&#39;&quot;,&quot;info&quot;:&quot;This function will get the tags needed for make a valid &#39;getSipTrunk&#39; call via AXL.\n&quot;,&quot;x&quot;:350,&quot;y&quot;:320,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;bafbc2ba717038a1&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;5108fa6c2d7d2f80&quot;,&quot;name&quot;:&quot;Get Results&quot;,&quot;info&quot;:&quot;This function will use &#39;getSipTrunk&#39; to return the values of the SIP trunk, using the tags in the first step.&quot;,&quot;x&quot;:310,&quot;y&quot;:440,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;c9d2a29b590e65dd&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;5108fa6c2d7d2f80&quot;,&quot;name&quot;:&quot;Get &#39;addSipTrunk&#39; results&quot;,&quot;func&quot;:&quot;try {\n let service = new ciscoAxl(global.get(\&quot;hostname\&quot;), global.get(\&quot;username\&quot;), global.get(\&quot;password\&quot;), global.get(\&quot;version\&quot;));\n var newMsg;\n var operation = \&quot;addSipTrunk\&quot;;\n // Let&#39;s update the returned JSON with the name of the trunk we are trying to copy\n msg.payload.sipTrunk.name = flow.get(\&quot;newSipTrunkName\&quot;);\n msg.payload.sipTrunk.description = flow.get(\&quot;newSipTrunkDescription\&quot;);\n msg.payload.sipTrunk.destinations.destination[0].addressIpv4 = flow.get(\&quot;newSipTrunkIP\&quot;);\n msg.payload.sipTrunk.destinations.destination[0].port = flow.get(\&quot;newSipTrunkPort\&quot;);\n\n // Confidential Access Mode\tis returned from CUCM via AXL as undefined if not set on the phone we are copying. \n // We either need to set it to &#39;&#39; or delete it complete. Since we&#39;re not using this feature, let&#39;s delete it from our JSON.\n delete msg.payload.sipTrunk.confidentialAccess;\n\n var newTrunk = await service.executeOperation(operation, msg.payload, global.get(\&quot;ciscoAxlOpts\&quot;));\n\n msg = {\n payload: \&quot;New trunk successfully copied: &lt;br&gt;\&quot; + newTrunk\n };\n\n return msg;\n} catch (error) {\n let errMsg = null\n errMsg = JSON.stringify(error);\n throw new Error(errMsg)\n}&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:&quot;&quot;,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[{&quot;var&quot;:&quot;ciscoAxl&quot;,&quot;module&quot;:&quot;cisco-axl&quot;}],&quot;x&quot;:350,&quot;y&quot;:640,&quot;wires&quot;:[[&quot;4cc74405d2b5d9f0&quot;,&quot;419fd37fc6bfd128&quot;]]},{&quot;id&quot;:&quot;cadd4b8f923d6285&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;5108fa6c2d7d2f80&quot;,&quot;name&quot;:&quot;Debug payload&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;payload&quot;,&quot;targetType&quot;:&quot;msg&quot;,&quot;statusVal&quot;:&quot;&quot;,&quot;statusType&quot;:&quot;auto&quot;,&quot;x&quot;:1040,&quot;y&quot;:300,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;df21bc3c26056007&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;5108fa6c2d7d2f80&quot;,&quot;name&quot;:&quot;Add SIP Trunk&quot;,&quot;info&quot;:&quot;This function will use &#39;addSipTrunk&#39;.&quot;,&quot;x&quot;:310,&quot;y&quot;:580,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;55a39c63725d45dc&quot;,&quot;type&quot;:&quot;subflow:60644299e58c7c53&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;60b804dd122799e9&quot;,&quot;name&quot;:&quot;Set Global Variables&quot;,&quot;x&quot;:700,&quot;y&quot;:100,&quot;wires&quot;:[[&quot;d4e762f637ca1630&quot;]]},{&quot;id&quot;:&quot;d4e762f637ca1630&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;60b804dd122799e9&quot;,&quot;name&quot;:&quot;Debug payload&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;payload&quot;,&quot;targetType&quot;:&quot;msg&quot;,&quot;statusVal&quot;:&quot;&quot;,&quot;statusType&quot;:&quot;auto&quot;,&quot;x&quot;:1040,&quot;y&quot;:100,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;83819789723600cf&quot;,&quot;type&quot;:&quot;ui-form&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;5108fa6c2d7d2f80&quot;,&quot;name&quot;:&quot;Copy SIP Trunk Form&quot;,&quot;group&quot;:&quot;6173c25158384f18&quot;,&quot;label&quot;:&quot;&quot;,&quot;order&quot;:0,&quot;width&quot;:0,&quot;height&quot;:0,&quot;options&quot;:[{&quot;label&quot;:&quot;Trunk to Copy&quot;,&quot;key&quot;:&quot;sipTrunkToCopy&quot;,&quot;type&quot;:&quot;text&quot;,&quot;required&quot;:true,&quot;rows&quot;:null},{&quot;label&quot;:&quot;Name of new trunk&quot;,&quot;key&quot;:&quot;newSipTrunkName&quot;,&quot;type&quot;:&quot;text&quot;,&quot;required&quot;:true,&quot;rows&quot;:null},{&quot;label&quot;:&quot;Description of new trunk&quot;,&quot;key&quot;:&quot;newSipTrunkDescription&quot;,&quot;type&quot;:&quot;multiline&quot;,&quot;required&quot;:false,&quot;rows&quot;:3},{&quot;label&quot;:&quot;IP Address&quot;,&quot;key&quot;:&quot;newSipTrunkIP&quot;,&quot;type&quot;:&quot;text&quot;,&quot;required&quot;:true,&quot;rows&quot;:null},{&quot;label&quot;:&quot;Port&quot;,&quot;key&quot;:&quot;newSipTrunkPort&quot;,&quot;type&quot;:&quot;number&quot;,&quot;required&quot;:true,&quot;rows&quot;:null}],&quot;formValue&quot;:{&quot;sipTrunkToCopy&quot;:&quot;&quot;,&quot;newSipTrunkName&quot;:&quot;&quot;,&quot;newSipTrunkDescription&quot;:&quot;&quot;,&quot;newSipTrunkIP&quot;:&quot;&quot;,&quot;newSipTrunkPort&quot;:&quot;&quot;},&quot;payload&quot;:&quot;&quot;,&quot;submit&quot;:&quot;submit&quot;,&quot;cancel&quot;:&quot;clear&quot;,&quot;resetOnSubmit&quot;:false,&quot;topic&quot;:&quot;topic&quot;,&quot;topicType&quot;:&quot;msg&quot;,&quot;splitLayout&quot;:false,&quot;className&quot;:&quot;&quot;,&quot;x&quot;:160,&quot;y&quot;:260,&quot;wires&quot;:[[&quot;8256f2740a544c70&quot;]]},{&quot;id&quot;:&quot;8256f2740a544c70&quot;,&quot;type&quot;:&quot;change&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;5108fa6c2d7d2f80&quot;,&quot;name&quot;:&quot;Set Flow Variables&quot;,&quot;rules&quot;:[{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;sipTrunkToCopy&quot;,&quot;pt&quot;:&quot;flow&quot;,&quot;to&quot;:&quot;payload.sipTrunkToCopy&quot;,&quot;tot&quot;:&quot;msg&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;newSipTrunkName&quot;,&quot;pt&quot;:&quot;flow&quot;,&quot;to&quot;:&quot;payload.newSipTrunkName&quot;,&quot;tot&quot;:&quot;msg&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;newSipTrunkDescription&quot;,&quot;pt&quot;:&quot;flow&quot;,&quot;to&quot;:&quot;payload.newSipTrunkDescription&quot;,&quot;tot&quot;:&quot;msg&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;newSipTrunkIP&quot;,&quot;pt&quot;:&quot;flow&quot;,&quot;to&quot;:&quot;payload.newSipTrunkIP&quot;,&quot;tot&quot;:&quot;msg&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;newSipTrunkPort&quot;,&quot;pt&quot;:&quot;flow&quot;,&quot;to&quot;:&quot;payload.newSipTrunkPort&quot;,&quot;tot&quot;:&quot;msg&quot;}],&quot;action&quot;:&quot;&quot;,&quot;property&quot;:&quot;&quot;,&quot;from&quot;:&quot;&quot;,&quot;to&quot;:&quot;&quot;,&quot;reg&quot;:false,&quot;x&quot;:410,&quot;y&quot;:260,&quot;wires&quot;:[[&quot;b7327fcf71f6446f&quot;]],&quot;info&quot;:&quot;# Introduction\n\nUse this node to set variables that are unique to this flow within a project. Variables can then be accessed in other nodes with the following:\n\n``\nflow.get(\&quot;variable_name\&quot;);\n``&quot;},{&quot;id&quot;:&quot;65127ff930599159&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;5108fa6c2d7d2f80&quot;,&quot;name&quot;:&quot;View @ http://&lt;node-red ip add&gt;:&lt;port&gt;/dashboard/copytrunk&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:420,&quot;y&quot;:200,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;4cc74405d2b5d9f0&quot;,&quot;type&quot;:&quot;ui-notification&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;5108fa6c2d7d2f80&quot;,&quot;ui&quot;:&quot;20412f87db1b0cd7&quot;,&quot;position&quot;:&quot;top right&quot;,&quot;displayTime&quot;:&quot;3&quot;,&quot;showCountdown&quot;:true,&quot;outputs&quot;:0,&quot;allowDismiss&quot;:true,&quot;dismissText&quot;:&quot;Close&quot;,&quot;raw&quot;:true,&quot;className&quot;:&quot;&quot;,&quot;name&quot;:&quot;Successfully Notification&quot;,&quot;x&quot;:1030,&quot;y&quot;:640,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;27a2ad46df60add4&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;60b804dd122799e9&quot;,&quot;name&quot;:&quot;CHANGE ME.&quot;,&quot;info&quot;:&quot;# Edit Subflow\n\nUpdate credentials to set global variables.\n\nNote: This should only need to be done once for all flows in project that use global variables.&quot;,&quot;x&quot;:690,&quot;y&quot;:60,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;419fd37fc6bfd128&quot;,&quot;type&quot;:&quot;switch&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;5108fa6c2d7d2f80&quot;,&quot;name&quot;:&quot;Debug Variable Check&quot;,&quot;property&quot;:&quot;debug&quot;,&quot;propertyType&quot;:&quot;global&quot;,&quot;rules&quot;:[{&quot;t&quot;:&quot;eq&quot;,&quot;v&quot;:&quot;true&quot;,&quot;vt&quot;:&quot;str&quot;}],&quot;checkall&quot;:&quot;true&quot;,&quot;repair&quot;:false,&quot;outputs&quot;:1,&quot;x&quot;:820,&quot;y&quot;:300,&quot;wires&quot;:[[&quot;cadd4b8f923d6285&quot;]]},{&quot;id&quot;:&quot;f811012c01e87e27&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;ff5e1ce63f8cbba1&quot;,&quot;g&quot;:&quot;60b804dd122799e9&quot;,&quot;name&quot;:&quot;Set to Auto Run -&gt;&quot;,&quot;info&quot;:&quot;First node will initalize flow.\n\nMake sure your AXL settings are correct in the &#39;Set Global Variables&#39; node.\n\nThis will auto run every time you \&quot;Deploy\&quot; the flow.&quot;,&quot;x&quot;:150,&quot;y&quot;:100,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;6173c25158384f18&quot;,&quot;type&quot;:&quot;ui-group&quot;,&quot;name&quot;:&quot;Copy SIP Trunk&quot;,&quot;page&quot;:&quot;0a87b32a472e0d54&quot;,&quot;width&quot;:&quot;6&quot;,&quot;height&quot;:&quot;1&quot;,&quot;order&quot;:-1,&quot;disp&quot;:true},{&quot;id&quot;:&quot;20412f87db1b0cd7&quot;,&quot;type&quot;:&quot;ui-base&quot;,&quot;name&quot;:&quot;Dashboard&quot;,&quot;path&quot;:&quot;/dashboard&quot;},{&quot;id&quot;:&quot;0a87b32a472e0d54&quot;,&quot;type&quot;:&quot;ui-page&quot;,&quot;name&quot;:&quot;AXL Dashboard&quot;,&quot;ui&quot;:&quot;20412f87db1b0cd7&quot;,&quot;path&quot;:&quot;/axl&quot;,&quot;layout&quot;:&quot;grid&quot;,&quot;theme&quot;:&quot;e0714ab1e4e245cf&quot;,&quot;order&quot;:-1},{&quot;id&quot;:&quot;e0714ab1e4e245cf&quot;,&quot;type&quot;:&quot;ui-theme&quot;,&quot;name&quot;:&quot;Normal&quot;,&quot;colors&quot;:{&quot;surface&quot;:&quot;#ffffff&quot;,&quot;primary&quot;:&quot;#0094ce&quot;,&quot;bgPage&quot;:&quot;#eeeeee&quot;,&quot;groupBg&quot;:&quot;#ffffff&quot;,&quot;groupOutline&quot;:&quot;#cccccc&quot;}}]</pre><h3>Display live SIP Trunks stats via Perfmon</h3><p>This flow will collect Perfmon stats for all SIP Trunks and display on a dashboard. This flow could also be edited to write values to an <a href="https://flows.nodered.org/node/node-red-contrib-influxdb">InfluxDB</a> as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T6jVFsYBceepkVLezaQQvQ.png" /><figcaption>Node-RED dashboard displaying Perfmon Stats</figcaption></figure><p>Import this flow with the following JSON:</p><pre>[{&quot;id&quot;:&quot;60644299e58c7c53&quot;,&quot;type&quot;:&quot;subflow&quot;,&quot;name&quot;:&quot;Set Global Variables&quot;,&quot;info&quot;:&quot;&quot;,&quot;category&quot;:&quot;&quot;,&quot;in&quot;:[{&quot;x&quot;:40,&quot;y&quot;:80,&quot;wires&quot;:[{&quot;id&quot;:&quot;f08e510bbf870d27&quot;}]}],&quot;out&quot;:[{&quot;x&quot;:400,&quot;y&quot;:80,&quot;wires&quot;:[{&quot;id&quot;:&quot;f08e510bbf870d27&quot;,&quot;port&quot;:0}]}],&quot;env&quot;:[],&quot;meta&quot;:{},&quot;color&quot;:&quot;#DDAA99&quot;},{&quot;id&quot;:&quot;f08e510bbf870d27&quot;,&quot;type&quot;:&quot;change&quot;,&quot;z&quot;:&quot;60644299e58c7c53&quot;,&quot;name&quot;:&quot;Set Global Variables&quot;,&quot;rules&quot;:[{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;hostname&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;hq-cucm-pub.abc.inc&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;username&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;administrator&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;password&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;ciscopsdt&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;version&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;14.0&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;ciscoAxlOpts&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;{\&quot;clean\&quot;:true,\&quot;removeAttributes\&quot;:false,\&quot;dataContainerIdentifierTails\&quot;:\&quot;_data\&quot;}&quot;,&quot;tot&quot;:&quot;json&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;debug&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;false&quot;,&quot;tot&quot;:&quot;str&quot;}],&quot;action&quot;:&quot;&quot;,&quot;property&quot;:&quot;&quot;,&quot;from&quot;:&quot;&quot;,&quot;to&quot;:&quot;&quot;,&quot;reg&quot;:false,&quot;x&quot;:220,&quot;y&quot;:80,&quot;wires&quot;:[[]]},{&quot;id&quot;:&quot;4b368d486490923a&quot;,&quot;type&quot;:&quot;tab&quot;,&quot;label&quot;:&quot;Perfmon - SIP Trunk&quot;,&quot;disabled&quot;:false,&quot;info&quot;:&quot;# Introduction\n\nThis flow demonstrates how to use nodes to interface with Cisco Perfmon API. The final result displays a chart on dashboard.\n\n# Set Global &amp; Flow Variables Group\n\nSet global/flow variables needed for flow to run. Note: this flow is set to auto run once after being deployed.\n\n# Get SIP Calls Group\n\nFlow to retrieve call data via Cisco Perfmon API. Results are displayed on chart on dashboard. Alternatively, data could be sent to an InfluxDB and graphed via Grafana. This group can be edited to update the frequency of the data refresh. Note: this flow is set to auto run once after being deployed and refresh every x seconds.&quot;,&quot;env&quot;:[]},{&quot;id&quot;:&quot;365baa3159166665&quot;,&quot;type&quot;:&quot;group&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;name&quot;:&quot;Set Global &amp; Flow Variables Group&quot;,&quot;style&quot;:{&quot;label&quot;:true},&quot;nodes&quot;:[&quot;d1306cb64714b4ba&quot;,&quot;4667fdedfa1ac92e&quot;,&quot;9fe651ec73617c64&quot;,&quot;cbd7e2203ffd5425&quot;,&quot;15fe497467acba03&quot;],&quot;x&quot;:14,&quot;y&quot;:59,&quot;w&quot;:1152,&quot;h&quot;:122},{&quot;id&quot;:&quot;b09909183a90841b&quot;,&quot;type&quot;:&quot;group&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;name&quot;:&quot;Get SIP Calls Group&quot;,&quot;style&quot;:{&quot;label&quot;:true},&quot;nodes&quot;:[&quot;262f79bafe3bdabb&quot;,&quot;eca8df56a53e6dd5&quot;,&quot;def29667e8fd221a&quot;,&quot;db8de876d6fb69ca&quot;,&quot;405afd0b76e038e6&quot;,&quot;43a89debfdbef1a1&quot;,&quot;bcc7e6fa41e5612c&quot;,&quot;b93d86a621db2fc8&quot;,&quot;951ba13975f8a47b&quot;,&quot;3ddaa1632f29f96e&quot;,&quot;b5e415a39903f51c&quot;,&quot;15506ac7d7da7cc4&quot;,&quot;6e066a06997f9673&quot;,&quot;a2cf0254a2c9731d&quot;,&quot;86c8baa1ebc4ec3e&quot;,&quot;bbb68292d6dfb96c&quot;,&quot;98cd0eb26ab5c2f3&quot;],&quot;x&quot;:14,&quot;y&quot;:199,&quot;w&quot;:1152,&quot;h&quot;:502},{&quot;id&quot;:&quot;d1306cb64714b4ba&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;365baa3159166665&quot;,&quot;name&quot;:&quot;Set Variables&quot;,&quot;props&quot;:[{&quot;p&quot;:&quot;payload&quot;}],&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:true,&quot;onceDelay&quot;:0.1,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;{\&quot;variables\&quot;:\&quot;set\&quot;,\&quot;flow\&quot;:\&quot;SIP Perfmon\&quot;}&quot;,&quot;payloadType&quot;:&quot;json&quot;,&quot;x&quot;:330,&quot;y&quot;:140,&quot;wires&quot;:[[&quot;4667fdedfa1ac92e&quot;]],&quot;outputLabels&quot;:[&quot;Payload&quot;],&quot;info&quot;:&quot;# Introduction\n\nWhere we set the initial payload. This will be the where results are stored as it flows thru nodes.&quot;},{&quot;id&quot;:&quot;4667fdedfa1ac92e&quot;,&quot;type&quot;:&quot;subflow:60644299e58c7c53&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;365baa3159166665&quot;,&quot;name&quot;:&quot;Set Global Variables&quot;,&quot;x&quot;:620,&quot;y&quot;:140,&quot;wires&quot;:[[&quot;9fe651ec73617c64&quot;]]},{&quot;id&quot;:&quot;9fe651ec73617c64&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;365baa3159166665&quot;,&quot;name&quot;:&quot;Debug payload&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;payload&quot;,&quot;targetType&quot;:&quot;msg&quot;,&quot;statusVal&quot;:&quot;&quot;,&quot;statusType&quot;:&quot;auto&quot;,&quot;x&quot;:1040,&quot;y&quot;:140,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;262f79bafe3bdabb&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;b09909183a90841b&quot;,&quot;name&quot;:&quot;Get &#39;Cisco SIP&#39; Perfmon Data&quot;,&quot;func&quot;:&quot;try {\n let service = new ciscoPerfmon(global.get(\&quot;hostname\&quot;), global.get(\&quot;username\&quot;), global.get(\&quot;password\&quot;));\n\n var msg;\n var counterObj = {\n host: \&quot;hq-cucm-pub\&quot;,\n };\n\n var results = await service.collectCounterData(counterObj.host, \&quot;Cisco SIP\&quot;)\n\n // let&#39;s get the timestamp for the time this data was processed \n let d = new Date()\n \n msg = {\n payload: results,\n timestamp: d\n };\n\n return msg;\n} catch (error) {\n let errMsg = null\n errMsg = JSON.stringify(error);\n throw new Error(errMsg)\n}&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:&quot;&quot;,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[{&quot;var&quot;:&quot;ciscoPerfmon&quot;,&quot;module&quot;:&quot;cisco-perfmon&quot;}],&quot;x&quot;:750,&quot;y&quot;:240,&quot;wires&quot;:[[&quot;b93d86a621db2fc8&quot;,&quot;98cd0eb26ab5c2f3&quot;]]},{&quot;id&quot;:&quot;eca8df56a53e6dd5&quot;,&quot;type&quot;:&quot;catch&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;b09909183a90841b&quot;,&quot;name&quot;:&quot;Catch Error&quot;,&quot;scope&quot;:null,&quot;uncaught&quot;:false,&quot;x&quot;:290,&quot;y&quot;:660,&quot;wires&quot;:[[&quot;def29667e8fd221a&quot;]]},{&quot;id&quot;:&quot;def29667e8fd221a&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;b09909183a90841b&quot;,&quot;name&quot;:&quot;Error Function&quot;,&quot;func&quot;:&quot;\nreturn msg;&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[],&quot;x&quot;:640,&quot;y&quot;:660,&quot;wires&quot;:[[&quot;db8de876d6fb69ca&quot;]]},{&quot;id&quot;:&quot;db8de876d6fb69ca&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;b09909183a90841b&quot;,&quot;name&quot;:&quot;Debug error&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;error&quot;,&quot;targetType&quot;:&quot;msg&quot;,&quot;statusVal&quot;:&quot;&quot;,&quot;statusType&quot;:&quot;auto&quot;,&quot;x&quot;:1030,&quot;y&quot;:660,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;405afd0b76e038e6&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;b09909183a90841b&quot;,&quot;name&quot;:&quot;&quot;,&quot;props&quot;:[{&quot;p&quot;:&quot;payload&quot;}],&quot;repeat&quot;:&quot;10&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:true,&quot;onceDelay&quot;:0.1,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;{}&quot;,&quot;payloadType&quot;:&quot;str&quot;,&quot;x&quot;:510,&quot;y&quot;:240,&quot;wires&quot;:[[&quot;262f79bafe3bdabb&quot;]]},{&quot;id&quot;:&quot;43a89debfdbef1a1&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;b09909183a90841b&quot;,&quot;name&quot;:&quot;Set to Auto Run &amp; Repeat Every 10 Seconds -&gt;&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:220,&quot;y&quot;:240,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;bcc7e6fa41e5612c&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;b09909183a90841b&quot;,&quot;name&quot;:&quot;Debug payload&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;payload&quot;,&quot;targetType&quot;:&quot;msg&quot;,&quot;statusVal&quot;:&quot;&quot;,&quot;statusType&quot;:&quot;auto&quot;,&quot;x&quot;:1020,&quot;y&quot;:360,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;b93d86a621db2fc8&quot;,&quot;type&quot;:&quot;split&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;b09909183a90841b&quot;,&quot;name&quot;:&quot;Split results&quot;,&quot;splt&quot;:&quot;\\n&quot;,&quot;spltType&quot;:&quot;str&quot;,&quot;arraySplt&quot;:1,&quot;arraySpltType&quot;:&quot;len&quot;,&quot;stream&quot;:false,&quot;addname&quot;:&quot;&quot;,&quot;x&quot;:210,&quot;y&quot;:380,&quot;wires&quot;:[[&quot;15506ac7d7da7cc4&quot;]]},{&quot;id&quot;:&quot;951ba13975f8a47b&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;b09909183a90841b&quot;,&quot;name&quot;:&quot;Error Handling&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:290,&quot;y&quot;:620,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;3ddaa1632f29f96e&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;b09909183a90841b&quot;,&quot;name&quot;:&quot;View @ http://&lt;node-red ip add&gt;:&lt;port&gt;/dashboard/perfmon&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:920,&quot;y&quot;:420,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;b5e415a39903f51c&quot;,&quot;type&quot;:&quot;ui-chart&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;b09909183a90841b&quot;,&quot;group&quot;:&quot;c9c9de97d03e7c4c&quot;,&quot;name&quot;:&quot;&quot;,&quot;label&quot;:&quot;Calls Active&quot;,&quot;order&quot;:9007199254740991,&quot;chartType&quot;:&quot;line&quot;,&quot;xAxisType&quot;:&quot;time&quot;,&quot;removeOlder&quot;:&quot;15&quot;,&quot;removeOlderUnit&quot;:&quot;60&quot;,&quot;removeOlderPoints&quot;:&quot;&quot;,&quot;colors&quot;:[&quot;#1f77b4&quot;,&quot;#aec7e8&quot;,&quot;#ff7f0e&quot;,&quot;#2ca02c&quot;,&quot;#98df8a&quot;,&quot;#d62728&quot;,&quot;#ff9896&quot;,&quot;#9467bd&quot;,&quot;#c5b0d5&quot;],&quot;width&quot;:&quot;0&quot;,&quot;height&quot;:&quot;0&quot;,&quot;className&quot;:&quot;&quot;,&quot;x&quot;:1050,&quot;y&quot;:460,&quot;wires&quot;:[[]]},{&quot;id&quot;:&quot;15506ac7d7da7cc4&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;b09909183a90841b&quot;,&quot;name&quot;:&quot;Format for Dashboard Chart&quot;,&quot;func&quot;:&quot;var msg = {\n \&quot;topic\&quot;: msg.payload.instance + \&quot;(\&quot; + msg.payload.counter + \&quot;)\&quot;,\n \&quot;payload\&quot;: {\n x: msg.timestamp,\n y: parseInt(msg.payload.value)\n },\n \&quot;counter\&quot;: msg.payload.counter\n}\nreturn msg;&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:0,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[],&quot;x&quot;:520,&quot;y&quot;:480,&quot;wires&quot;:[[&quot;a2cf0254a2c9731d&quot;]]},{&quot;id&quot;:&quot;cbd7e2203ffd5425&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;365baa3159166665&quot;,&quot;name&quot;:&quot;CHANGE ME.&quot;,&quot;info&quot;:&quot;# Edit Subflow\n\nUpdate credentials to set global variables.&quot;,&quot;x&quot;:630,&quot;y&quot;:100,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;6e066a06997f9673&quot;,&quot;type&quot;:&quot;ui-chart&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;b09909183a90841b&quot;,&quot;group&quot;:&quot;c9c9de97d03e7c4c&quot;,&quot;name&quot;:&quot;&quot;,&quot;label&quot;:&quot;Calls Attempted&quot;,&quot;order&quot;:9007199254740991,&quot;chartType&quot;:&quot;line&quot;,&quot;xAxisType&quot;:&quot;time&quot;,&quot;removeOlder&quot;:&quot;15&quot;,&quot;removeOlderUnit&quot;:&quot;60&quot;,&quot;removeOlderPoints&quot;:&quot;&quot;,&quot;colors&quot;:[&quot;#1f77b4&quot;,&quot;#aec7e8&quot;,&quot;#ff7f0e&quot;,&quot;#2ca02c&quot;,&quot;#98df8a&quot;,&quot;#d62728&quot;,&quot;#ff9896&quot;,&quot;#9467bd&quot;,&quot;#c5b0d5&quot;],&quot;width&quot;:&quot;0&quot;,&quot;height&quot;:&quot;0&quot;,&quot;className&quot;:&quot;&quot;,&quot;x&quot;:1040,&quot;y&quot;:500,&quot;wires&quot;:[[]]},{&quot;id&quot;:&quot;a2cf0254a2c9731d&quot;,&quot;type&quot;:&quot;switch&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;b09909183a90841b&quot;,&quot;name&quot;:&quot;Switch by Call Type&quot;,&quot;property&quot;:&quot;counter&quot;,&quot;propertyType&quot;:&quot;msg&quot;,&quot;rules&quot;:[{&quot;t&quot;:&quot;eq&quot;,&quot;v&quot;:&quot;CallsActive&quot;,&quot;vt&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;eq&quot;,&quot;v&quot;:&quot;CallsAttempted&quot;,&quot;vt&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;eq&quot;,&quot;v&quot;:&quot;CallsCompleted&quot;,&quot;vt&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;eq&quot;,&quot;v&quot;:&quot;CallsInProgress&quot;,&quot;vt&quot;:&quot;str&quot;}],&quot;checkall&quot;:&quot;true&quot;,&quot;repair&quot;:false,&quot;outputs&quot;:4,&quot;x&quot;:770,&quot;y&quot;:480,&quot;wires&quot;:[[&quot;b5e415a39903f51c&quot;],[&quot;6e066a06997f9673&quot;],[&quot;86c8baa1ebc4ec3e&quot;],[&quot;bbb68292d6dfb96c&quot;]]},{&quot;id&quot;:&quot;86c8baa1ebc4ec3e&quot;,&quot;type&quot;:&quot;ui-chart&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;b09909183a90841b&quot;,&quot;group&quot;:&quot;c9c9de97d03e7c4c&quot;,&quot;name&quot;:&quot;&quot;,&quot;label&quot;:&quot;Calls Completed&quot;,&quot;order&quot;:9007199254740991,&quot;chartType&quot;:&quot;line&quot;,&quot;xAxisType&quot;:&quot;time&quot;,&quot;removeOlder&quot;:&quot;15&quot;,&quot;removeOlderUnit&quot;:&quot;60&quot;,&quot;removeOlderPoints&quot;:&quot;&quot;,&quot;colors&quot;:[&quot;#1f77b4&quot;,&quot;#aec7e8&quot;,&quot;#ff7f0e&quot;,&quot;#2ca02c&quot;,&quot;#98df8a&quot;,&quot;#d62728&quot;,&quot;#ff9896&quot;,&quot;#9467bd&quot;,&quot;#c5b0d5&quot;],&quot;width&quot;:&quot;0&quot;,&quot;height&quot;:&quot;0&quot;,&quot;className&quot;:&quot;&quot;,&quot;x&quot;:1030,&quot;y&quot;:540,&quot;wires&quot;:[[]]},{&quot;id&quot;:&quot;bbb68292d6dfb96c&quot;,&quot;type&quot;:&quot;ui-chart&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;b09909183a90841b&quot;,&quot;group&quot;:&quot;c9c9de97d03e7c4c&quot;,&quot;name&quot;:&quot;&quot;,&quot;label&quot;:&quot;Calls In Progress&quot;,&quot;order&quot;:9007199254740991,&quot;chartType&quot;:&quot;line&quot;,&quot;xAxisType&quot;:&quot;time&quot;,&quot;removeOlder&quot;:&quot;15&quot;,&quot;removeOlderUnit&quot;:&quot;60&quot;,&quot;removeOlderPoints&quot;:&quot;&quot;,&quot;colors&quot;:[&quot;#1f77b4&quot;,&quot;#aec7e8&quot;,&quot;#ff7f0e&quot;,&quot;#2ca02c&quot;,&quot;#98df8a&quot;,&quot;#d62728&quot;,&quot;#ff9896&quot;,&quot;#9467bd&quot;,&quot;#c5b0d5&quot;],&quot;width&quot;:&quot;0&quot;,&quot;height&quot;:&quot;0&quot;,&quot;className&quot;:&quot;&quot;,&quot;x&quot;:1030,&quot;y&quot;:580,&quot;wires&quot;:[[]]},{&quot;id&quot;:&quot;98cd0eb26ab5c2f3&quot;,&quot;type&quot;:&quot;switch&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;b09909183a90841b&quot;,&quot;name&quot;:&quot;Debug Variable Check&quot;,&quot;property&quot;:&quot;debug&quot;,&quot;propertyType&quot;:&quot;global&quot;,&quot;rules&quot;:[{&quot;t&quot;:&quot;eq&quot;,&quot;v&quot;:&quot;true&quot;,&quot;vt&quot;:&quot;str&quot;}],&quot;checkall&quot;:&quot;true&quot;,&quot;repair&quot;:false,&quot;outputs&quot;:1,&quot;x&quot;:800,&quot;y&quot;:360,&quot;wires&quot;:[[&quot;bcc7e6fa41e5612c&quot;]]},{&quot;id&quot;:&quot;15fe497467acba03&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;4b368d486490923a&quot;,&quot;g&quot;:&quot;365baa3159166665&quot;,&quot;name&quot;:&quot;Set to Auto Run -&gt;&quot;,&quot;info&quot;:&quot;First node will initalize flow.\n\nMake sure your AXL settings are correct in the &#39;Set Global Variables&#39; node.\n\nThis will auto run every time you \&quot;Deploy\&quot; the flow.&quot;,&quot;x&quot;:130,&quot;y&quot;:140,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;c9c9de97d03e7c4c&quot;,&quot;type&quot;:&quot;ui-group&quot;,&quot;name&quot;:&quot;SIP Perfmon&quot;,&quot;page&quot;:&quot;5788592495c79015&quot;,&quot;width&quot;:&quot;6&quot;,&quot;height&quot;:&quot;1&quot;,&quot;order&quot;:-1,&quot;disp&quot;:true},{&quot;id&quot;:&quot;5788592495c79015&quot;,&quot;type&quot;:&quot;ui-page&quot;,&quot;name&quot;:&quot;Perfmon Dashboard&quot;,&quot;ui&quot;:&quot;20412f87db1b0cd7&quot;,&quot;path&quot;:&quot;/perfmon&quot;,&quot;layout&quot;:&quot;grid&quot;,&quot;theme&quot;:&quot;e0714ab1e4e245cf&quot;,&quot;order&quot;:-1},{&quot;id&quot;:&quot;20412f87db1b0cd7&quot;,&quot;type&quot;:&quot;ui-base&quot;,&quot;name&quot;:&quot;Dashboard&quot;,&quot;path&quot;:&quot;/dashboard&quot;},{&quot;id&quot;:&quot;e0714ab1e4e245cf&quot;,&quot;type&quot;:&quot;ui-theme&quot;,&quot;name&quot;:&quot;Normal&quot;,&quot;colors&quot;:{&quot;surface&quot;:&quot;#ffffff&quot;,&quot;primary&quot;:&quot;#0094ce&quot;,&quot;bgPage&quot;:&quot;#eeeeee&quot;,&quot;groupBg&quot;:&quot;#ffffff&quot;,&quot;groupOutline&quot;:&quot;#cccccc&quot;}}]</pre><h3>Display live SIP Trunk status via RisPort</h3><p>This flow will collect RisPort data for all SIP trunks and display on dashboard. This flow could be edited to notify users or kick off another flow if a device status changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gmnu2CVfUb_FXYqRSQzxgw.png" /><figcaption>Node-RED dashboard displaying RisPort Status</figcaption></figure><p>Import this flow with the following JSON:</p><pre>[{&quot;id&quot;:&quot;60644299e58c7c53&quot;,&quot;type&quot;:&quot;subflow&quot;,&quot;name&quot;:&quot;Set Global Variables&quot;,&quot;info&quot;:&quot;&quot;,&quot;category&quot;:&quot;&quot;,&quot;in&quot;:[{&quot;x&quot;:40,&quot;y&quot;:80,&quot;wires&quot;:[{&quot;id&quot;:&quot;f08e510bbf870d27&quot;}]}],&quot;out&quot;:[{&quot;x&quot;:400,&quot;y&quot;:80,&quot;wires&quot;:[{&quot;id&quot;:&quot;f08e510bbf870d27&quot;,&quot;port&quot;:0}]}],&quot;env&quot;:[],&quot;meta&quot;:{},&quot;color&quot;:&quot;#DDAA99&quot;},{&quot;id&quot;:&quot;f08e510bbf870d27&quot;,&quot;type&quot;:&quot;change&quot;,&quot;z&quot;:&quot;60644299e58c7c53&quot;,&quot;name&quot;:&quot;Set Global Variables&quot;,&quot;rules&quot;:[{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;hostname&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;hq-cucm-pub.abc.inc&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;username&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;administrator&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;password&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;ciscopsdt&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;version&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;14.0&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;ciscoAxlOpts&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;{\&quot;clean\&quot;:true,\&quot;removeAttributes\&quot;:false,\&quot;dataContainerIdentifierTails\&quot;:\&quot;_data\&quot;}&quot;,&quot;tot&quot;:&quot;json&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;debug&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;false&quot;,&quot;tot&quot;:&quot;str&quot;}],&quot;action&quot;:&quot;&quot;,&quot;property&quot;:&quot;&quot;,&quot;from&quot;:&quot;&quot;,&quot;to&quot;:&quot;&quot;,&quot;reg&quot;:false,&quot;x&quot;:220,&quot;y&quot;:80,&quot;wires&quot;:[[]]},{&quot;id&quot;:&quot;48cde6c4422a5a97&quot;,&quot;type&quot;:&quot;tab&quot;,&quot;label&quot;:&quot;Risport - SIP Trunk&quot;,&quot;disabled&quot;:false,&quot;info&quot;:&quot;&quot;,&quot;env&quot;:[]},{&quot;id&quot;:&quot;979fb92abd23f8f3&quot;,&quot;type&quot;:&quot;group&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;style&quot;:{&quot;stroke&quot;:&quot;#999999&quot;,&quot;stroke-opacity&quot;:&quot;1&quot;,&quot;fill&quot;:&quot;none&quot;,&quot;fill-opacity&quot;:&quot;1&quot;,&quot;label&quot;:true,&quot;label-position&quot;:&quot;nw&quot;,&quot;color&quot;:&quot;#a4a4a4&quot;},&quot;nodes&quot;:[&quot;637b67114430621b&quot;,&quot;d6fa4ed5321c0673&quot;,&quot;f4e11d2bfbde582c&quot;,&quot;ee3ffc4226568775&quot;,&quot;f0e756bd39c746b0&quot;],&quot;x&quot;:34,&quot;y&quot;:39,&quot;w&quot;:1152,&quot;h&quot;:122},{&quot;id&quot;:&quot;21d13d281f1ed288&quot;,&quot;type&quot;:&quot;group&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;style&quot;:{&quot;stroke&quot;:&quot;#999999&quot;,&quot;stroke-opacity&quot;:&quot;1&quot;,&quot;fill&quot;:&quot;none&quot;,&quot;fill-opacity&quot;:&quot;1&quot;,&quot;label&quot;:true,&quot;label-position&quot;:&quot;nw&quot;,&quot;color&quot;:&quot;#a4a4a4&quot;},&quot;nodes&quot;:[&quot;66edc4a60e900c35&quot;,&quot;2cbccb4ddce020ae&quot;,&quot;1c68bd2bcced9daa&quot;,&quot;8111094ba81fef3c&quot;,&quot;4d1bc2fe602434ec&quot;,&quot;15f7dc2dea1e606d&quot;,&quot;fd639c19fc2562cf&quot;,&quot;e51ec3510f19aa0a&quot;,&quot;f760985d64499d0e&quot;,&quot;ecf3f3c89350cbb4&quot;,&quot;7252a6d8b81a62c3&quot;,&quot;09a197830d815e6c&quot;,&quot;fa7993f8757100c9&quot;],&quot;x&quot;:34,&quot;y&quot;:179,&quot;w&quot;:1152,&quot;h&quot;:422},{&quot;id&quot;:&quot;637b67114430621b&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;g&quot;:&quot;979fb92abd23f8f3&quot;,&quot;name&quot;:&quot;Set Variables&quot;,&quot;props&quot;:[{&quot;p&quot;:&quot;payload&quot;}],&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:true,&quot;onceDelay&quot;:0.1,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;{\&quot;variables\&quot;:\&quot;set\&quot;,\&quot;flow\&quot;:\&quot;SIP Risport\&quot;}&quot;,&quot;payloadType&quot;:&quot;json&quot;,&quot;x&quot;:350,&quot;y&quot;:120,&quot;wires&quot;:[[&quot;d6fa4ed5321c0673&quot;]],&quot;outputLabels&quot;:[&quot;Payload&quot;],&quot;info&quot;:&quot;# Introduction\n\nWhere we set the initial payload. This will be the where results are stored as it flows thru nodes.&quot;},{&quot;id&quot;:&quot;d6fa4ed5321c0673&quot;,&quot;type&quot;:&quot;subflow:60644299e58c7c53&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;g&quot;:&quot;979fb92abd23f8f3&quot;,&quot;name&quot;:&quot;Set Global Variables&quot;,&quot;x&quot;:680,&quot;y&quot;:120,&quot;wires&quot;:[[&quot;f4e11d2bfbde582c&quot;]]},{&quot;id&quot;:&quot;f4e11d2bfbde582c&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;g&quot;:&quot;979fb92abd23f8f3&quot;,&quot;name&quot;:&quot;Debug payload&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;payload&quot;,&quot;targetType&quot;:&quot;msg&quot;,&quot;statusVal&quot;:&quot;&quot;,&quot;statusType&quot;:&quot;auto&quot;,&quot;x&quot;:1060,&quot;y&quot;:120,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;66edc4a60e900c35&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;g&quot;:&quot;21d13d281f1ed288&quot;,&quot;name&quot;:&quot;SelectCmDeviceExt (SIPTrunk)&quot;,&quot;func&quot;:&quot;try {\n let service = new ciscoRisport(global.get(\&quot;hostname\&quot;), global.get(\&quot;username\&quot;), global.get(\&quot;password\&quot;));\n\n var newMsg;\n var results = await service.selectCmDevice(\&quot;SelectCmDeviceExt\&quot;, 1000, \&quot;SIPTrunk\&quot;, \&quot;\&quot;, \&quot;Any\&quot;, \&quot;\&quot;, \&quot;Name\&quot;, \&quot;\&quot;, \&quot;Any\&quot;, \&quot;Any\&quot;)\n\n // Let&#39;s find our results on the cluster and return just the array\n if (Array.isArray(results)) {\n results.map((item) =&gt; {\n if (item.ReturnCode === \&quot;Ok\&quot; &amp;&amp; \&quot;CmDevices\&quot; in item) {\n if (Array.isArray(item?.CmDevices?.item)) {\n newMsg = item?.CmDevices?.item;\n }\n }\n })\n }else{\n newMsg = results.CmDevices?.item;\n }\n\n msg = {\n payload: newMsg\n };\n\n return msg;\n} catch (error) {\n let errMsg = null\n errMsg = JSON.stringify(error);\n throw new Error(errMsg)\n}&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:&quot;&quot;,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[{&quot;var&quot;:&quot;ciscoRisport&quot;,&quot;module&quot;:&quot;cisco-risport&quot;}],&quot;x&quot;:470,&quot;y&quot;:300,&quot;wires&quot;:[[&quot;ecf3f3c89350cbb4&quot;,&quot;fa7993f8757100c9&quot;]]},{&quot;id&quot;:&quot;2cbccb4ddce020ae&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;g&quot;:&quot;21d13d281f1ed288&quot;,&quot;name&quot;:&quot;&quot;,&quot;props&quot;:[{&quot;p&quot;:&quot;payload&quot;}],&quot;repeat&quot;:&quot;60&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:true,&quot;onceDelay&quot;:0.1,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;{}&quot;,&quot;payloadType&quot;:&quot;str&quot;,&quot;x&quot;:510,&quot;y&quot;:220,&quot;wires&quot;:[[&quot;66edc4a60e900c35&quot;]]},{&quot;id&quot;:&quot;1c68bd2bcced9daa&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;g&quot;:&quot;21d13d281f1ed288&quot;,&quot;name&quot;:&quot;Debug payload&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;payload&quot;,&quot;targetType&quot;:&quot;msg&quot;,&quot;statusVal&quot;:&quot;&quot;,&quot;statusType&quot;:&quot;auto&quot;,&quot;x&quot;:1040,&quot;y&quot;:280,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;8111094ba81fef3c&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;g&quot;:&quot;21d13d281f1ed288&quot;,&quot;name&quot;:&quot;View @ http://&lt;node-red ip add&gt;:&lt;port&gt;/dashboard/risport&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:930,&quot;y&quot;:360,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;4d1bc2fe602434ec&quot;,&quot;type&quot;:&quot;catch&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;g&quot;:&quot;21d13d281f1ed288&quot;,&quot;name&quot;:&quot;Catch Error&quot;,&quot;scope&quot;:null,&quot;uncaught&quot;:false,&quot;x&quot;:370,&quot;y&quot;:560,&quot;wires&quot;:[[&quot;15f7dc2dea1e606d&quot;]]},{&quot;id&quot;:&quot;15f7dc2dea1e606d&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;g&quot;:&quot;21d13d281f1ed288&quot;,&quot;name&quot;:&quot;Error Function&quot;,&quot;func&quot;:&quot;\nreturn msg;&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[],&quot;x&quot;:720,&quot;y&quot;:560,&quot;wires&quot;:[[&quot;fd639c19fc2562cf&quot;]]},{&quot;id&quot;:&quot;fd639c19fc2562cf&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;g&quot;:&quot;21d13d281f1ed288&quot;,&quot;name&quot;:&quot;Debug error&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;error&quot;,&quot;targetType&quot;:&quot;msg&quot;,&quot;statusVal&quot;:&quot;&quot;,&quot;statusType&quot;:&quot;auto&quot;,&quot;x&quot;:1070,&quot;y&quot;:560,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;e51ec3510f19aa0a&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;g&quot;:&quot;21d13d281f1ed288&quot;,&quot;name&quot;:&quot;Error Handling&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:370,&quot;y&quot;:520,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;f760985d64499d0e&quot;,&quot;type&quot;:&quot;ui-table&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;g&quot;:&quot;21d13d281f1ed288&quot;,&quot;group&quot;:&quot;95bc7cf972bdbb84&quot;,&quot;name&quot;:&quot;RisPort Table&quot;,&quot;label&quot;:&quot;text&quot;,&quot;order&quot;:0,&quot;width&quot;:0,&quot;height&quot;:0,&quot;maxrows&quot;:0,&quot;autocols&quot;:true,&quot;columns&quot;:[],&quot;x&quot;:1070,&quot;y&quot;:420,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;ecf3f3c89350cbb4&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;g&quot;:&quot;21d13d281f1ed288&quot;,&quot;name&quot;:&quot;Create array for table&quot;,&quot;func&quot;:&quot;var table = [];\n\n\nfor (let i = 0; i &lt; msg.payload.length ; i++) {\n var json = {\n \&quot;Name\&quot;:msg.payload[i].Name,\n \&quot;Description\&quot;: msg.payload[i].Description,\n \&quot;Status\&quot;: msg.payload[i].Status\n }\n table.push(json);\n}\n\nvar newMsg = {\n payload: table\n}\n\nreturn newMsg;&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:0,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[],&quot;x&quot;:440,&quot;y&quot;:420,&quot;wires&quot;:[[&quot;7252a6d8b81a62c3&quot;]]},{&quot;id&quot;:&quot;7252a6d8b81a62c3&quot;,&quot;type&quot;:&quot;ui-markdown&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;g&quot;:&quot;21d13d281f1ed288&quot;,&quot;group&quot;:&quot;95bc7cf972bdbb84&quot;,&quot;name&quot;:&quot;&quot;,&quot;order&quot;:0,&quot;width&quot;:0,&quot;height&quot;:0,&quot;content&quot;:&quot;&gt; Trunk status updated every 60 seconds&quot;,&quot;className&quot;:&quot;&quot;,&quot;x&quot;:870,&quot;y&quot;:420,&quot;wires&quot;:[[&quot;f760985d64499d0e&quot;]]},{&quot;id&quot;:&quot;ee3ffc4226568775&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;g&quot;:&quot;979fb92abd23f8f3&quot;,&quot;name&quot;:&quot;CHANGE ME.&quot;,&quot;info&quot;:&quot;# Edit Subflow\n\nUpdate credentials to set global variables.&quot;,&quot;x&quot;:690,&quot;y&quot;:80,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;09a197830d815e6c&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;g&quot;:&quot;21d13d281f1ed288&quot;,&quot;name&quot;:&quot;Set to Auto Run &amp; Repeat Every 60 Seconds -&gt;&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:240,&quot;y&quot;:220,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;fa7993f8757100c9&quot;,&quot;type&quot;:&quot;switch&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;g&quot;:&quot;21d13d281f1ed288&quot;,&quot;name&quot;:&quot;Debug Variable Check&quot;,&quot;property&quot;:&quot;debug&quot;,&quot;propertyType&quot;:&quot;global&quot;,&quot;rules&quot;:[{&quot;t&quot;:&quot;eq&quot;,&quot;v&quot;:&quot;true&quot;,&quot;vt&quot;:&quot;str&quot;}],&quot;checkall&quot;:&quot;true&quot;,&quot;repair&quot;:false,&quot;outputs&quot;:1,&quot;x&quot;:800,&quot;y&quot;:280,&quot;wires&quot;:[[&quot;1c68bd2bcced9daa&quot;]]},{&quot;id&quot;:&quot;f0e756bd39c746b0&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;48cde6c4422a5a97&quot;,&quot;g&quot;:&quot;979fb92abd23f8f3&quot;,&quot;name&quot;:&quot;Set to Auto Run -&gt;&quot;,&quot;info&quot;:&quot;First node will initalize flow.\n\nMake sure your AXL settings are correct in the &#39;Set Global Variables&#39; node.\n\nThis will auto run every time you \&quot;Deploy\&quot; the flow.&quot;,&quot;x&quot;:150,&quot;y&quot;:120,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;95bc7cf972bdbb84&quot;,&quot;type&quot;:&quot;ui-group&quot;,&quot;name&quot;:&quot;SIP Trunk Status&quot;,&quot;page&quot;:&quot;f7d829debcf17f2a&quot;,&quot;width&quot;:&quot;12&quot;,&quot;height&quot;:&quot;1&quot;,&quot;order&quot;:-1,&quot;disp&quot;:true},{&quot;id&quot;:&quot;f7d829debcf17f2a&quot;,&quot;type&quot;:&quot;ui-page&quot;,&quot;name&quot;:&quot;RisPort Dashboard&quot;,&quot;ui&quot;:&quot;20412f87db1b0cd7&quot;,&quot;path&quot;:&quot;/risport&quot;,&quot;layout&quot;:&quot;grid&quot;,&quot;theme&quot;:&quot;e0714ab1e4e245cf&quot;,&quot;order&quot;:-1},{&quot;id&quot;:&quot;20412f87db1b0cd7&quot;,&quot;type&quot;:&quot;ui-base&quot;,&quot;name&quot;:&quot;Dashboard&quot;,&quot;path&quot;:&quot;/dashboard&quot;},{&quot;id&quot;:&quot;e0714ab1e4e245cf&quot;,&quot;type&quot;:&quot;ui-theme&quot;,&quot;name&quot;:&quot;Normal&quot;,&quot;colors&quot;:{&quot;surface&quot;:&quot;#ffffff&quot;,&quot;primary&quot;:&quot;#0094ce&quot;,&quot;bgPage&quot;:&quot;#eeeeee&quot;,&quot;groupBg&quot;:&quot;#ffffff&quot;,&quot;groupOutline&quot;:&quot;#cccccc&quot;}}]</pre><h3>Download “Cisco CallManager” Trace files via DIME</h3><p>This flow uses the DIME API to pull logs from Cisco Unified Communication Manager. Files are retrieved from server and made available to download via the dashboard. This example could be tied to a CRM to pull down files within <em>x</em> mintue(s) of receiving a trouble ticket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g1sVxYCUlv0cp1Zze2H-eQ.png" /><figcaption>Node-RED dashboard allowing users to download files from server</figcaption></figure><p>Import this flow with the following JSON:</p><pre>[{&quot;id&quot;:&quot;60644299e58c7c53&quot;,&quot;type&quot;:&quot;subflow&quot;,&quot;name&quot;:&quot;Set Global Variables&quot;,&quot;info&quot;:&quot;&quot;,&quot;category&quot;:&quot;&quot;,&quot;in&quot;:[{&quot;x&quot;:40,&quot;y&quot;:80,&quot;wires&quot;:[{&quot;id&quot;:&quot;f08e510bbf870d27&quot;}]}],&quot;out&quot;:[{&quot;x&quot;:400,&quot;y&quot;:80,&quot;wires&quot;:[{&quot;id&quot;:&quot;f08e510bbf870d27&quot;,&quot;port&quot;:0}]}],&quot;env&quot;:[],&quot;meta&quot;:{},&quot;color&quot;:&quot;#DDAA99&quot;},{&quot;id&quot;:&quot;f08e510bbf870d27&quot;,&quot;type&quot;:&quot;change&quot;,&quot;z&quot;:&quot;60644299e58c7c53&quot;,&quot;name&quot;:&quot;Set Global Variables&quot;,&quot;rules&quot;:[{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;hostname&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;hq-cucm-pub.abc.inc&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;username&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;administrator&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;password&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;ciscopsdt&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;version&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;14.0&quot;,&quot;tot&quot;:&quot;str&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;ciscoAxlOpts&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;{\&quot;clean\&quot;:true,\&quot;removeAttributes\&quot;:false,\&quot;dataContainerIdentifierTails\&quot;:\&quot;_data\&quot;}&quot;,&quot;tot&quot;:&quot;json&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;debug&quot;,&quot;pt&quot;:&quot;global&quot;,&quot;to&quot;:&quot;false&quot;,&quot;tot&quot;:&quot;str&quot;}],&quot;action&quot;:&quot;&quot;,&quot;property&quot;:&quot;&quot;,&quot;from&quot;:&quot;&quot;,&quot;to&quot;:&quot;&quot;,&quot;reg&quot;:false,&quot;x&quot;:220,&quot;y&quot;:80,&quot;wires&quot;:[[]]},{&quot;id&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;type&quot;:&quot;tab&quot;,&quot;label&quot;:&quot;DIME - Cisco CallManager&quot;,&quot;disabled&quot;:false,&quot;info&quot;:&quot;## SIP Dime\n\nFlow to retrieve Call Manager trace files from the last 5 mins.\n\nUsing &#39;cisco-dime&#39; package from npmjs.org.&quot;,&quot;env&quot;:[]},{&quot;id&quot;:&quot;7c6992d416b14aba&quot;,&quot;type&quot;:&quot;group&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;style&quot;:{&quot;stroke&quot;:&quot;#999999&quot;,&quot;stroke-opacity&quot;:&quot;1&quot;,&quot;fill&quot;:&quot;none&quot;,&quot;fill-opacity&quot;:&quot;1&quot;,&quot;label&quot;:true,&quot;label-position&quot;:&quot;nw&quot;,&quot;color&quot;:&quot;#a4a4a4&quot;},&quot;nodes&quot;:[&quot;f253f674aff88e31&quot;,&quot;9550cf335c64e249&quot;,&quot;aba4703861d033ab&quot;,&quot;18bfa4d27be0ae70&quot;,&quot;7c63745af14ad8fe&quot;],&quot;x&quot;:74,&quot;y&quot;:59,&quot;w&quot;:1152,&quot;h&quot;:122},{&quot;id&quot;:&quot;9c74ae078987380e&quot;,&quot;type&quot;:&quot;group&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;style&quot;:{&quot;stroke&quot;:&quot;#999999&quot;,&quot;stroke-opacity&quot;:&quot;1&quot;,&quot;fill&quot;:&quot;none&quot;,&quot;fill-opacity&quot;:&quot;1&quot;,&quot;label&quot;:true,&quot;label-position&quot;:&quot;nw&quot;,&quot;color&quot;:&quot;#a4a4a4&quot;},&quot;nodes&quot;:[&quot;a6d622eed9041333&quot;,&quot;55e49a2e32acf307&quot;,&quot;1b9dc36afdd9b6ad&quot;,&quot;37f0ef8f8e5471fb&quot;],&quot;x&quot;:74,&quot;y&quot;:199,&quot;w&quot;:1152,&quot;h&quot;:82},{&quot;id&quot;:&quot;32f116d55dd6b83e&quot;,&quot;type&quot;:&quot;group&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;style&quot;:{&quot;stroke&quot;:&quot;#999999&quot;,&quot;stroke-opacity&quot;:&quot;1&quot;,&quot;fill&quot;:&quot;none&quot;,&quot;fill-opacity&quot;:&quot;1&quot;,&quot;label&quot;:true,&quot;label-position&quot;:&quot;nw&quot;,&quot;color&quot;:&quot;#a4a4a4&quot;},&quot;nodes&quot;:[&quot;9b94c2199017139f&quot;,&quot;3d987d7b96751924&quot;,&quot;4f0881a104210e17&quot;,&quot;dc33bbcf800047a4&quot;,&quot;806478d4c6289a35&quot;,&quot;9f2c3c490ae26c17&quot;,&quot;6b8144193e205309&quot;,&quot;e56d02a281362c0b&quot;,&quot;34c38aa083fdcb7a&quot;,&quot;8ee6c541bfcd54c8&quot;,&quot;6f70426c70471104&quot;,&quot;c649659c9e104909&quot;,&quot;dbe72dabbb5a3c85&quot;,&quot;e744139e9c9adac9&quot;,&quot;c76e4e7587208c76&quot;,&quot;a8304d42be98c8bb&quot;,&quot;bae760f4eb3f6697&quot;,&quot;85cfccf021959b5a&quot;,&quot;fa4118a442f5d769&quot;,&quot;56d72aea29089862&quot;,&quot;cb5b1b032726f2fe&quot;,&quot;2e38f2c0f4d578af&quot;,&quot;fe2965e777b22ea0&quot;,&quot;cbc65e70f6f22c35&quot;,&quot;08842f73199d1a07&quot;,&quot;5c93fd169c77e448&quot;,&quot;e0d260d162282aa7&quot;,&quot;9ead903e437af5da&quot;,&quot;71c85c1a7673a9ee&quot;,&quot;a068219cdee9f31f&quot;,&quot;6e9f408069debfc6&quot;,&quot;f2d56abe93564bdf&quot;,&quot;01f78aa8502cc28b&quot;,&quot;93c1b35827b830bf&quot;,&quot;78f423f8f9837e49&quot;,&quot;5d75eabeb9eb57bc&quot;,&quot;adb7e2e4a3b20ab3&quot;],&quot;x&quot;:74,&quot;y&quot;:299,&quot;w&quot;:1152,&quot;h&quot;:942},{&quot;id&quot;:&quot;f253f674aff88e31&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;7c6992d416b14aba&quot;,&quot;name&quot;:&quot;Set Variables&quot;,&quot;props&quot;:[{&quot;p&quot;:&quot;payload&quot;}],&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:true,&quot;onceDelay&quot;:0.1,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;{\&quot;variables\&quot;:\&quot;set\&quot;,\&quot;flow\&quot;:\&quot;SIP DIME\&quot;}&quot;,&quot;payloadType&quot;:&quot;json&quot;,&quot;x&quot;:390,&quot;y&quot;:140,&quot;wires&quot;:[[&quot;9550cf335c64e249&quot;]],&quot;outputLabels&quot;:[&quot;Payload&quot;],&quot;info&quot;:&quot;# Introduction\n\nWhere we set the initial payload. This will be the where results are stored as it flows thru nodes.&quot;},{&quot;id&quot;:&quot;9550cf335c64e249&quot;,&quot;type&quot;:&quot;subflow:60644299e58c7c53&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;7c6992d416b14aba&quot;,&quot;name&quot;:&quot;Set Global Variables&quot;,&quot;x&quot;:680,&quot;y&quot;:140,&quot;wires&quot;:[[&quot;aba4703861d033ab&quot;]],&quot;info&quot;:&quot;## Edit\n\nEdit this subflow with your VOS creds.&quot;},{&quot;id&quot;:&quot;aba4703861d033ab&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;7c6992d416b14aba&quot;,&quot;name&quot;:&quot;Debug payload&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;payload&quot;,&quot;targetType&quot;:&quot;msg&quot;,&quot;statusVal&quot;:&quot;&quot;,&quot;statusType&quot;:&quot;auto&quot;,&quot;x&quot;:1100,&quot;y&quot;:140,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;a6d622eed9041333&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;9c74ae078987380e&quot;,&quot;name&quot;:&quot;listNodeServiceLogs&quot;,&quot;func&quot;:&quot;try {\n var serviceLogsNames = await ciscoDime.listNodeServiceLogs(global.get(\&quot;hostname\&quot;), global.get(\&quot;username\&quot;), global.get(\&quot;password\&quot;));\n\n var newMsg;\n\n msg = {\n payload: serviceLogsNames\n };\n\n return msg;\n} catch (error) {\n let errMsg = null\n errMsg = JSON.stringify(error);\n throw new Error(errMsg)\n}&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:&quot;&quot;,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[{&quot;var&quot;:&quot;ciscoDime&quot;,&quot;module&quot;:&quot;cisco-dime&quot;}],&quot;x&quot;:680,&quot;y&quot;:240,&quot;wires&quot;:[[&quot;37f0ef8f8e5471fb&quot;]]},{&quot;id&quot;:&quot;55e49a2e32acf307&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;9c74ae078987380e&quot;,&quot;name&quot;:&quot;&quot;,&quot;props&quot;:[{&quot;p&quot;:&quot;payload&quot;}],&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:false,&quot;onceDelay&quot;:0.1,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;{}&quot;,&quot;payloadType&quot;:&quot;str&quot;,&quot;x&quot;:370,&quot;y&quot;:240,&quot;wires&quot;:[[&quot;a6d622eed9041333&quot;]]},{&quot;id&quot;:&quot;1b9dc36afdd9b6ad&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;9c74ae078987380e&quot;,&quot;name&quot;:&quot;Press here -&gt;&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:170,&quot;y&quot;:240,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;37f0ef8f8e5471fb&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;9c74ae078987380e&quot;,&quot;name&quot;:&quot;Debug payload&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;payload&quot;,&quot;targetType&quot;:&quot;msg&quot;,&quot;statusVal&quot;:&quot;&quot;,&quot;statusType&quot;:&quot;auto&quot;,&quot;x&quot;:1100,&quot;y&quot;:240,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;9b94c2199017139f&quot;,&quot;type&quot;:&quot;catch&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Catch Error&quot;,&quot;scope&quot;:null,&quot;uncaught&quot;:false,&quot;x&quot;:370,&quot;y&quot;:1200,&quot;wires&quot;:[[&quot;3d987d7b96751924&quot;]]},{&quot;id&quot;:&quot;3d987d7b96751924&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Error Function&quot;,&quot;func&quot;:&quot;\nreturn msg;&quot;,&quot;outputs&quot;:1,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[],&quot;x&quot;:680,&quot;y&quot;:1200,&quot;wires&quot;:[[&quot;4f0881a104210e17&quot;]]},{&quot;id&quot;:&quot;4f0881a104210e17&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Debug error&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;error&quot;,&quot;targetType&quot;:&quot;msg&quot;,&quot;statusVal&quot;:&quot;&quot;,&quot;statusType&quot;:&quot;auto&quot;,&quot;x&quot;:1110,&quot;y&quot;:1200,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;dc33bbcf800047a4&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Error Handling&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:370,&quot;y&quot;:1160,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;806478d4c6289a35&quot;,&quot;type&quot;:&quot;inject&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Set Duration&quot;,&quot;props&quot;:[{&quot;p&quot;:&quot;payload&quot;}],&quot;repeat&quot;:&quot;&quot;,&quot;crontab&quot;:&quot;&quot;,&quot;once&quot;:false,&quot;onceDelay&quot;:0.1,&quot;topic&quot;:&quot;&quot;,&quot;payload&quot;:&quot;{\&quot;duration\&quot;:180}&quot;,&quot;payloadType&quot;:&quot;json&quot;,&quot;x&quot;:370,&quot;y&quot;:360,&quot;wires&quot;:[[&quot;5c93fd169c77e448&quot;]],&quot;outputLabels&quot;:[&quot;Payload&quot;],&quot;info&quot;:&quot;We set the initial payload to {}. This will be the where results are stored as it flows thru nodes.&quot;},{&quot;id&quot;:&quot;9f2c3c490ae26c17&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Get Operations Tags via AXL&quot;,&quot;func&quot;:&quot;try {\n let service = new ciscoAxl(global.get(\&quot;hostname\&quot;), global.get(\&quot;username\&quot;), global.get(\&quot;password\&quot;), global.get(\&quot;version\&quot;));\n\n var newMsg;\n var operation = msg.payload.operation;\n var tags = await service.getOperationTags(operation);\n\n newMsg = {\n payload: tags,\n topic: operation,\n status: &#39;Get operations tags via AXL&#39;\n };\n\n return newMsg;\n} catch (error) {\n let errMsg = null\n errMsg = JSON.stringify(error);\n throw new Error(errMsg)\n}&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:&quot;&quot;,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[{&quot;var&quot;:&quot;ciscoAxl&quot;,&quot;module&quot;:&quot;cisco-axl&quot;}],&quot;x&quot;:880,&quot;y&quot;:460,&quot;wires&quot;:[[&quot;e56d02a281362c0b&quot;,&quot;93c1b35827b830bf&quot;]]},{&quot;id&quot;:&quot;6b8144193e205309&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Get All Tags needed for operation: &#39;executeSQLQuery&#39;&quot;,&quot;info&quot;:&quot;This flow will get all the operations available via AXL on this CUCM cluster.\n\nResults returned in array, filtered by keyword.&quot;,&quot;x&quot;:1000,&quot;y&quot;:400,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;e56d02a281362c0b&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Return Results from &#39;executeSQLQuery&#39; via AXL&quot;,&quot;func&quot;:&quot;try {\n let service = new ciscoAxl(global.get(\&quot;hostname\&quot;), global.get(\&quot;username\&quot;), global.get(\&quot;password\&quot;), global.get(\&quot;version\&quot;));\n var newMsg;\n var operation = msg.topic;\n\n msg.payload.sql = \&quot;select name from processnode WHERE name != &#39;EnterpriseWideData&#39;\&quot;;\n\n var results = await service.executeOperation(operation, msg.payload, global.get(\&quot;ciscoAxlOpts\&quot;));\n\n newMsg = {\n payload: results,\n topic: operation,\n status: &#39;Return results from executeSQLQuery via AXL&#39;\n };\n\n return newMsg;\n} catch (error) {\n let errMsg = null\n errMsg = JSON.stringify(error);\n throw new Error(errMsg)\n}&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:&quot;&quot;,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[{&quot;var&quot;:&quot;ciscoAxl&quot;,&quot;module&quot;:&quot;cisco-axl&quot;}],&quot;x&quot;:340,&quot;y&quot;:540,&quot;wires&quot;:[[&quot;6f70426c70471104&quot;,&quot;f2d56abe93564bdf&quot;]]},{&quot;id&quot;:&quot;34c38aa083fdcb7a&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Call &#39;executeSQLQuery&#39; operation&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:380,&quot;y&quot;:480,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;8ee6c541bfcd54c8&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Press here -&gt;&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:170,&quot;y&quot;:360,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;6f70426c70471104&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;selectLogFiles via DIME&quot;,&quot;func&quot;:&quot;// Vanilla JS DateTime\nlet duration = flow.get(\&quot;duration\&quot;);\nlet date_ob = new Date();\nlet date_ob_past = new Date(date_ob);\ndate_ob_past.setMinutes(date_ob.getMinutes() - duration);\nlet currentCalendar = date_ob.toLocaleString().split(&#39;,&#39;)[0]\nlet currentTime = date_ob.toLocaleString(&#39;en-US&#39;, { hour: &#39;numeric&#39;, minute: &#39;numeric&#39;, hour12: true })\nlet futureTime = date_ob_past.toLocaleString(&#39;en-US&#39;, { hour: &#39;numeric&#39;, minute: &#39;numeric&#39;, hour12: true })\nlet currentDateTime = currentCalendar.concat(\&quot; \&quot;, currentTime)\nlet pastDateTime = currentCalendar.concat(\&quot; \&quot;, futureTime)\n\nvar serverArr = msg.payload.row;\nvar logArr = [];\nvar newMsg;\n\nfor (const server of serverArr) {\n try {\n let serviceLogsNames = await ciscoDime\n .selectLogFiles(\n server.name,\n global.get(\&quot;username\&quot;),\n global.get(\&quot;password\&quot;),\n \&quot;Cisco CallManager\&quot;,\n pastDateTime, // From Date\n currentDateTime, // To Date\n \&quot;Client: (GMT+0:0)Greenwich Mean Time-Europe/London\&quot;\n )\n .catch((err) =&gt; {\n return err;\n });\n\n logArr.push(serviceLogsNames);\n } catch (error) {\n let errMsg = null\n errMsg = JSON.stringify(error);\n throw new Error(errMsg)\n }\n}\n\nvar flattened = [].concat.apply([],logArr); // Flatten results\n\nnewMsg ={\n payload: flattened,\n status: &#39;Collect selectLogFiles via DIME&#39;\n}\n\n\nreturn newMsg;&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:&quot;&quot;,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[{&quot;var&quot;:&quot;ciscoDime&quot;,&quot;module&quot;:&quot;cisco-dime&quot;}],&quot;x&quot;:710,&quot;y&quot;:540,&quot;wires&quot;:[[&quot;c649659c9e104909&quot;,&quot;a068219cdee9f31f&quot;]]},{&quot;id&quot;:&quot;c649659c9e104909&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;getOneFile&quot;,&quot;func&quot;:&quot;var resultsArr = msg.payload;\nvar newMsg;\n\n// Let&#39;s loop thru the servers and get the files\nvar promises = resultsArr.map(function (result) {\n return ciscoDime\n .getOneFile(\n result.server,\n global.get(\&quot;username\&quot;),\n global.get(\&quot;password\&quot;),\n result.absolutepath\n )\n .catch((err) =&gt; {\n let errMsg = null\n errMsg = JSON.stringify(err);\n throw new Error(errMsg)\n });\n})\n\nvar outArr = await Promise.all(promises).then(function (results) {\n return results\n})\n\nnewMsg = {\n payload: outArr,\n status: &#39;Get file(s) from server using getOneFile via DIME&#39;\n}\n\nreturn newMsg;&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:0,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[{&quot;var&quot;:&quot;ciscoDime&quot;,&quot;module&quot;:&quot;cisco-dime&quot;}],&quot;x&quot;:270,&quot;y&quot;:620,&quot;wires&quot;:[[&quot;cb5b1b032726f2fe&quot;,&quot;01f78aa8502cc28b&quot;]]},{&quot;id&quot;:&quot;dbe72dabbb5a3c85&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Set base path&quot;,&quot;func&quot;:&quot;//restrict to /data\nvar basePath = \&quot;/data/\&quot;;\nvar filename = msg.req.params.fn;\n\n\nif(filename.includes(\&quot;..\\\\\&quot;)){\n msg.payload = \&quot;Illegal file path\&quot;;\n msg.statusCode = 405;//not allowed\n return [null, msg];//fire output 2\n} else if(filename.includes(\&quot;../\&quot;)){\n msg.payload = \&quot;Illegal file path\&quot;;\n msg.statusCode = 405;//not allowed\n return [null, msg];//fire output 2\n} \n//TODO: add more checks\n\nmsg.filename = basePath + filename;\nreturn [msg, null];//fire output 1\n\n\n&quot;,&quot;outputs&quot;:2,&quot;timeout&quot;:&quot;&quot;,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[],&quot;x&quot;:420,&quot;y&quot;:1000,&quot;wires&quot;:[[&quot;c76e4e7587208c76&quot;],[&quot;e744139e9c9adac9&quot;]]},{&quot;id&quot;:&quot;e744139e9c9adac9&quot;,&quot;type&quot;:&quot;http response&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;&quot;,&quot;statusCode&quot;:&quot;&quot;,&quot;headers&quot;:{},&quot;x&quot;:870,&quot;y&quot;:1040,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;c76e4e7587208c76&quot;,&quot;type&quot;:&quot;file in&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;&quot;,&quot;filename&quot;:&quot;filename&quot;,&quot;filenameType&quot;:&quot;msg&quot;,&quot;format&quot;:&quot;&quot;,&quot;chunk&quot;:false,&quot;sendError&quot;:false,&quot;encoding&quot;:&quot;none&quot;,&quot;allProps&quot;:false,&quot;x&quot;:640,&quot;y&quot;:980,&quot;wires&quot;:[[&quot;e744139e9c9adac9&quot;]]},{&quot;id&quot;:&quot;a8304d42be98c8bb&quot;,&quot;type&quot;:&quot;catch&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;&quot;,&quot;scope&quot;:null,&quot;uncaught&quot;:false,&quot;x&quot;:200,&quot;y&quot;:1080,&quot;wires&quot;:[[&quot;bae760f4eb3f6697&quot;,&quot;85cfccf021959b5a&quot;]]},{&quot;id&quot;:&quot;bae760f4eb3f6697&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Set 404&quot;,&quot;func&quot;:&quot;msg.payload = msg.error;\nmsg.statusCode = 404;//resource not found\nreturn msg;&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:&quot;&quot;,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[],&quot;x&quot;:640,&quot;y&quot;:1080,&quot;wires&quot;:[[&quot;e744139e9c9adac9&quot;]]},{&quot;id&quot;:&quot;85cfccf021959b5a&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;true&quot;,&quot;targetType&quot;:&quot;full&quot;,&quot;x&quot;:230,&quot;y&quot;:1120,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;fa4118a442f5d769&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Create http endpoint @ http://&lt;node-red ip add&gt;:&lt;port&gt;/files/data/xxx where xxx is the file name to download&quot;,&quot;info&quot;:&quot;# Example\n\nhttp://localhost:1880/files/data/SDL001_100_000120.txt.gz&quot;,&quot;x&quot;:510,&quot;y&quot;:940,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;56d72aea29089862&quot;,&quot;type&quot;:&quot;http in&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;&quot;,&quot;url&quot;:&quot;/files/data/:fn&quot;,&quot;method&quot;:&quot;get&quot;,&quot;upload&quot;:false,&quot;swaggerDoc&quot;:&quot;&quot;,&quot;x&quot;:190,&quot;y&quot;:1000,&quot;wires&quot;:[[&quot;dbe72dabbb5a3c85&quot;]]},{&quot;id&quot;:&quot;cb5b1b032726f2fe&quot;,&quot;type&quot;:&quot;split&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Split Results&quot;,&quot;splt&quot;:&quot;\\n&quot;,&quot;spltType&quot;:&quot;str&quot;,&quot;arraySplt&quot;:1,&quot;arraySpltType&quot;:&quot;len&quot;,&quot;stream&quot;:false,&quot;addname&quot;:&quot;&quot;,&quot;x&quot;:270,&quot;y&quot;:700,&quot;wires&quot;:[[&quot;fe2965e777b22ea0&quot;]]},{&quot;id&quot;:&quot;2e38f2c0f4d578af&quot;,&quot;type&quot;:&quot;file&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Create files&quot;,&quot;filename&quot;:&quot;filename&quot;,&quot;filenameType&quot;:&quot;msg&quot;,&quot;appendNewline&quot;:true,&quot;createDir&quot;:false,&quot;overwriteFile&quot;:&quot;true&quot;,&quot;encoding&quot;:&quot;none&quot;,&quot;x&quot;:530,&quot;y&quot;:780,&quot;wires&quot;:[[&quot;cbc65e70f6f22c35&quot;]]},{&quot;id&quot;:&quot;fe2965e777b22ea0&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Format Create File Msg&quot;,&quot;func&quot;:&quot;var newMsg;\n\n// Change output file name to whatever you&#39;d like\nvar filename = msg.payload.filename.substring(\n msg.payload.filename.lastIndexOf(\&quot;/\&quot;) + 1\n); // Let&#39;s get the file name from the full path\n\nvar parts = msg.parts;\nparts.filename = \&quot;/data/\&quot; + filename;\n\nnewMsg = {\n payload: msg.payload.data,\n filename: \&quot;/data/\&quot; + filename,\n parts: parts\n}\n\nreturn newMsg;&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:0,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[],&quot;x&quot;:310,&quot;y&quot;:780,&quot;wires&quot;:[[&quot;2e38f2c0f4d578af&quot;]]},{&quot;id&quot;:&quot;cbc65e70f6f22c35&quot;,&quot;type&quot;:&quot;join&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;&quot;,&quot;mode&quot;:&quot;custom&quot;,&quot;build&quot;:&quot;array&quot;,&quot;property&quot;:&quot;filename&quot;,&quot;propertyType&quot;:&quot;msg&quot;,&quot;key&quot;:&quot;filename&quot;,&quot;joiner&quot;:&quot;\\n&quot;,&quot;joinerType&quot;:&quot;str&quot;,&quot;accumulate&quot;:false,&quot;timeout&quot;:&quot;&quot;,&quot;count&quot;:&quot;&quot;,&quot;reduceRight&quot;:false,&quot;reduceExp&quot;:&quot;&quot;,&quot;reduceInit&quot;:&quot;&quot;,&quot;reduceInitType&quot;:&quot;num&quot;,&quot;reduceFixup&quot;:&quot;&quot;,&quot;x&quot;:270,&quot;y&quot;:860,&quot;wires&quot;:[[&quot;e0d260d162282aa7&quot;]]},{&quot;id&quot;:&quot;08842f73199d1a07&quot;,&quot;type&quot;:&quot;ui-form&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Get Duration&quot;,&quot;group&quot;:&quot;84b7c5aaffe22fcd&quot;,&quot;label&quot;:&quot;Enter duration in minutes to pull Cisco CallManager logs for:&quot;,&quot;order&quot;:0,&quot;width&quot;:0,&quot;height&quot;:0,&quot;options&quot;:[{&quot;label&quot;:&quot;Duration&quot;,&quot;key&quot;:&quot;duration&quot;,&quot;type&quot;:&quot;number&quot;,&quot;required&quot;:true,&quot;rows&quot;:null}],&quot;formValue&quot;:{&quot;duration&quot;:&quot;&quot;},&quot;payload&quot;:&quot;&quot;,&quot;submit&quot;:&quot;submit&quot;,&quot;cancel&quot;:&quot;clear&quot;,&quot;resetOnSubmit&quot;:true,&quot;topic&quot;:&quot;topic&quot;,&quot;topicType&quot;:&quot;msg&quot;,&quot;splitLayout&quot;:&quot;&quot;,&quot;className&quot;:&quot;&quot;,&quot;x&quot;:350,&quot;y&quot;:420,&quot;wires&quot;:[[&quot;5c93fd169c77e448&quot;]]},{&quot;id&quot;:&quot;5c93fd169c77e448&quot;,&quot;type&quot;:&quot;change&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Set Payload &amp; Flow Variables&quot;,&quot;rules&quot;:[{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;duration&quot;,&quot;pt&quot;:&quot;flow&quot;,&quot;to&quot;:&quot;payload.duration&quot;,&quot;tot&quot;:&quot;msg&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;payload&quot;,&quot;pt&quot;:&quot;msg&quot;,&quot;to&quot;:&quot;{\&quot;operation\&quot;:\&quot;executeSQLQuery\&quot;}&quot;,&quot;tot&quot;:&quot;json&quot;},{&quot;t&quot;:&quot;set&quot;,&quot;p&quot;:&quot;status&quot;,&quot;pt&quot;:&quot;msg&quot;,&quot;to&quot;:&quot;Collecting data….&quot;,&quot;tot&quot;:&quot;str&quot;}],&quot;action&quot;:&quot;&quot;,&quot;property&quot;:&quot;&quot;,&quot;from&quot;:&quot;&quot;,&quot;to&quot;:&quot;&quot;,&quot;reg&quot;:false,&quot;x&quot;:640,&quot;y&quot;:380,&quot;wires&quot;:[[&quot;9f2c3c490ae26c17&quot;,&quot;6e9f408069debfc6&quot;]],&quot;info&quot;:&quot;# Introduction\n\nUse this node to set variables that are unique to this flow within a project. Variables can then be accessed in other nodes with the following:\n\n``\nflow.get(\&quot;variable_name\&quot;);\n``&quot;},{&quot;id&quot;:&quot;e0d260d162282aa7&quot;,&quot;type&quot;:&quot;function&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Format for VUE template&quot;,&quot;func&quot;:&quot;var newMsg;\nvar fileNames = msg.filename;\nvar output = []\n\nfor (const file of fileNames) {\n var filename = file.substring(\n file.lastIndexOf(\&quot;/\&quot;) + 1\n );\n\n let json = {\n link: &#39;https://nodered.ubuntu.automate.builders/files&#39; + file,\n title: filename\n }\n output.push(json);\n}\n\nnewMsg = {\n payload: output\n}\n\nreturn newMsg;&quot;,&quot;outputs&quot;:1,&quot;timeout&quot;:0,&quot;noerr&quot;:0,&quot;initialize&quot;:&quot;&quot;,&quot;finalize&quot;:&quot;&quot;,&quot;libs&quot;:[{&quot;var&quot;:&quot;utils&quot;,&quot;module&quot;:&quot;util&quot;}],&quot;x&quot;:490,&quot;y&quot;:860,&quot;wires&quot;:[[&quot;9ead903e437af5da&quot;]]},{&quot;id&quot;:&quot;9ead903e437af5da&quot;,&quot;type&quot;:&quot;ui-template&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;group&quot;:&quot;84b7c5aaffe22fcd&quot;,&quot;dashboard&quot;:&quot;20412f87db1b0cd7&quot;,&quot;page&quot;:&quot;0a87b32a472e0d54&quot;,&quot;name&quot;:&quot;DIME Links&quot;,&quot;order&quot;:0,&quot;width&quot;:0,&quot;height&quot;:0,&quot;head&quot;:&quot;&quot;,&quot;format&quot;:&quot;&lt;div&gt;\n &lt;v-sheet class=\&quot;pa-md-4 mx-lg-auto\&quot; :elevation=\&quot;24\&quot; border color=\&quot;success\&quot; rounded v-if=\&quot;msg?.status\&quot;&gt;{{ msg?.status }}&lt;/v-sheet&gt;\n &lt;div v-for=\&quot;(url, index) in msg.payload\&quot; :key=\&quot;index\&quot;&gt;\n &lt;a v-if=\&quot;url.link\&quot; :href=\&quot;url.link\&quot; target=\&quot;_blank\&quot;&gt;{{ url.title }}&lt;/a&gt;\n &lt;span v-else&gt;{{ url.title }}&lt;/span&gt;\n &lt;/div&gt;\n&lt;/div&gt;&quot;,&quot;storeOutMessages&quot;:true,&quot;fwdInMessages&quot;:true,&quot;resendOnRefresh&quot;:true,&quot;templateScope&quot;:&quot;local&quot;,&quot;className&quot;:&quot;&quot;,&quot;x&quot;:1090,&quot;y&quot;:860,&quot;wires&quot;:[[]]},{&quot;id&quot;:&quot;71c85c1a7673a9ee&quot;,&quot;type&quot;:&quot;link in&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Status Messages In&quot;,&quot;links&quot;:[&quot;01f78aa8502cc28b&quot;,&quot;6e9f408069debfc6&quot;,&quot;a068219cdee9f31f&quot;,&quot;f2d56abe93564bdf&quot;,&quot;93c1b35827b830bf&quot;],&quot;x&quot;:725,&quot;y&quot;:720,&quot;wires&quot;:[[&quot;9ead903e437af5da&quot;,&quot;adb7e2e4a3b20ab3&quot;]]},{&quot;id&quot;:&quot;a068219cdee9f31f&quot;,&quot;type&quot;:&quot;link out&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Status Message Out&quot;,&quot;mode&quot;:&quot;link&quot;,&quot;links&quot;:[&quot;71c85c1a7673a9ee&quot;],&quot;x&quot;:965,&quot;y&quot;:540,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;6e9f408069debfc6&quot;,&quot;type&quot;:&quot;link out&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Status Message Out&quot;,&quot;mode&quot;:&quot;link&quot;,&quot;links&quot;:[&quot;71c85c1a7673a9ee&quot;],&quot;x&quot;:865,&quot;y&quot;:340,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;f2d56abe93564bdf&quot;,&quot;type&quot;:&quot;link out&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Status Message Out&quot;,&quot;mode&quot;:&quot;link&quot;,&quot;links&quot;:[&quot;71c85c1a7673a9ee&quot;],&quot;x&quot;:645,&quot;y&quot;:620,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;01f78aa8502cc28b&quot;,&quot;type&quot;:&quot;link out&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Status Message Out&quot;,&quot;mode&quot;:&quot;link&quot;,&quot;links&quot;:[&quot;71c85c1a7673a9ee&quot;],&quot;x&quot;:475,&quot;y&quot;:620,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;93c1b35827b830bf&quot;,&quot;type&quot;:&quot;link out&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Status Message Out&quot;,&quot;mode&quot;:&quot;link&quot;,&quot;links&quot;:[&quot;71c85c1a7673a9ee&quot;],&quot;x&quot;:1105,&quot;y&quot;:460,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;78f423f8f9837e49&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Get status messages to update dashboard&quot;,&quot;info&quot;:&quot;&quot;,&quot;x&quot;:680,&quot;y&quot;:680,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;18bfa4d27be0ae70&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;7c6992d416b14aba&quot;,&quot;name&quot;:&quot;CHANGE ME.&quot;,&quot;info&quot;:&quot;# Edit Subflow\n\nUpdate credentials to set global variables.&quot;,&quot;x&quot;:690,&quot;y&quot;:100,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;5d75eabeb9eb57bc&quot;,&quot;type&quot;:&quot;debug&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Debug payload&quot;,&quot;active&quot;:true,&quot;tosidebar&quot;:true,&quot;console&quot;:false,&quot;tostatus&quot;:false,&quot;complete&quot;:&quot;payload&quot;,&quot;targetType&quot;:&quot;msg&quot;,&quot;statusVal&quot;:&quot;&quot;,&quot;statusType&quot;:&quot;auto&quot;,&quot;x&quot;:1100,&quot;y&quot;:800,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;adb7e2e4a3b20ab3&quot;,&quot;type&quot;:&quot;switch&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;32f116d55dd6b83e&quot;,&quot;name&quot;:&quot;Debug Variable Check&quot;,&quot;property&quot;:&quot;debug&quot;,&quot;propertyType&quot;:&quot;global&quot;,&quot;rules&quot;:[{&quot;t&quot;:&quot;eq&quot;,&quot;v&quot;:&quot;true&quot;,&quot;vt&quot;:&quot;str&quot;}],&quot;checkall&quot;:&quot;true&quot;,&quot;repair&quot;:false,&quot;outputs&quot;:1,&quot;x&quot;:940,&quot;y&quot;:720,&quot;wires&quot;:[[&quot;5d75eabeb9eb57bc&quot;]]},{&quot;id&quot;:&quot;7c63745af14ad8fe&quot;,&quot;type&quot;:&quot;comment&quot;,&quot;z&quot;:&quot;4eb4949a15cfbbf9&quot;,&quot;g&quot;:&quot;7c6992d416b14aba&quot;,&quot;name&quot;:&quot;Set to Auto Run -&gt;&quot;,&quot;info&quot;:&quot;First node will initalize flow.\n\nMake sure your AXL settings are correct in the &#39;Set Global Variables&#39; node.\n\nThis will auto run every time you \&quot;Deploy\&quot; the flow.&quot;,&quot;x&quot;:190,&quot;y&quot;:140,&quot;wires&quot;:[]},{&quot;id&quot;:&quot;84b7c5aaffe22fcd&quot;,&quot;type&quot;:&quot;ui-group&quot;,&quot;name&quot;:&quot;SIP DIME&quot;,&quot;page&quot;:&quot;e1de64c15eccdf16&quot;,&quot;width&quot;:&quot;6&quot;,&quot;height&quot;:&quot;1&quot;,&quot;order&quot;:-1,&quot;disp&quot;:true},{&quot;id&quot;:&quot;20412f87db1b0cd7&quot;,&quot;type&quot;:&quot;ui-base&quot;,&quot;name&quot;:&quot;Dashboard&quot;,&quot;path&quot;:&quot;/dashboard&quot;},{&quot;id&quot;:&quot;0a87b32a472e0d54&quot;,&quot;type&quot;:&quot;ui-page&quot;,&quot;name&quot;:&quot;AXL Dashboard&quot;,&quot;ui&quot;:&quot;20412f87db1b0cd7&quot;,&quot;path&quot;:&quot;/axl&quot;,&quot;layout&quot;:&quot;grid&quot;,&quot;theme&quot;:&quot;e0714ab1e4e245cf&quot;,&quot;order&quot;:-1},{&quot;id&quot;:&quot;e1de64c15eccdf16&quot;,&quot;type&quot;:&quot;ui-page&quot;,&quot;name&quot;:&quot;DIME Dashboard&quot;,&quot;ui&quot;:&quot;20412f87db1b0cd7&quot;,&quot;path&quot;:&quot;/dime&quot;,&quot;layout&quot;:&quot;grid&quot;,&quot;theme&quot;:&quot;e0714ab1e4e245cf&quot;,&quot;order&quot;:-1},{&quot;id&quot;:&quot;e0714ab1e4e245cf&quot;,&quot;type&quot;:&quot;ui-theme&quot;,&quot;name&quot;:&quot;Normal&quot;,&quot;colors&quot;:{&quot;surface&quot;:&quot;#ffffff&quot;,&quot;primary&quot;:&quot;#0094ce&quot;,&quot;bgPage&quot;:&quot;#eeeeee&quot;,&quot;groupBg&quot;:&quot;#ffffff&quot;,&quot;groupOutline&quot;:&quot;#cccccc&quot;}}]</pre><p>Hopefully this boilerplate and examples will be useful in your DevOps workflow!</p><p>As always if you would like to support my work, you can always buy me a <a href="https://www.buymeacoffee.com/automatebldrs">coffee</a>. I would really appreciate it (but is not required).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/170/0*yaP4hEMtIEvlkrvG" /></figure><p>Thanks and enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=784a868a69b8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/automate-builders/low-code-devops-automation-with-node-red-784a868a69b8">Low code Cisco DevOps automation with Node-RED</a> was originally published in <a href="https://medium.com/automate-builders">automate builders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Capturing Cisco vCube SIP messages with Homer]]></title>
            <link>https://medium.com/automate-builders/capturing-cisco-vcube-sip-messages-with-homer-9b4beb10df70?source=rss----d6b6f4702c19---4</link>
            <guid isPermaLink="false">https://medium.com/p/9b4beb10df70</guid>
            <category><![CDATA[sip]]></category>
            <category><![CDATA[packet-capture]]></category>
            <category><![CDATA[cisco]]></category>
            <dc:creator><![CDATA[Jeremy Worden]]></dc:creator>
            <pubDate>Fri, 04 Aug 2023 21:20:33 GMT</pubDate>
            <atom:updated>2023-11-06T21:10:02.017Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently in my lab I made a Docker container running the latest version of SIPp (v3.7). I was doing this to stress test a SIP carrier and I wanted to automate some different scenarios. However, I soon discovered that the most cumbersome aspect of this was combing thru the logs to troubleshoot issues. This ultimately led me to project called <a href="https://sipcapture.org/">Homer</a>. Homer is part of a stack that lets you perform analysis and monitoring of SIP traffic. Today I will go over my setup to get Homer up and working in my lab. Also for those interested in my SIPp setup check out my <a href="https://github.com/sieteunoseis/sipp">GitHub</a>.</p><p>I started off by installing Homer on my Ubuntu 22.04 LTS server via Docker. I won’t be going over the OS <a href="https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-22-04">installation</a> or installing <a href="https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04">Docker</a>, but if you need a good guide I’d suggest some of the guides from DigitalOcean.</p><p>Moving back along, the Homer <a href="https://github.com/sipcapture/homer/wiki/Quick-Install">wiki</a> had a great guide for the Docker setup.</p><p>First I started by cloning the project, and then installing with Docker Compose:</p><pre>git clone https://github.com/sipcapture/homer7-docker<br>cd homer7-docker/heplify-server/hom7-prom-all<br>docker-compose up -d</pre><p>This will create a Docker stack that includes Homer, Prometheus, Loki and Grafana.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HqCHcdSlHi8nE9_GWDCkow.png" /><figcaption>Portainer view of Homer Docker Stack</figcaption></figure><p>Once they were up and running, I was able to access them via the following:</p><ul><li>Homer:9080 <em>(admin/sipcapture)</em></li><li>Grafana:9030 <em>(admin/admin)</em></li><li>Prometheus:9090 <em>(admin/admin)</em></li><li>Loki:3100 <em>(admin/admin)</em></li><li>Alertmanager:9093 <em>(admin/admin)</em></li></ul><p>Access to the Homer GUI is via HTTP on port 9080 and we will be able to send HEPv3 traffic to port 9060/UDP or 9061/TCP <em>(Note: ports can be modified by the docker-compose configuration).</em></p><p>After the containers are up and running, logging into the Homer GUI should reveal a blank dashboard:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z-wv01mOReFCJ7QfYRPS6Q.png" /><figcaption>Homer Dashboard</figcaption></figure><p>Great! Now let’s get some data into our Homer setup. For this we will use a capture agent. Capture agents collect and index SIP packets as well as relaying them to our Homer server on port 9060/UDP . The source of my SIP packets will be my vCube which has a trunk to Twilio. If you’d like more information on this setup check out this <a href="https://assets.cdn.prod.twilio.com/documents/InteropGuide_Twilio_vCiscoUBE_CiscoUCM_Final_1.1.pdf">PDF</a>, or leave a comment below.</p><p>I’m running my Cisco vCube on an Intel NUC with ESXi installed. My Intel NUC has a single NIC card that connects to my LAN.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XaDXSnI83YXD5WeoZqFRxg.png" /><figcaption>Home lab setup</figcaption></figure><p>To capture all the traffic in and out of the vCube we will be setting up a secondary interface. This second interface will be a member of a virtual switch within ESXi that also has a second interface from our Ubuntu host server. This will act a private network that we will use to port mirror network traffic across using ERSPAN.</p><p>ESXi configuration looks something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aPvkTOu_uODyBMWnNU9jFA.png" /><figcaption>ESXi vSwitch0 Topology</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NaycaHr-2OvVNmFdlZWVOw.png" /><figcaption>ESXi vSwitch1 Topology. Note: you may need to tag this as 4095.</figcaption></figure><p>Now that we have the plumbing for our secondary network. Let’s configure our Cisco vCube to mirror the traffic destined to vSwitch0 to vSwitch1.</p><pre>!<br>interface GigabitEthernet2<br> ip address 10.20.20.3 255.255.255.0<br> negotiation auto<br> no mop enabled<br> no mop sysid<br>!<br>monitor session 10 type erspan-source<br> source interface GigabitEthernet1<br> destination<br> erspan-id 10<br> mtu 1900<br> ip address 10.20.20.2<br> ipv6 dscp 0<br> ipv6 ttl 0<br> origin ip address 10.20.20.3<br>!</pre><p>Note: For my setup I used 10.10.20.x/24 as a private address space for my vSwitch1 network.</p><p>We are now mirroring traffic from GigabitEthernet1 on the vCube to IP address 10.10.20.2 which will be assigned to our Ubuntu Server via our internal vSwitch1 setup.</p><p>Back on our Ubuntu server I used netplan to set up my secondary interface.</p><pre>sudo nano /etc/netplan/*.yaml</pre><p>Then I pasted the following under the <em>ethernets</em> section:</p><pre>ens192:<br>  addresses:<br>    -10.20.20.2/24</pre><p>I then applied my configuration as so:</p><pre>sudo netplan try<br>sudo netplan apply</pre><p>Now we need to configure the Ubuntu side of the ERSPAN configuration with the following command.</p><pre>sudo ip link add dev cisco_erspan mtu 1900 type erspan seq key 10 local 10.20.20.2 remote 10.20.20.3 erspan_ver 1</pre><p>Enable the virtual interface.</p><pre>ip link set cisco_erspan up</pre><p>Afterwards you can then validate that packets are coming in with the following command:</p><pre>ip -d -s -s link show dev cisco_erspan</pre><p>We’ll be using systemd to make our ip link persistent. First let’s create a script file that we will run at boot:</p><pre>sudo touch erspan.sh</pre><p>Next we’ll need to update the permission on the file:</p><pre>chmod a+x erspan.sh</pre><p>Now let edit our file:</p><pre>sudo nano erspan.sh</pre><p>And paste in the following:</p><pre>#!/bin/bash<br># Make sure the script runs with super user privileges.<br>[ “$UID” -eq 0 ] || exec sudo bash “$0” “$@”<br># Create the virtual CAN interface.<br>ip link add dev cisco_erspan mtu 1900 type erspan seq key 10 local 10.20.20.2 remote 10.20.20.3 erspan_ver 1<br># Bring the virtual CAN interface online.<br>ip link set cisco_erspan up</pre><p>Now we’ll update systemd with a new service to point to our script file.</p><pre>sudo touch /etc/systemd/system/erspan.service<br>sudo nano /etc/systemd/system/erspan.service</pre><p>Paste in the following (Note: Update path to script):</p><pre>[Unit]<br>Description=Script to add ERSPAN links<br>After=network.target<br><br>[Service]<br>ExecStart=/path/to/erpsan.sh<br>Restart=always<br>User=root<br>Group=root<br>Type=simple<br><br>[Install]<br>WantedBy=multi-user.target</pre><p>Save and exit the file.</p><p>Reload the systemd manager configuration by running the following command:</p><pre>sudo systemctl daemon-reload</pre><p>Enable the service by running the following command:</p><pre>sudo systemctl enable erspan.service</pre><p>Start the service by running the following command:</p><pre>sudo systemctl start erspan.service</pre><p>Restart your system to test that the script is being run on startup!</p><p>Next we will be installing a capture agent on the Ubuntu host server that will then send the packets to our Homer Docker setup on port 9060/UDP.</p><p>First lets download the binary from GitHub with the following:</p><pre>wget https://github.com/sipcapture/heplify/releases/download/v1.65.2/heplify</pre><p>Next let’s move the binary so we will be able to access it anywhere from the prompt.</p><pre>sudo mv heplify /usr/local/bin</pre><p>You should then be able to run the command by simply issuing:</p><pre>sudo ./heplify -erspan &amp;</pre><p>This will collect the packets on all interface, including the erspan setup and forward it to 127.0.0.1:9060.</p><p>However, let’s take it a step further. Let’s add our binary application to a services and have it restart if it fails.</p><p>Start by creating a new service:</p><pre>sudo nano /lib/systemd/system/heplify.service</pre><p>Paste in the following:</p><pre>[Unit]<br>Description=<br>After=network.target<br><br>[Service]<br>Type=simple<br>ExecStart=/usr/local/bin/heplify -erspan<br>Restart=on-failure<br>RestartSec=1s<br><br>[Install]<br>WantedBy=multi-user.target</pre><p>Enable and start your service:</p><pre>systemctl enable heplify.service<br>systemctl start heplify.service</pre><p>Verify that your service is up and running:</p><pre>ubuntu:~$ ps aux | grep heplify<br>root     2554183  0.0  0.1 797204 26552 ?        Ssl  18:50   0:05 /usr/local/bin/heplify -erspan</pre><p>If everything went as planned we should see some SIP messages in our Homer dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sLxPbBaVhMW6Yq-cS9RmMg.png" /><figcaption>Homer Dashboard</figcaption></figure><p>Now you should be able to drill down into all the SIP traffic, including raw messages, SIP ladder diagrams or even downloading the PCAP file for the call!</p><p>NOTE: If you also install the SIPp container on the same Ubuntu host, messages from SIPp will also be captured to your Homer installation as well.</p><p>As always if you would like to support my work, you can always buy me a <a href="https://www.buymeacoffee.com/automatebldrs">coffee</a>. I would really appreciate it (but is not required).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/170/0*hwp8YLkUnWqEr0EH" /></figure><p>Thanks and enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b4beb10df70" width="1" height="1" alt=""><hr><p><a href="https://medium.com/automate-builders/capturing-cisco-vcube-sip-messages-with-homer-9b4beb10df70">Capturing Cisco vCube SIP messages with Homer</a> was originally published in <a href="https://medium.com/automate-builders">automate builders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install SIPp on Ubuntu Linux]]></title>
            <link>https://medium.com/automate-builders/install-sipp-on-ubuntu-linux-eddf63553c62?source=rss----d6b6f4702c19---4</link>
            <guid isPermaLink="false">https://medium.com/p/eddf63553c62</guid>
            <dc:creator><![CDATA[Jeremy Worden]]></dc:creator>
            <pubDate>Thu, 27 Jul 2023 02:06:02 GMT</pubDate>
            <atom:updated>2023-07-27T02:06:02.418Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/286/1*Om2Qt5ZJA1n1cSz8BV1C_Q.jpeg" /></figure><h3>Install SIPp dependency packages</h3><p>Install the dependencies needed by SIPp by running the following commands on your terminal.</p><pre>sudo apt update<br>sudo apt install -y pkg-config dh-autoreconf ncurses-dev build-essential libssl-dev libpcap-dev libncurses5-dev libsctp-dev lksctp-tools cmake</pre><p>Once the download is finished, proceed to download and compile SIPp on your Ubuntu 22.04|20.04|18.04|16.04 server.</p><h3>Download and install SIPp</h3><p>We’re going to install SIPp from Github master branch to get the latest release. Ensure git is installed in your system. Note: Instructions are for SIP 3.7+.</p><pre>sudo apt -y install git</pre><p>Clone the Project from Github</p><pre>git clone https://github.com/SIPp/sipp.git</pre><p>To build SIPp with SSL, PCAP and SCTP support, run:</p><pre>cd sipp<br>cmake . -DUSE_SSL=1 -DUSE_SCTP=1 -DUSE_PCAP=1 -DUSE_GSL=1<br>make all</pre><p>If you receive the following error</p><p>Cannot find source file:</p><p>/home/administrator/sipp/gtest/googletest/src/gtest-all.cc</p><p>Try running:</p><pre>git submodule init<br>git submodule update<br>cmake . -DUSE_SSL=1 -DUSE_SCTP=1 -DUSE_PCAP=1 -DUSE_GSL=1<br>make all</pre><p>If the build was successful, you’ll get a sipp binary file in your build directory</p><p>Copy this file to the directory/usr/local/bin.</p><pre>sudo cp sipp /usr/local/bin<br>sudo make install</pre><p>You should now be able to call sipp command from any directory.</p><p>You can verify this by issuing the following command from any directory:</p><pre>sipp -v</pre><p>Which should give you output similar to:</p><pre>$ sipp -v <br> <br> SIPp v3.7.0-1-ge86bf93-TLS-SCTP-PCAP.<br><br> This program is free software; you can redistribute it and/or<br> modify it under the terms of the GNU General Public License as<br> published by the Free Software Foundation; either version 2 of<br> the License, or (at your option) any later version.<br><br> This program is distributed in the hope that it will be useful,<br> but WITHOUT ANY WARRANTY; without even the implied warranty of<br> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the<br> GNU General Public License for more details.<br><br> You should have received a copy of the GNU General Public<br> License along with this program; if not, write to the<br> Free Software Foundation, Inc.,<br> 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA<br><br> Author: see source files.</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eddf63553c62" width="1" height="1" alt=""><hr><p><a href="https://medium.com/automate-builders/install-sipp-on-ubuntu-linux-eddf63553c62">Install SIPp on Ubuntu Linux</a> was originally published in <a href="https://medium.com/automate-builders">automate builders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scripting Cisco AXL with NodeJS]]></title>
            <link>https://medium.com/automate-builders/scripting-cisco-axl-with-nodejs-1c9f9755e00c?source=rss----d6b6f4702c19---4</link>
            <guid isPermaLink="false">https://medium.com/p/1c9f9755e00c</guid>
            <dc:creator><![CDATA[Jeremy Worden]]></dc:creator>
            <pubDate>Tue, 08 Nov 2022 20:51:08 GMT</pubDate>
            <atom:updated>2022-11-08T20:51:07.921Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*8ZdlwOJt70pYySKS-pg8fQ@2x.png" /></figure><p>Can you make <a href="https://developer.cisco.com/docs/axl/">AXL</a> scripting cool in 2022?</p><p>Probably not as it’s been out for over a decade, but we can make it easier.</p><p>Today I’d like to cover a new package I published on <a href="https://www.npmjs.com/">npmjs.com</a> called <a href="https://www.npmjs.com/package/cisco-axl"><strong><em>cisco-axl</em></strong></a>!</p><p><strong><em>cisco-axl</em></strong> is a package coded to make AXL calls as easiest as possible. The goal is to extract as much information from the <a href="https://www.w3schools.com/xml/xml_wsdl.asp">WSDL</a> file, thereby freeing programmer from having to memorize operations or tags. Or even worse which I was doing, programming for each individual operation within AXL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*aAERzBfwZ7_cfRVg3HQUnw@2x.png" /><figcaption>Portion of the tags needed for the “addPhone” AXL operation</figcaption></figure><p>So how does <strong><em>cisco-axl </em></strong>make this easier?<strong><em> </em></strong>Well to start <strong><em>cisco-axl, </em></strong>only has three methods. These three methods help answer the following:</p><ul><li>What AXL operations can I perform?</li><li>What is needed to perform an individual AXL operation?</li><li>How do I actually execute the operation?</li></ul><p>By only having three methods, rather than an individual methods for each AXL operation, you end up with a lot simpler scripts. Currently version 14 of <a href="https://www.cisco.com/c/en/us/products/unified-communications/unified-communications-manager-callmanager/index.html">Cisco Unified Communications Manger (CUCM)</a> has 1068 operations!</p><p>So what are the three methods?</p><p>The first method (<strong>returnOperations</strong>) does exactly has the name implies, it returns what AXL operations are available for your version of CUCM. The second method (<strong>getOperationTags</strong>) returns the tags necessary to complete the supplied operation, in the form of a JSON object. And the third and final method (<strong>executeOperation</strong>) will execute the defined operation with the supplied tags. You can think of operations as predefined functions that you can perform and the tags are the arguments for those functions.</p><p>Let’s take a look at an example:</p><pre>const axlService = require(“cisco-axl”);<br>/*</pre><pre>Example of how to copy a phone. This is similar to the Super Copy function in CUCM. Just an example of how to do it via AXL.</pre><pre>*/</pre><pre>// Set up new AXL service</pre><pre>let service = new axlService(“10.10.20.1”, “administrator”, “ciscopsdt”, “14.0”);</pre><pre>(async () =&gt; {<br>    var operation = “getPhone”;<br>    var tags = await service.getOperationTags(operation);<br>    tags.name = “CSFUSER001”;</pre><pre>    var output = await service.executeOperation(operation, tags,       true);<br>    <br>    operation = “addPhone”;<br>    output.phone.name = “CSFWORDENJ”;</pre><pre>    // Confidential Access Mode is returned as undefined.<br>    // We won&#39;t be needing it, so let&#39;s delete this tag.<br>    // Otherwise we will get a SOAP fault error :/</pre><pre>   delete output.phone.confidentialAccess;</pre><pre>   await service<br>        .executeOperation(operation, output)<br>        .then((results) =&gt; {<br>           console.log(results);<br>        })<br>        .catch((error) =&gt; {<br>           console.log(error);<br>        });<br>})();</pre><p>In the above code, we are using two of the three methods of <strong><em>cisco-axl.</em></strong></p><p>First we make a call to <strong><em>getOperationTags, </em></strong>to retrieve the tags for the <strong><em>“getPhone”</em></strong> operation. This is an informational only method, retrieving the necessary tags to actually execute the <strong><em>“getPhone”</em></strong> operation. You can think of this as the instructions on how the operation works. Once we have those tags (or instructions), we can update them with the name of the phone that we are looking to copy: <strong>CSFUSER001</strong>.</p><p>The next call is the actual execution of <strong><em>“getPhone” </em></strong>operation via <strong><em>executeOperation </em></strong>call. This call will return the tags (or instructions) via a JSON object that make up how the phone <strong>CSFUSER001 </strong>is built in CUCM.</p><p>It’s with these returned tags from the <strong><em>“getPhone”</em></strong> operation that we then edit to use in the <strong><em>“addPhone”</em></strong> operation, which is our last call via <strong><em>cisco-axl</em></strong>. Since we are copying the phone like for like, we only need to edit the <strong>name </strong>tag: <strong>CSFWORDENJ</strong>. Now the <strong><em>executeOperation, </em></strong>supplied with <strong><em>“addPhone”</em></strong> and the edited tags from the previous <strong><em>“getPhone”</em></strong> call create a new phone and return a JSON object with the <strong>UUID</strong> of the newly created phone.</p><p>So why couldn’t I just do that in the CUCM GUI? Well the quick answer is you could, this was just an easy example to demonstrate how the package works. On <a href="https://github.com/sieteunoseis/cisco-axl">Github</a> I’ve supplied other examples that you can use with <strong>cisco-axl</strong> for items that you can’t do in the CUCM GUI, like super copying a SIP trunk. There’s also a folder demonstrating how to save and execute SQL queries which I find super useful.</p><p>As always if you would like to support my work, you can always buy me a <a href="https://www.buymeacoffee.com/automatebldrs">coffee</a>. I would really appreciate it (but is not required).</p><figure><a href="https://www.buymeacoffee.com/automatebldrs"><img alt="" src="https://cdn-images-1.medium.com/max/170/0*vA6-VyaX29nhE0cA" /></a></figure><p>Thanks and enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c9f9755e00c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/automate-builders/scripting-cisco-axl-with-nodejs-1c9f9755e00c">Scripting Cisco AXL with NodeJS</a> was originally published in <a href="https://medium.com/automate-builders">automate builders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating PCAP captures on Cisco VOS applications]]></title>
            <link>https://medium.com/automate-builders/automating-pcap-captures-on-cisco-vos-applications-90d4b54588de?source=rss----d6b6f4702c19---4</link>
            <guid isPermaLink="false">https://medium.com/p/90d4b54588de</guid>
            <category><![CDATA[cloudshark]]></category>
            <category><![CDATA[cucm]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[cisco]]></category>
            <dc:creator><![CDATA[Jeremy Worden]]></dc:creator>
            <pubDate>Sat, 22 Oct 2022 01:05:59 GMT</pubDate>
            <atom:updated>2022-10-22T01:05:59.451Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*Ipmqf7BSCqnJLp1xv5412A.png" /></figure><p>Back around version 11.x, Cisco introduced an <a href="https://www.cisco.com/c/en/us/support/docs/customer-collaboration/unified-contact-center-express/213514-enhanced-packet-capture-on-all-vos-appli.html">enhanced packet capture</a> tool for its VOS (Voice Operating System). You might know it better as the OS that powers:</p><ul><li>CUCM</li><li>UCCX</li><li>CUC</li><li>IM&amp;P</li></ul><p>The new packet capture tool would rotate a set of files continuously on the server until you asked it to stop. This made it much easier to troubleshoot an intermittent issue. Once you were able to reproduce the issue and capture via the tool, you could download the files via <a href="https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/service/14SU2/rtmt/cucm_b_cisco-unified-rtmt-administration-14Su2.html">RTMT</a> and analyze via <a href="https://www.wireshark.org/">Wireshark</a>.</p><p>Today we’re going to automate this process and introduce a new way to analyze the packet captures via <a href="https://www.cloudshark.org/">Cloudshark</a>.</p><p>To start off we will need <a href="https://nodejs.org/en/">NodeJS</a>. You’ll want to download version 16.18.0 or higher. We will be using the <a href="https://developer.mozilla.org/en-US/docs/Web/API/fetch">fetch</a> module that was first introduced in 16.18.0.</p><p>Next you need to clone the following repository from <a href="https://github.com/">Github</a>, (alternatively you can download the code <a href="https://github.com/sieteunoseis/cisco-vos-cloudshark">here</a>):</p><pre>gh repo clone sieteunoseis/cisco-vos-cloudshark</pre><p>You’ll need to have <a href="https://cli.github.com/">Github CLI</a> installed for the above command to work. You may also need to log into Github as well via:</p><pre>gh auth login</pre><p>Once you’ve cloned the repository, navigate to the folder to install the necessary node modules using:</p><pre>npm install</pre><p>This will create a <em>node_modules</em> folder for you will all the necessary modules installed.</p><p>Next we will need an environmental variable file. On MacOS and Linux you can create one via:</p><pre>touch .env </pre><p>You’ll need to add the following environmental variables (replace with your own values):</p><pre>PUBLISHER=&quot;10.10.20.1&quot;<br>USERNAME=&quot;administrator&quot;<br>PASSWORD=&quot;ciscopsdt&quot;<br>VERSION=&quot;14.0&quot;<br>COMMANDTIMEOUT=&quot;150000&quot;<br>FILENAME=&quot;testcapture&quot;<br>CLOUDSHARKAPI=&quot;&quot;</pre><p>By default the script will capture for 5 minutes. To change this value update the <strong>COMMANDTIMEOUT </strong>variable. This is in milliseconds and has a max value of 2147483647, which is just over 24 days.</p><p>You’ll also need a <a href="https://cloudshark.io/products/personal/">Cloudshark</a> account and API token. You can sign up for a free 30 day trial on the Cloudshark webpage.</p><p>After filling in all of the environmental variables you’ll then be about to run the script via:</p><pre>npm run start</pre><p>Script output should resemble this once completed:</p><pre>npm run start</pre><pre>&gt; cisco-vos-cloudshark@1.0.1 start<br>&gt; NODE_OPTIONS= — experimental-vm-modules NODE_NO_WARNINGS=1 NODE_TLS_REJECT_UNAUTHORIZED=0 node main.js</pre><pre>Script brought to you by:<br> ____ ____ ____ ____ ____ ____ ____ ____ <br> ||A |||u |||t |||o |||m |||a |||t |||e ||<br> ||__|||__|||__|||__|||__|||__|||__|||__||<br> |/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|<br> ____ ____ ____ ____ ____ ____ ____ ____ <br> ||B |||u |||i |||l |||d |||e |||r |||s ||<br> ||__|||__|||__|||__|||__|||__|||__|||__||<br> |/__\|/__\|/__\|/__\|/__\|/__\|/__\|/__\|<br> <br> <br>Retrieving servers via AXL API.<br>Starting packet captures on 1 servers via ssh.<br>SSH: Connected to 10.10.20.1.<br>SSH: Ready. Running command for 150 seconds. Press Ctrl-c to force connection closed.<br>SSH: Command `utils network capture-rotate file testcapture` finished after 150 seconds. Closing connection and exiting.<br>SSH: Connection ended.<br>SSH: Connection to 10.10.20.1 closed.<br>Packet capture completed. Retrieving a list of files from server(s) via DIME API<br>Successfully found 1 files on servers. Attempting to retrieve via DimeGetFileService.<br>Successfully downloaded files via DIME. Attempting to upload to Cloudshark.<br>Successfully uploaded files to Cloudshark. View online via url:<br><a href="https://www.cloudshark.org/captures/472e67eb0862">https://www.cloudshark.org/captures/472e67eb0862</a></pre><p>You’ll then be able to open the Cloudshark link in your favorite browser using the link at the bottom of the script.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*lH91qYRX_2f7wrP_ntZbKg@2x.png" /><figcaption>Cloudshark Analysis tools</figcaption></figure><p>Cloudshark has a bunch of analytical tools built in, including Zeek logs. You can also add per-packet annotations for any notes that you may want to share with colleagues. They also let you tag the packets. In the script we tag packets with the following: cisco, cucm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/1*pPXHKvhZhzctI8lqP6WRPA@2x.png" /></figure><p>Tag can be edited in the <em>main.js</em> file at the top.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/322/1*TBBD7NxR2cBDJ6njrZJ1gA@2x.png" /><figcaption>Cloudshark tags</figcaption></figure><p>If you would like to support my work, you can always buy me a <a href="https://www.buymeacoffee.com/automatebldrs">coffee</a>. I would really appreciate it (but is not required).</p><figure><a href="https://www.buymeacoffee.com/automatebldrs"><img alt="" src="https://cdn-images-1.medium.com/max/170/0*4V0yLbGLnks-wp6W" /></a></figure><p>Thanks and enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90d4b54588de" width="1" height="1" alt=""><hr><p><a href="https://medium.com/automate-builders/automating-pcap-captures-on-cisco-vos-applications-90d4b54588de">Automating PCAP captures on Cisco VOS applications</a> was originally published in <a href="https://medium.com/automate-builders">automate builders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Local Calls with Globalized Dial Plan in Cisco CUCM]]></title>
            <link>https://medium.com/automate-builders/local-calls-with-globalized-dial-plan-in-cisco-cucm-6933c4bacc85?source=rss----d6b6f4702c19---4</link>
            <guid isPermaLink="false">https://medium.com/p/6933c4bacc85</guid>
            <category><![CDATA[lua]]></category>
            <category><![CDATA[cisco]]></category>
            <category><![CDATA[sip]]></category>
            <category><![CDATA[call-management]]></category>
            <dc:creator><![CDATA[Jeremy Worden]]></dc:creator>
            <pubDate>Thu, 22 Sep 2022 15:50:33 GMT</pubDate>
            <atom:updated>2022-09-08T21:44:00.558Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*onb7Koz_e0mhjhoy.png" /></figure><p>Cisco first introduced a Globalized Dial Plan Approach in <a href="https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cucm/srnd/collab12/collab12/dialplan.html#48778"><strong><em>Solution Reference Network Designs (SRND)</em></strong></a> version 12. This dial plan featured a way to implement simplified call routing based on globalized numbers, more common known as E.164 format. E.164 numbers are unique by definition and allow system administrators to have one dialing habit for their users. Calls can easily be defined as on-net and off-net. All off-net calls use an E.164 format beginning with a <strong>+</strong>. This greatly simplifies the amount of route patterns needed in a cluster. In most installations I’ve had a single <a href="https://en.wikipedia.org/wiki/North_American_Numbering_Plan"><strong><em>NANP</em></strong></a> route pattern of <strong>\+!, </strong>which<strong> </strong>will route calls for any pattern that begins with the <strong>+</strong> character.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*DtT9iNLidO28TL2-dV_5uA.png" /><figcaption><strong>Figure 1: </strong>Variable length route pattern</figcaption></figure><p>Of course to achieve this, you need your users to give up local dialing. Users typically need to be re-trained to dial either full 10 digit or 11 digits to make all off-net calls. Otherwise you need to either have a large number of translation patterns per local area exchange to accommodate local dialing.</p><p>I’ve always wanted to come up with a creative way to have both. While playing around in my lab I found a solution via SIP Normalization. My lab deployment consist of a number of translation patterns that handle the conversion to E.164. Basically phones can dial translation patterns and the patterns translated up to E.164. Once translated the patterns can then access the route pattern. This insures that only numbers fully formatted to the E.164 standard can access off-net routes. Here is an example of my US National dialing patterns (<a href="https://en.wikipedia.org/wiki/North_American_Numbering_Plan">NANP</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2nuy-iLZYwBLThtAtK8gew.png" /><figcaption><strong>Figure 2: </strong>Translation patterns for NANP calls</figcaption></figure><p>Users dial 9 to get an outside line and then either the 10 digit or 11 digit number. The translation pattern adds either a <strong>+1</strong> or just a plus (<strong>+</strong>) to the number and drops everything before the predot. It then sends the number off to the route pattern and away it goes. Every phone in the network has access to these patterns which is where the simplization comes from. No need to have individual patterns per site, at the cost of losing local dialing. But what if you could have a globalized local pattern, that could detect what the area exchange was of the phone that was dialing and add it to the outbound call? Let’s see if we can accomplish this via SIP Normalization. First let’s look at the translation pattern.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QXNmWDza43u7Ub03t4h4tA.png" /><figcaption><strong>Figure 3: </strong>Translation pattern for local NANP calls</figcaption></figure><p>Looks familiar right? Basically is an even shorter version of the 10 digit pattern we used earlier. Just this time around we will need to add more than just a <strong>+1</strong>. In my lab I prepended a <strong>+1999</strong> to all calls matching this translation pattern. Then my newly translated number (example: <strong>+19995551122</strong>) would be sent to my variable length route pattern (Figure 1).</p><pre><strong>NOTE:</strong> Having this shorter pattern will introduce some inter-digit timeout to the user. A couple options to mitigate this would be shorten the timer or remove the option to have 10 digit dialing.</pre><p>In my lab the <strong>\+!</strong> route pattern sends the fully formatted E.164 number to a SIP trunk then off to <a href="https://www.twilio.com/docs/sip-trunking"><strong><em>Twilio</em></strong></a>. However before sending to Twilio the following LUA script is used to normalize calls matching the pattern of <strong>+1999XXXXXXX</strong>.</p><pre>M ={}</pre><pre>function M.outbound_INVITE(msg)</pre><pre> -- Get the TO and FROM Header</pre><pre> local from = msg:getHeader(“From”)<br> local to = msg:getHeader(“To”)</pre><pre> -- Find the start of the sip: string &amp; extract areaExchange</pre><pre> local dummy,userStart = string.find(from, “sip:”)<br> local areaExchange = string.sub(from, userStart+3, userStart+5)</pre><pre> -- Replace 999 in TO header with the extracted areaExchange<br> local newExchange = string.gsub(to,”999&quot;,areaExchange)<br> msg:modifyHeader(“To”, newExchange) <br> </pre><pre> -- Update Request URI with new area exchange as well</pre><pre> local method, ruri, ver = msg:getRequestLine()<br> local uri = string.gsub (ruri, “999”,areaExchange)<br> msg:setRequestUri(uri)</pre><pre>end</pre><pre>return M</pre><p>The script gathers the <a href="https://www.tutorialspoint.com/session_initiation_protocol/session_initiation_protocol_headers.htm"><strong><em>TO</em></strong></a> and <a href="https://www.tutorialspoint.com/session_initiation_protocol/session_initiation_protocol_headers.htm"><strong><em>FROM</em></strong></a> headers of the outbound SIP <strong><em>INVITE</em></strong> message. It then extracts the area exchange of both. If the <strong><em>TO</em></strong> header matches <strong>999</strong> the script will update it with the area exchange in the <strong><em>FROM</em></strong> header.</p><p>Example would be the following: User with number of <strong>+15035551212</strong> dials, <strong>95551213</strong>. Call Manager (CUCM) would match this to the local translation pattern shown above (Figure 3). CUCM would then drop the <strong>9</strong> off the dialed digits and replace it with <strong>+19995551213</strong>. This would then match the variable length route pattern (Figure 1<strong>)</strong> and head toward the SIP trunk. The SIP trunk would then apply the SIP normalization script and convert <strong>+19995551213</strong> to <strong>+15035551213</strong>.</p><p>Neat huh?</p><p>Anyways hopefully this is useful to someone. You can download the script from <a href="https://github.com/sieteunoseis/cisco-cucm-lua/blob/main/outbound_exchange_update.lua"><strong><em>Github</em></strong></a>.</p><p>If you would like to support my work and the time I put in creating the code, you can always buy me a <a href="https://www.buymeacoffee.com/automatebldrs"><strong><em>coffee</em></strong></a>. I would really appreciate it (but is not required).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/170/0*MD7PkfphBQ_iPHKZ" /></figure><p>Thanks and enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6933c4bacc85" width="1" height="1" alt=""><hr><p><a href="https://medium.com/automate-builders/local-calls-with-globalized-dial-plan-in-cisco-cucm-6933c4bacc85">Local Calls with Globalized Dial Plan in Cisco CUCM</a> was originally published in <a href="https://medium.com/automate-builders">automate builders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cisco Unity Web Inbox Error]]></title>
            <link>https://medium.com/automate-builders/cisco-unity-conneweb-inbox-error-e2eebe8de2e6?source=rss----d6b6f4702c19---4</link>
            <guid isPermaLink="false">https://medium.com/p/e2eebe8de2e6</guid>
            <category><![CDATA[unity-connections]]></category>
            <category><![CDATA[cisco]]></category>
            <dc:creator><![CDATA[Jeremy Worden]]></dc:creator>
            <pubDate>Thu, 22 Sep 2022 15:49:49 GMT</pubDate>
            <atom:updated>2022-10-14T19:46:03.490Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ngGUXQ-oMmwp5-7eoAM7Cg.png" /></figure><p>I searched high and low for the answer to an issue I was having, so i figured I’d share it in case it helps someone else save some time.</p><p>We have Cisco Unity configured with a Smart Host to relay voicemail messages to users email inboxes. This was working fine, however we weren’t able to create a new message from the Web Inbox and sent it off network.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dVOippCn2I9BZQRaX5EWrQ.png" /><figcaption>Sending a New Message in Cisco Unity Web Inbox</figcaption></figure><p>Whenever someone sent a new message or forwarded an existing message the following error message would appear:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zo_X2UMQ_fEJRJHuxaUTLw.png" /><figcaption>Error message in Cisco Unity Web Inbox</figcaption></figure><p>The error would almost be immediate and we wouldn’t even see anything in the SMTP Virtual Server.</p><p>After doing some digging I found this <a href="https://www.cisco.com/c/en/us/support/docs/voice-unified-communications/unity-connection/116398-probsol-cuc-00.html">TechNote</a> which let me know the piece that I was missing:</p><ul><li>Unity System Settings &gt; General Configuration &gt; ‘When a recipient can not be found’ is set to ‘Relay message to Smarthost’.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*5tTZEVhpyFKg8W20b3odQA.png" /></figure><p>Once I updated this setting users could then create a new message or forward an existing message off network.</p><p>Hopefully this saves some else a bit of time!</p><p>If you would like to support my work, you can always buy me a <a href="https://www.buymeacoffee.com/automatebldrs">coffee</a>. I would really appreciate it (but is not required).</p><figure><a href="https://www.buymeacoffee.com/automatebldrs"><img alt="" src="https://cdn-images-1.medium.com/max/170/0*rKBk0VSa_ydTBMih" /></a></figure><p>Thanks and enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e2eebe8de2e6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/automate-builders/cisco-unity-conneweb-inbox-error-e2eebe8de2e6">Cisco Unity Web Inbox Error</a> was originally published in <a href="https://medium.com/automate-builders">automate builders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Tomcat Certificates on Cisco UC products]]></title>
            <link>https://medium.com/automate-builders/automating-tomcat-certificates-on-cisco-uc-products-7ea1188bff26?source=rss----d6b6f4702c19---4</link>
            <guid isPermaLink="false">https://medium.com/p/7ea1188bff26</guid>
            <category><![CDATA[zerossl]]></category>
            <category><![CDATA[digitalocean]]></category>
            <category><![CDATA[cisco]]></category>
            <dc:creator><![CDATA[Jeremy Worden]]></dc:creator>
            <pubDate>Tue, 06 Sep 2022 21:33:33 GMT</pubDate>
            <atom:updated>2022-09-06T21:33:33.817Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xIybCHx8-iea1P8nYnpq2Q.png" /><figcaption>Using ZeroSSL to automate certificates</figcaption></figure><p>Recently Cisco introduce a new RESTful API that can be used to programmatically manage or monitor the certificate data on your Unified Communications (UC) infrastructure. Using the API you can now create, delete, upload and fetch certificates from the server.</p><p>Admittedly certificates have been a weak area in my repertoire, so I thought automating them would be a good way to familiarize myself. To accomplish this I leveraged the following:</p><ul><li><a href="https://domains.google/">Google Domains</a> — I use this as the registrar for my personal domain; <a href="https://automate.builders/">automate.builders</a>. Just about any domain registrar would work. One downfall to Google was that it doesn’t have an API for DNS, so I had to forward my domain to DigitalOcean.</li><li><a href="https://www.digitalocean.com/community/questions/setting-up-google-domains-with-digital-ocean">DigitalOcean</a> — They have a pretty easy to use API for DNS entries. Since Google Domains doesn’t have an API for DNS entry creation, we use DigitalOcean as our nameserver. Alternatively I believe <a href="https://developer.godaddy.com/doc/endpoint/domains">GoDaddy</a> has API’s and is both a registrar and nameserver.</li><li><a href="https://zerossl.com/documentation/api/">ZeroSSL </a>— They have a full-fledged SSL REST API that simplifies certificate creation. Alternative would be <a href="https://developer.godaddy.com/doc/endpoint/certificates">GoDaddy</a> or <a href="https://github.com/Trim/acme-dns-tiny">Let’s Encrypt</a></li><li><a href="https://developer.cisco.com/docs/certificate-management/">Cisco UC Certificate Management API</a> — New API in Cisco’s Collaboration Systems Release version 14.</li></ul><p>I then wrote a Python script to tie these all together. The script takes arguments and can be run via CLI. At a minimum it needs the hostname of the server and the domain name. Full instructions are on the README.MD on <a href="https://github.com/sieteunoseis/Cisco-UC-Get-Cert">Github</a>.</p><p>Next up will be automating the certificates on an ISE deployment!</p><p>Enjoy</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7ea1188bff26" width="1" height="1" alt=""><hr><p><a href="https://medium.com/automate-builders/automating-tomcat-certificates-on-cisco-uc-products-7ea1188bff26">Automating Tomcat Certificates on Cisco UC products</a> was originally published in <a href="https://medium.com/automate-builders">automate builders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cisco Unified Communications Manager Dashboard (Updated)]]></title>
            <link>https://medium.com/automate-builders/cisco-unified-communications-manager-dashboard-updated-c56bee3fe5fb?source=rss----d6b6f4702c19---4</link>
            <guid isPermaLink="false">https://medium.com/p/c56bee3fe5fb</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[influxdb]]></category>
            <category><![CDATA[cisco]]></category>
            <category><![CDATA[cucm]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Jeremy Worden]]></dc:creator>
            <pubDate>Fri, 26 Mar 2021 18:11:25 GMT</pubDate>
            <atom:updated>2024-10-16T17:50:28.438Z</atom:updated>
            <content:encoded><![CDATA[<p>UPDATE: Check the project <a href="https://github.com/sieteunoseis/docker-cucm-perfmon">GitHub</a> for updated information. Thanks!</p><p>A while back I wrote an <a href="https://medium.com/automate-builders/cisco-call-manager-dashboard-a9e9e39413a7">article</a> about an OVA I built to collect stats from Cisco’s Unified Communications Manager via Perfmon. The OVA would run a Node.js script to load the data into InfluxDB and graph via Grafana. It required some customization to get it working correctly and fielded a lot of questions. I’ve been wanting to circle back around to this project and make it a bit easier for my fellow network engineers to deploy. I’m happy to say that I’ve ported this project to a Docker container!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*svCEzUYunbmidExnPL2nqg@2x.png" /></figure><p>First up what will you need to implement this project in your environment?</p><ol><li><a href="https://cloud2.influxdata.com/signup">InfluxDB cloud account</a> (there is a free no credit card option)</li><li><a href="https://www.docker.com/products">Docker</a> running in your environment</li><li><a href="https://collabapilab.ciscolive.com/lab/pod6/soap_apis/axl_api">Cisco Unified Communication Manager AXL/Serviceability user</a></li></ol><p>Let’s get started!</p><p>First we’ll set up InfluxDB portion so our data has a place to go. Start by creating a bucket named “cisco_cucm”. You can do this from the <strong><em>Data</em></strong> tab and then selecting <strong><em>Buckets</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7nT9zhdSW0Vy9zSZSn6tgw@2x.png" /></figure><p>Accept the default settings and click create.</p><p>Next we’ll need a token to be able to write to our new bucket. Navigate to the <strong><em>Tokens</em></strong> tab at the top. Select <strong><em>Generate Token</em></strong> on the left.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*36hZD2ZJRTJjS83ve2z-Cg@2x.png" /></figure><p>For this demo I created an <strong><em>“All Access Token”.</em></strong></p><p>Lastly we’ll need to find your InfluxDB Org and URL. Head to <strong><em>Data&gt;Sources&gt;JavaScript/Node.js</em></strong>.<strong><em> </em></strong>We’ll be able to pick up both of them from the sample code under <strong><em>Initialize the Client</em></strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*p2V1UG5VUr29QKQ4vT_s7w@2x.png" /></figure><p>Now that we have all our InfluxDB information let’s move to the server/computer running Docker. We’ll need to create a text file with the following information:</p><pre>NODE_ENV=production<br>CUCM_HOSTNAME=hq-cucm-pub.abc.inc<br>CUCM_USERNAME=administrator<br>CUCM_PASSWORD=ciscopsdt<br>CUCM_VERSION=15.0<br>COOLDOWN_TIMER=3000<br>SESSION_INTERVAL=1000<br>COUNTER_INTERVAL=5000<br>INFLUXDB_TOKEN=&lt;INSERT INFLUX TOKEN&gt;<br>INFLUXDB_ORG=&lt;INSERT ORG ID&gt;<br>INFLUXDB_BUCKET=&lt;INSERT BUCKET NAME&gt;<br>INFLUXDB_URL=&lt;INSERT INFLUX URL i.e. (https://us-east-1-1.aws.cloud2.influxdata.com)&gt;<br>PERFMON_COUNTERS=Cisco Annunciator Device,Cisco AXL Web Service,Cisco Call Restriction,Cisco CallManager,Cisco CallManager System Performance,Cisco CAR DB,Cisco CTI Manager,Cisco Device Activation,Cisco Dual-Mode Mobility,Cisco Extension Mobility,Cisco Hunt Lists,Cisco Hunt Pilots,Cisco IP Manager Assistant,Cisco IVR Device,Cisco LBM Service,Cisco LDAP Directory,Cisco Locations LBM,Cisco Locations RSVP,Cisco Media Streaming App,Cisco Mobility Manager,Cisco MOH Device,Cisco MTP Device,Cisco Presence Features,Cisco QSIG Features,Cisco Recording,Cisco SAF Client,Cisco Signaling,Cisco SIP,Cisco SIP Line Normalization,Cisco SIP Normalization,Cisco SIP Stack,Cisco SIP Station,Cisco SW Conference Bridge Device,Cisco TFTP,Cisco Tomcat Connector,Cisco Tomcat JVM,Cisco Tomcat Web Application,Cisco Transcode Device,Cisco WebDialer,DB Local_DSN,DB User Host Information Counters,Enterprise Replication DBSpace Monitors,IP,IP6,Memory,Network Interface,Number of Replicates Created and State of Replication,Partition,Ramfs,SAML SSO,System,TCP,Thread<br>PERFMON_SESSIONS=Memory,Processor,Process,Partition,Thread</pre><p>You should be able to populate all the information and then save the file as <strong><em>“docker.txt”</em></strong></p><p>Next let’s download the Docker image to our computer:</p><pre>$ sudo docker pull sieteunoseis/docker-cucm-perfmon</pre><p>You can verify that it was downloaded via:</p><pre>$ sudo docker images</pre><p>Next let’s start the Docker image with the following (Note: we will be using the text file we created above to inject some environmental variables into our container):</p><pre>$ sudo docker run --env-file docker.txt -d sieteunoseis/docker-cucm-perfmon</pre><p>Verify that the container is running with:</p><pre>$ sudo docker ps<br>CONTAINER ID   IMAGE                              COMMAND                  CREATED          STATUS          PORTS     NAMES<br>4f31a9e49576   sieteunoseis/docker-cucm-perfmon   &quot;docker-entrypoint.s…&quot;   43 minutes ago   Up 43 minutes             elegant_heisenberg</pre><p>The above command will return the CONTAINER ID, which can be used to view the logs of the container. Example:</p><pre>$ sudo docker logs -f 4f31a9e49576</pre><p>Output should look something along the lines of:</p><pre>PERFMONCOLLECTCOUNTERDATA: FINISHED WRITING CISCO IP MANAGER ASSISTANT DATA TO INFLUXDB<br>PERFMONCOLLECTCOUNTERDATA: Sleeping for 3000 between Perfmon Object. Finished processing: Cisco IVR Device<br>PERFMONCOLLECTCOUNTERDATA: FINISHED WRITING CISCO IVR DEVICE DATA TO INFLUXDB<br>PERFMONCOLLECTCOUNTERDATA: Sleeping for 3000 between Perfmon Object. Finished processing: Cisco LBM Service<br>PERFMONCOLLECTCOUNTERDATA: FINISHED WRITING CISCO LBM SERVICE DATA TO INFLUXDB<br>PERFMONCOLLECTCOUNTERDATA: Sleeping for 3000 between Perfmon Object. Finished processing: Cisco LDAP Directory<br>PERFMONCOLLECTCOUNTERDATA: FINISHED WRITING CISCO LDAP DIRECTORY DATA TO INFLUXDB<br>PERFMONCOLLECTCOUNTERDATA: No results found Cisco Locations LBM<br>PERFMONCOLLECTCOUNTERDATA: Sleeping for 3000 between Perfmon Object. Finished processing: Cisco Locations RSVP<br>PERFMONCOLLECTCOUNTERDATA: FINISHED WRITING CISCO LOCATIONS RSVP DATA TO INFLUXDB<br>PERFMONCOLLECTCOUNTERDATA: Sleeping for 3000 between Perfmon Object. Finished processing: Cisco Media Streaming App</pre><p>Head back to our InfluxDB cloud install and let’s check out the data! You can use the <strong><em>Explore</em></strong> button on the right to search your data.</p><p>Let’s set up your first <strong><em>Dashboard</em></strong>. Our Dashboard will have a variable for <strong><em>host </em></strong>that we can use to dynamic change our dashboard for the different servers running in our cluster. Start by going to <strong><em>Settings&gt;Variables</em></strong>. Create a new variable named <strong><em>Host.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xr7agcZwYH2X9xCHHs59HQ@2x.png" /></figure><p>This variable will be a <strong>Query</strong> type.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*iaV083anjFTIKpvyLwWYHQ@2x.png" /></figure><p>Paste in the following query and click submit:</p><pre>import “influxdata/influxdb/schema”</pre><pre>schema.tagValues(bucket: “cisco_cucm”, tag: “host”)</pre><p>Next let’s head to <strong><em>Boards</em></strong> on the left. Click on the Create Dashboard button and select <strong><em>Import Dashboard.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*65XzqULdD1G5z5mlIDRMNg@2x.png" /></figure><p>Lastly we’ll need to paste in our JSON. Click on the image below to copy the JSON from my GIST.</p><figure><a href="https://gist.github.com/sieteunoseis/6586928cb475b6d33dbd5439aa0a3ef0"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wuq4YanbgbbTuF89WWr1bQ.png" /></a></figure><p>In the end you should end up with something that looks like this!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Reg1s7C9tIO2qsKg_ZR5dA@2x.png" /></figure><p>If you would like to support my work and the time I put in creating the code, you can always buy me a coffee. I would really appreciate it (but is not required).</p><figure><a href="https://www.buymeacoffee.com/automatebldrs"><img alt="" src="https://cdn-images-1.medium.com/max/170/0*I_aE9ZFWlsWTJMMF" /></a></figure><p>Thanks and enjoy!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c56bee3fe5fb" width="1" height="1" alt=""><hr><p><a href="https://medium.com/automate-builders/cisco-unified-communications-manager-dashboard-updated-c56bee3fe5fb">Cisco Unified Communications Manager Dashboard (Updated)</a> was originally published in <a href="https://medium.com/automate-builders">automate builders</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>