[App_rpt-users] Any way to stop crossing to specific nodes?

Robert A. Poff WB3AWJ wb3awj at comcast.net
Tue Aug 30 12:36:28 UTC 2011



In the watchdog script you could issue this command : 

asterisk -r -x "rpt showvars <NODE>" (where <NODE> is you node number of course, and include the quotation marks) 



Doing this with my node connected to 2135 gives this result: 



Variable listing for node 27783:   
RPT_TXKEYED=0   
RPT_NUMLINKS=34 
RPT_LINKS=34,TW3SBA,T2135,T8701,T27296,T2122,T27356,T27262,T27349,T2121,T27355,T27261,T27348,T2377,T27657,T27658,T27690,T27354,T27258,T27499,T27701,T27572,T27372,T27373,T2341,T27854,T2242,T27653,T27702,T27672,T2300,T27635,T27470,T27665,T27266 
RPT_NUMALINKS=2   
RPT_ALINKS=2,W3SBATU,2135TU   
RPT_ETXKEYED=0   
RPT_RXKEYED=0   
RPT_AUTOPATCHUP=0    
-- 8 variables 


Which could be parsed for the node number that you want to reject. 



Then within the output of : asterisk -r -x "rpt stats <NODE>" the last DTMF command executed is shown. 

For example : 

 ************************ NODE 27783 STATISTICS ************************* 

Selected system state............................: 0 
Signal on input..................................: NO 
System...........................................: ENABLED 
Parrot Mode......................................: DISABLED 
Scheduler........................................: ENABLED 
Tail Time........................................: STANDARD 
Time out timer...................................: ENABLED 
Incoming connections.............................: ENABLED 
Time out timer state.............................: RESET 
Time outs since system initialization............: 0 
Identifier state.................................: CLEAN 
Kerchunks today..................................: 0 
Kerchunks since system initialization............: 0 
Keyups today.....................................: 63 
Keyups since system initialization...............: 1190 
DTMF commands today..............................: 2 
DTMF commands since system initialization........: 6 
Last DTMF command executed.......................: 32135 
TX time today....................................: 00:01:38.292 
TX time since system initialization..............: 01:10:31.702 
Uptime...........................................: 36:58:08 
Nodes currently connected to us..................: W3SBA, 2135 
Autopatch........................................: ENABLED 
Autopatch state..................................: DOWN 
Autopatch called number..........................: N/A 
Reverse patch/IAXRPT connected...................: DOWN 
User linking commands............................: ENABLED 
User functions...................................: ENABLED 



Parse and use that line to construct a disconnect  command to nullify the last .   Then maybe play an "conflicting node" voice  announcement. 



Bob, WB3AWJ 

Loganville, PA 





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.keekles.org/pipermail/app_rpt-users/attachments/20110830/526cdded/attachment.html>


More information about the App_rpt-users mailing list