<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font style="" face="Tahoma"><font style="" face="Tahoma">No argc is used in the subroutine not the
calling arguments which are all contain in argv with size argc. I finally looked at the code which I should have done to
begin with. The argument is 'n' ,'c', or 'i' for node, call, or IP.
The reason anything seemed to work is because 'n' is default an I was entering the node. <br> </font><br><br>static int el_do_dbget(int fd, int argc, char *argv[])<br>{<br> char c;<br> struct eldb *mynode;<br><br> if (argc != 4)<br> return RESULT_SHOWUSAGE;<br><br> c = tolower(*argv[2]);<br> ast_mutex_lock(&el_db_lock);<br> if (c == 'i') mynode = el_db_find_ipaddr(argv[3]);<br> else if (c == 'c') mynode = el_db_find_callsign(argv[3]);<br> else mynode = el_db_find_nodenum(argv[3]);<br> ast_mutex_unlock(&el_db_lock);<br> if (!mynode)<br> {<br> ast_cli(fd,"Error: Entry for %s not found!\n",argv[3]);<br> return RESULT_FAILURE;<br> }<br> ast_cli(fd,"%s|%s|%s\n",mynode->nodenum,mynode->callsign,mynode->ipaddr);<br> return RESULT_SUCCESS;<br>}<br><br id="FontBreak"></font><br><br><b><font style="font-size:16pt;" size="4">73 Doug</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">WA3DSP</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">http://www.crompton.com/hamradio</font></b><font style="font-size:16pt;" size="4"><br></font><br><br><div><hr id="stopSpelling">From: kk6ecm@gmail.com<br>To: doug@crompton.com<br>CC: app_rpt-users@ohnosec.org<br>Subject: RE: [App_rpt-users] Echolink database<br>Date: Sat, 18 Jan 2014 13:57:21 -0800<br><br>
<style><!--
.ExternalClass .ecxshape {
}
--></style>
<style><!--
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal {
font-size:12.0pt;
font-family:"Times New Roman";
}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink {
color:blue;
text-decoration:underline;
}
.ExternalClass span.ecxMsoHyperlinkFollowed {
color:blue;
text-decoration:underline;
}
.ExternalClass p {
font-size:12.0pt;
font-family:"Times New Roman";
}
.ExternalClass pre {
font-size:10.0pt;
font-family:"Courier New";
}
.ExternalClass span.ecxEmailStyle18 {
font-family:Arial;
color:navy;
}
.ExternalClass div.ecxSection1 {
}
--></style>
<div class="ecxSection1">
<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">The “1” is the argument count..
an integer number of arguments passed to the routine. It is a C and C++ thing. In
this case, the node number is a single argument being passed to the routine
that returns the nodename|callsign|IP address. See code below. </span></font></p>
<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;"> </span></font></p>
<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">Bob</span></font></p>
<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;">kk6ecm</span></font></p>
<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;"> </span></font></p>
<pre><font size="2" face="Courier New"><span style="font-size:10.0pt;">+* CLI extensions</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size:10.0pt;">+*/</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size:10.0pt;">+</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size:10.0pt;">+/* Debug mode */</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size:10.0pt;">+static int el_do_debug(int fd, int argc, char *argv[]);</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size:10.0pt;">+static int el_do_dbdump(int fd, int argc, char *argv[]);</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size:10.0pt;">+static int el_do_dbget(int fd, int argc, char *argv[]); argc (“argument count”) </span></font></pre><pre><font size="2" face="Courier New"><span style="font-size:10.0pt;">+</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size:10.0pt;">+static char debug_usage[] =</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size:10.0pt;">+"Usage: echolink debug level {0-7}\n"</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size:10.0pt;">+" Enables debug messages in app_rpt\n";</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size:10.0pt;">+</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size:10.0pt;">+static char dbdump_usage[] =</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size:10.0pt;">+"Usage: echolink dbdump [nodename|callsign|ipaddr]\n"</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size:10.0pt;">+" Dumps entire echolink db\n";</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size:10.0pt;">+</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size:10.0pt;">+static char dbget_usage[] =</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size:10.0pt;">+"Usage: echolink dbget <nodename|callsign|ipaddr> <lookup-data>\n"</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size:10.0pt;">+" Looks up echolink db entry\n";</span></font></pre><pre><font size="2" face="Courier New"><span style="font-size:10.0pt;"> </span></font></pre>
<p class="ecxMsoNormal"><font color="navy" size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;"> </span></font></p>
<div>
<div class="ecxMsoNormal" style="text-align:center;" align="center"><font size="3" face="Times New Roman"><span style="font-size:12.0pt;">
<hr tabindex="-1" align="center" size="2" width="100%">
</span></font></div>
<p class="ecxMsoNormal"><b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;font-weight:bold;">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size:10.0pt;font-family:Tahoma;">
app_rpt-users-bounces@ohnosec.org [mailto:app_rpt-users-bounces@ohnosec.org] <b><span style="font-weight:bold;">On Behalf Of </span></b>Doug Crompton<br>
<b><span style="font-weight:bold;">Sent:</span></b> Saturday, January 18, 2014
10:17 AM<br>
<b><span style="font-weight:bold;">To:</span></b> Tim Sawyer<br>
<b><span style="font-weight:bold;">Cc:</span></b> app_rpt-users@ohnosec.org<br>
<b><span style="font-weight:bold;">Subject:</span></b> Re: [App_rpt-users]
Echolink database</span></font></p>
</div>
<p class="ecxMsoNormal"><font size="3" face="Times New Roman"><span style="font-size:12.0pt;"> </span></font></p>
<div>
<p class="ecxMsoNormal" style=""><font size="3" face="Tahoma"><span style="font-size:12.0pt;font-family:Tahoma;">Tim (and all),<br>
<br>
OK on rpt.conf. CCing this to the forum.<br>
<br>
I think my confusion was between the xipar and acid Allstar versions.
Apparently the xipar version uses the echolink/sl0 stanza setting.
<br id="ecxFontBreak">
<br>
Also I will be adding echolink call lookup to lsnodes for those that have
echolink enabled</span></font><font face="Calibri"><span style="font-family:Calibri;">.</span></font><font face="Tahoma"><span style="font-family:Tahoma;"> <br>
</span></font><font face="Calibri"><span style="font-family:Calibri;"><br>
</span></font><font face="Tahoma"><span style="font-family:Tahoma;">Can anyone can
explain the third parameter (shown as 1 below) for 'echolink dbget' ? It
seems that it does not matter what it is but it has to be there.<br>
<br>
WA3DSP_Allstar*CLI> echolink dbget 1 147090<br>
147090|WA3DSP-L|50.191.8.33<br>
<br>
WA3DSP_Allstar*CLI> echolink dbget<br>
Usage: echolink dbget <nodename|callsign|ipaddr> <lookup-data><br>
Looks up echolink db entry</span></font><font face="Calibri"><span style="font-family:Calibri;"><br>
<br>
<br>
</span></font><b><font size="5" face="Calibri"><span style="font-size:16.0pt;font-family:Calibri;font-weight:bold;">73 Doug<br>
WA3DSP<br>
http://www.crompton.com/hamradio</span></font></b><font size="5" face="Calibri"><span style="font-size:16.0pt;font-family:Calibri;"><br>
<br>
</span></font><font face="Calibri"><span style="font-family:Calibri;"></span></font></p>
<div>
<div class="ecxMsoNormal" style="text-align:center;" align="center"><font size="3" face="Calibri"><span style="font-size:12.0pt;font-family:Calibri;">
<hr id="ecxstopSpelling" align="center" size="2" width="100%">
</span></font></div>
<p class="ecxMsoNormal" style=""><font size="3" face="Calibri"><span style="font-size:12.0pt;font-family:Calibri;">From: tim.sawyer@mac.com<br>
Subject: Re: Echolink database<br>
Date: Sat, 18 Jan 2014 07:55:52 -0800<br>
To: doug@crompton.com</span></font></p>
<div>
<p class="ecxMsoNormal"><font size="3" face="Calibri"><span style="font-size:12.0pt;font-family:Calibri;">Sorry I didn't read your note thoroughly. Yes, zap/pseudo
is the way to do it with no radio. Just add another node to your system and
point echolink at it.<br>
<br>
--</span></font></p>
<div>
<p class="ecxMsoNormal"><font size="3" face="Calibri"><span style="font-size:12.0pt;font-family:Calibri;">Tim</span></font></p>
</div>
<div>
<p class="ecxMsoNormal"><font size="3" face="Calibri"><span style="font-size:12.0pt;font-family:Calibri;">:wq</span></font></p>
</div>
</div>
<div>
<p class="ecxMsoNormal" style=""><font size="3" face="Calibri"><span style="font-size:12.0pt;font-family:Calibri;"><br>
On Jan 17, 2014, at 10:55 PM, Doug Crompton <<a href="mailto:doug@crompton.com">doug@crompton.com</a>> wrote:</span></font></p>
</div>
<blockquote style="">
<div>
<div>
<p class="ecxMsoNormal" style=""><font size="3" face="Tahoma"><span style="font-size:12.0pt;font-family:Tahoma;">Tim,<br>
<br>
What is the proper way to install echolink in rpt.conf ?<br>
<br>
I tried -<br>
<br>
rxchannel=echolink/el0<br>
<br>
and on restart it failed - would not enter cli.<br>
<br>
This is the way it is shown in the examples.<br>
<br>
When I use -<br>
<br>
rxchannel=Zap/pseudo<br>
<br>
It works. In both cases the echolink.conf points to this stanza.<br>
<br>
I want to have a node just for echolink. No radio. I will connect to radio node
as desired.<br>
<br>
Echolink seems to work with the pseudo channel, someone connected to me and we
communicated.<br id="ecxFontBreak">
</span></font><font face="Calibri"><span style="font-family:Calibri;"><br>
</span></font><b><font size="5" face="Calibri"><span style="font-size:16.0pt;font-family:Calibri;font-weight:bold;">73 Doug<br>
WA3DSP<br>
<a href="http://www.crompton.com/hamradio" target="_blank">http://www.crompton.com/hamradio</a></span></font></b><font size="5" face="Calibri"><span style="font-size:16.0pt;font-family:Calibri;"><br>
<br>
</span></font><font face="Calibri"><span style="font-family:Calibri;"></span></font></p>
<div>
<div class="ecxMsoNormal" style="text-align:center;" align="center"><font size="3" face="Calibri"><span style="font-size:12.0pt;font-family:Calibri;">
<hr id="ecxstopSpelling" align="center" size="2" width="100%">
</span></font></div>
<p class="ecxMsoNormal"><font size="3" face="Calibri"><span style="font-size:12.0pt;font-family:Calibri;"> </span></font></p>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div></div> </div></body>
</html>