<div dir="ltr"><div>Didn't finish typing before I hit send. </div><div><br>Once the editing is done, in the asterisk directory, type </div><div>./configure</div><div>make</div><div>make install</div><div><br></div><div><br></div>If anybody has any comments on how to add it as an option in the rpt.conf file, let me know. The code is pretty dirty at this stage, and it is my first real modification to the source code. <div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 28, 2017 at 11:30 PM, Skyler F <span dir="ltr"><<a href="mailto:electricity440@gmail.com" target="_blank">electricity440@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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/<wbr>asterisk/apps</div><div><br></div><div>OR</div><div>/usr/src/astsrc-1.4.23/<wbr>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[<wbr>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[<wbr>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[<wbr>2]);<br> }<br> else{<br> ast_verbose("\nDialed IN\n");<br> res = saynode(myrpt,mychannel,strs[<wbr>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,<wbr>strs[1]);*/<br> return;</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><font face="arial narrow, sans-serif" color="#38761d">Skyler Fennell</font><div><font face="arial narrow, sans-serif" color="#38761d"><a href="http://amsatnet.info" target="_blank">amsatnet.info</a></font></div><div><font face="arial narrow, sans-serif" color="#38761d">KDØWHB</font></div><div><font face="arial narrow, sans-serif" color="#38761d"><a href="mailto:electricity440@gmail.com" target="_blank">electricity440@gmail.com</a></font></div></div></div>
</div>