# Interfacing AllStar node to existing system over LAN

**URL:** <https://community.allstarlink.org/t/interfacing-allstar-node-to-existing-system-over-lan/8184>\
**Category:** AllStarLink\
**Created:** [April 11, 2010, 10:47pm UTC](https://community.allstarlink.org/t/interfacing-allstar-node-to-existing-system-over-lan/8184 "2010-04-11T22:47:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![VK3JED](https://community.allstarlink.org/letter_avatar_proxy/v4/letter/v/c2a13f/32.png) [@VK3JED](https://community.allstarlink.org/u/VK3JED)\
**Post date:** [April 11, 2010, 10:47pm UTC](https://community.allstarlink.org/t/interfacing-allstar-node-to-existing-system-over-lan/8184/1 "2010-04-11T22:47:29Z")

</div>

I'm in the process of resurrecting my AllStar node, which has been down for an extended period of time. I have installed ACID and put my old registration data into the setup script. The system is showing as registered on the [allstar.org](http://allstar.org) status page, so it looks like that phase has worked.

Now, the next (and more difficult phase) comes. For a variety of technical and cosmetic reasons, I would like to interface the AllStar system to a highly modified EchoIRLP node (it runs thelinkbox in a unique configuration), and have the EchoIRLP node and the AllStar node share status information, so I can implement interlocks (i.e. when IRLP or Echolink is busy, lock out AllStar, and vice-versa). While I can hack this on thelinkbox side, by de-linking the AllStar port (in tlb) when there's other traffic, this is an ugly hack that puts AllStar at a major disadvantage.

What I need to know are:

1. Is there any event that is generated when an AllStar node connects or disconnects, that can be used to call an external shell script?

2. Is it possible to set an AllStar node as "busy" on the fly?

3. Can chan\_irlp or chan\_echolink be used to make outbound connections without being a part of the IRLP or Echolink networks respectively? I'd need to use one of these methods to make the audio link across the LAN. The old chan\_rtpdir was quite good for this style of operation, though it was GSM only. Running app\_rpt on the same machine is not feasible at this time. It has been tried in the past and caused major grief - need some serious hardware upgrades, but that in turn needs some planning.

Also, if I can resolve (1) and (2), this would go a \_long\_ way to making app\_rpt/AllStar more acceptable to the IRLP community, by bringing it into line with IRLP policies. I feel this would in turn be a good thing for app\_rpt and AllStar overall.

73 de VK3JED / VK3IRL  
[http://vkradio.com](http://vkradio.com)

---

<div class="post-metadata">

**Author:** ![Sales1](https://community.allstarlink.org/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@Sales1](https://community.allstarlink.org/u/Sales1)\
**Post date:** [April 11, 2010, 11:39pm UTC](https://community.allstarlink.org/t/interfacing-allstar-node-to-existing-system-over-lan/8184/2 "2010-04-11T23:39:51Z")

</div>

Tony Langdon, VK3JED wrote:

> I'm in the process of resurrecting my AllStar node, which has been  
> down for an extended period of time. I have installed ACID and put  
> my old registration data into the setup script. The system is  
> showing as registered on the allstar.org status page, so it looks  
> like that phase has worked.
> 
> Now, the next (and more difficult phase) comes. For a variety of  
> technical and cosmetic reasons, I would like to interface the AllStar  
> system to a highly modified EchoIRLP node (it runs thelinkbox in a  
> unique configuration), and have the EchoIRLP node and the AllStar  
> node share status information, so I can implement interlocks (i.e.  
> when IRLP or Echolink is busy, lock out AllStar, and  
> vice-versa). While I can hack this on thelinkbox side, by de-linking  
> the AllStar port (in tlb) when there's other traffic, this is an ugly  
> hack that puts AllStar at a major disadvantage.
> 
> What I need to know are:
> 
> 1. Is there any event that is generated when an AllStar node  
> connects or disconnects, that can be used to call an external shell script?
> 
> 2. Is it possible to set an AllStar node as "busy" on the fly?
> 
> 3. Can chan\_irlp or chan\_echolink be used to make outbound  
> connections without being a part of the IRLP or Echolink networks  
> respectively? I'd need to use one of these methods to make the audio  
> link across the LAN. The old chan\_rtpdir was quite good for this  
> style of operation, though it was GSM only. Running app\_rpt on the  
> same machine is not feasible at this time. It has been tried in the  
> past and caused major grief - need some serious hardware upgrades,  
> but that in turn needs some planning.
> 
> Also, if I can resolve (1) and (2), this would go a \_long\_ way to  
> making app\_rpt/AllStar more acceptable to the IRLP community, by  
> bringing it into line with IRLP policies. I feel this would in turn  
> be a good thing for app\_rpt and AllStar overall.
> 
> 73 de VK3JED / VK3IRL  
> [http://vkradio.com](http://vkradio.com)
> 
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> App\_rpt-users mailing list  
> App\_rpt-users@qrvc.com  
> [http://qrvc.com/mailman/listinfo/app\_rpt-users](http://qrvc.com/mailman/listinfo/app_rpt-users)

1. There are optional scripts which can be called on connect and disconnect events take a look in app\_rpt.c

2. Yes, using "asterisk -rx rpt fun node ...." and the appropriate COP mapping to prohibit incoming connections.

3. chan\_irlp and chan\_echolink are made to interact with the appropriate protocols. Modifying chan\_rtpdir to make a  
transparent driver ala chan\_thelinkbox is probably the best way to so move forward, but I'm no expert with channel  
drivers, that's a question/request for Jim, WB6NIL.

Steve  
WA6ZFT

---

<div class="post-metadata">

**Author:** ![VK3JED](https://community.allstarlink.org/letter_avatar_proxy/v4/letter/v/c2a13f/32.png) [@VK3JED](https://community.allstarlink.org/u/VK3JED)\
**Post date:** [April 11, 2010, 11:52pm UTC](https://community.allstarlink.org/t/interfacing-allstar-node-to-existing-system-over-lan/8184/3 "2010-04-11T23:52:49Z")

</div>

> 1. There are optional scripts which can be called on connect and disconnect events take a look in app\_rpt.c

Thanks, I'll take a look. I'm no C programmer, but I have a good chance of identifying the calls.

> 2. Yes, using "asterisk -rx rpt fun node ...." and the appropriate COP mapping to prohibit incoming connections.

OK, this I will need some more help/documentation on. 🙂 In any case, it looks like the cross system lockouts are possible, so we could make Asterisk compliant with IRLP guidelines, with a bit of work.

> 3. chan\_irlp and chan\_echolink are made to interact with the appropriate protocols. Modifying chan\_rtpdir to make a  
> transparent driver ala chan\_thelinkbox is probably the best way to so move forward, but I'm no expert with channel  
> drivers, that's a question/request for Jim, WB6NIL.

Well, thelinkbox still supports chan\_rtpdir (v 0.5, I think), so hopefully Jim will consider working with Skip on updating chan\_rtpdir support to the new "chan\_tlb". Needless to say, I'm putting my hand up to beta test it! 🙂 You've confirmed my suspicion that full protocol support is required for the IRLP and Echolink channel drivers to work, and that resurrecting chan\_rtpdir is the way to go for point to point links between thelinkbox and app\_rpt.

The rest is just hacking with the pieces provided, which I'm no stranger to. 🙂

Anyway, thanks for your help Steve, you've given me a lot to work with. Hopefully Jim will pick up on this thread as well. 🙂

73 de VK3JED / VK3IRL  
[http://vkradio.com](http://vkradio.com)

> **···**
>
> At 09:39 AM 4/12/2010, Stephen Rodgers wrote:

---

<div class="post-metadata">

**Author:** ![VK3JED](https://community.allstarlink.org/letter_avatar_proxy/v4/letter/v/c2a13f/32.png) [@VK3JED](https://community.allstarlink.org/u/VK3JED)\
**Post date:** [April 12, 2010, 12:05am UTC](https://community.allstarlink.org/t/interfacing-allstar-node-to-existing-system-over-lan/8184/4 "2010-04-12T00:05:21Z")

</div>

Just took a quick look. My only problem is not being a C programmer, what do I look for in the 21,000 lines of code? 😉

73 de VK3JED / VK3IRL  
[http://vkradio.com](http://vkradio.com)

> **···**
>
> At 09:39 AM 4/12/2010, Stephen Rodgers wrote:
> 
> > 1. There are optional scripts which can be called on connect and disconnect events take a look in app\_rpt.c

---

<div class="post-metadata">

**Author:** ![Sales1](https://community.allstarlink.org/letter_avatar_proxy/v4/letter/s/ed655f/32.png) [@Sales1](https://community.allstarlink.org/u/Sales1)\
**Post date:** [April 12, 2010, 4:06am UTC](https://community.allstarlink.org/t/interfacing-allstar-node-to-existing-system-over-lan/8184/5 "2010-04-12T04:06:46Z")

</div>

Tony Langdon, VK3JED wrote:

> **···**
>
> > At 09:39 AM 4/12/2010, Stephen Rodgers wrote:
> > 
> > > 1. There are optional scripts which can be called on connect and  
> > > disconnect events take a look in app\_rpt.c
> > 
> > Thanks, I'll take a look. I'm no C programmer, but I have a good  
> > chance of identifying the calls.
> > 
> > > 2. Yes, using "asterisk -rx rpt fun node ...." and the appropriate  
> > > COP mapping to prohibit incoming connections.
> > 
> > OK, this I will need some more help/documentation on. 🙂 In any  
> > case, it looks like the cross system lockouts are possible, so we  
> > could make Asterisk compliant with IRLP guidelines, with a bit of work.
> > 
> > > 3. chan\_irlp and chan\_echolink are made to interact with the  
> > > appropriate protocols. Modifying chan\_rtpdir to make a  
> > > transparent driver ala chan\_thelinkbox is probably the best way to  
> > > so move forward, but I'm no expert with channel  
> > > drivers, that's a question/request for Jim, WB6NIL.
> > 
> > Well, thelinkbox still supports chan\_rtpdir (v 0.5, I think), so  
> > hopefully Jim will consider working with Skip on updating chan\_rtpdir  
> > support to the new "chan\_tlb". Needless to say, I'm putting my hand  
> > up to beta test it! 🙂 You've confirmed my suspicion that full  
> > protocol support is required for the IRLP and Echolink channel  
> > drivers to work, and that resurrecting chan\_rtpdir is the way to go  
> > for point to point links between thelinkbox and app\_rpt.
> > 
> > The rest is just hacking with the pieces provided, which I'm no  
> > stranger to. 🙂
> > 
> > Anyway, thanks for your help Steve, you've given me a lot to work  
> > with. Hopefully Jim will pick up on this thread as well. 🙂
> > 
> > 73 de VK3JED / VK3IRL  
> > [http://vkradio.com](http://vkradio.com)
> > 
> > \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> > App\_rpt-users mailing list  
> > App\_rpt-users@qrvc.com  
> > [http://qrvc.com/mailman/listinfo/app\_rpt-users](http://qrvc.com/mailman/listinfo/app_rpt-users)
> 
> Some clues:
> 
> radios\*CLI\> help rpt fun  
> Usage: rpt fun \<nodename\> \<command\>  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Send a DTMF function to a node  
> --
> 
> 49 - Disable incoming connections (control state noice)  
> 50 - Enable incoming connections (control state noicd)
> 
> --
> 
> 987149=cop,49 ; Incoming connection disable  
> 987150=cop,50 ; Incoming connection enable
> 
> --
> 
> [root@radios ~]# asterisk -rx "rpt fun 2010 \*987150"
> 
> --
> 
> See [http://app-rpt.qrvc.com/node/42](http://app-rpt.qrvc.com/node/42)
> 
> Steve  
> WA6ZFT

---

<div class="post-metadata">

**Author:** ![VK3JED](https://community.allstarlink.org/letter_avatar_proxy/v4/letter/v/c2a13f/32.png) [@VK3JED](https://community.allstarlink.org/u/VK3JED)\
**Post date:** [April 12, 2010, 4:18am UTC](https://community.allstarlink.org/t/interfacing-allstar-node-to-existing-system-over-lan/8184/6 "2010-04-12T04:18:54Z")

</div>

Thanks, I'll give that a shot, looks like this is exactly what I'm looking for. 🙂

73 de VK3JED / VK3IRL  
[http://vkradio.com](http://vkradio.com)

> **···**
>
> At 02:06 PM 4/12/2010, Stephen Rodgers wrote:
> 
> > Some clues:
> > 
> > radios\*CLI\> help rpt fun  
> > Usage: rpt fun \<nodename\> \<command\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Send a DTMF function to a node
