<div dir="ltr">I was toying around in app_rpt.c, and I figured out a way to shorten the telemetry down.<div><br></div><div>NODE XXXXX Connected to node XXXXX</div><div><br></div><div>Is now replaced with:</div><div><br></div><div>NODE XXXXX Connected <br></div><div><br></div><div><br></div><div>First, go to the app_rpt.c file, located in</div><div> /usr/src/utils/astsrc/asterisk/apps</div><div><br></div><div>OR</div><div>/usr/src/astsrc-1.4.23/asterisk/apps</div><div><br></div><div><br></div><div>View the file app_rpt.c and search for this code below:</div><div><br></div><div><br></div>                if (n < 3) return;<br>                if (wait_interval(myrpt, DLY_TELEM,  mychannel) == -1) return;<br>                res = saynode(myrpt,mychannel,strs[2]);<br>                if (!res)<br>                    res = ast_streamfile(mychannel, "rpt/connected", mychannel->language);<br>                if (!res) <br>                        res = ast_waitstream(mychannel, "");<br>                else<br>                         ast_log(LOG_WARNING, "ast_streamfile failed on %s\n", mychannel->name);<br>                ast_stopstream(mychannel);<br>                res = ast_streamfile(mychannel, "digits/2", mychannel->language);<br>                if (!res) <br>                        res = ast_waitstream(mychannel, "");<br>                else<br>                         ast_log(LOG_WARNING, "ast_streamfile failed on %s\n", mychannel->name);<br>                ast_stopstream(mychannel);<br>                saynode(myrpt,mychannel,strs[1]);<br>                return;<div><br></div><div><br></div><div><br></div><div>Replace That chunk of code with :</div><div><br></div>if (n < 3) return;<br>if (wait_interval(myrpt, DLY_TELEM,  mychannel) == -1) return;<br>if (strcmp(strs[1], myrpt->name) == 0)<br>                        {<br>                        ast_verbose("\nDialed OUT\n");<br>                        res = saynode(myrpt,mychannel,strs[2]);<br>                        }<br>                        else{<br>                        ast_verbose("\nDialed IN\n");<br>                        res = saynode(myrpt,mychannel,strs[1]);<br>                        }<br>                ast_verbose("Node Connection Test strs[1]=%s ,strs[2]=%s, my_node=%s\n",strs[1],strs[2], myrpt->name);<br>                if (!res)<br>                   res = ast_streamfile(mychannel, "rpt/connected", mychannel->language);<br>                if (!res)<br>                        res = ast_waitstream(mychannel, "");<br>                else<br>                         ast_log(LOG_WARNING, "ast_streamfile failed on %s\n", mychannel->name);<br>                ast_stopstream(mychannel);<br>                /*res = ast_streamfile(mychannel, "digits/2", mychannel->language);*/<br>                if (!res) <br>                        res = ast_waitstream(mychannel, "");<br>                else<br>                         ast_log(LOG_WARNING, "ast_streamfile failed on %s\n", mychannel->name);<br>                ast_stopstream(mychannel);<br>                /*saynode(myrpt,mychannel,strs[1]);*/<br>                return;</div>