Courtesy Tone with nolocallinkct=1 (bug?)

I am going to reference ohnosec.org - ohnosec Resources and Information. for this question.

I have 3 nodes configured on a server, 2 via pciradio and 1 with a voter, all
permalinked. This is using the DIAL distro.

I want the local nodes CT to be the same no matter the node keyed, i.e. local
nodes should not count as remote for the purposes of the CT, and if node 1 one
keys up, node 2 and 3 will have the same tone that node 1 does.

This is the config for each node:

nounkeyct=0
unlinkedct=ct91
remotect=ct3
linkunkeyct=ct8
nolocallinkct=1

Based on this, when no external nodes are connected, any node keying up any
other node or locally should use ct91. As of now this does not work. ct91
only plays on the keyed node, the other local nodes do not have a tone.

When a remote node links in, the local CT changes to ct3, but still doesn't
play from the other local nodes.

Looking at app_rpt.c,

                if (myrpt->p.nolocallinkct) /* if no CT if this guy is on local system */
                {
                        int v,w;
                        w = 0;
                        for(v = 0; v < nrpts; v++)
                        {
                                if (&rpt_vars[v] == myrpt) continue;
                                if (rpt_vars[v].remote) continue;
                                if (strcmp(rpt_vars[v].name,
                                        mytele->mylink.name)) continue;
                                w = 1;
                                break;
                        }
                        if (w)
                        {
                                imdone = 1;
                                break;
                        }
                }

This looks like if nolocallinkct=1 it just does not play a CT and breaks out
of the loop. I'm thinking this is wrong based on the docs?

maybe it needs goto treataslocal; before the break? I've not tried it yet,
but it would appear it needs to be treated as a local node CT?

Also is there any way to play a CT with the asterisk cli for testing? I can't
find it if there is.

Thoughts?

···

--
Bryan Fields

727-409-1194 - Voice
727-214-2508 - Fax
http://bryanfields.net

How about some logic that lets us set the link CT on a per node basis?

I'm just interested in why this does not work, or if the docs are wrong here.

While we're on this, wtf is the Jacobsen Frog Corollary?

Thanks,

···

On 6/20/16 8:17 PM, Sam Nabkey wrote:

My idea would be to have a list of nodes that would NOT be treated as
remotes. No matter where they are in the world.

Maybe in a trusted node stanza..

Like this:

[treataslocal]
27542
41001
40320
575
etc

then any node in the list would be considered local.

that would be an awesome thing

--
Bryan Fields

727-409-1194 - Voice
727-214-2508 - Fax
http://bryanfields.net