On Tuesday 13 April 2010 18:25:26 steve-k@... wrote:
> Ok, but ACCEPT is not the inversion of REJECT, it does not play any
> failure audio message to the station trying to connect. Instead, BUSY
> is indicated, that could have several reasons, e.g. the number of
> connections is exceeded. I've successfully used the ACCEPT method
> before, but other stations complained that they received BUSY without
> any obvious reason. Therefore, I'd like to send them a message with
> the reason before disconnecting. Seems that this is only possible for
> simple patterns, but anyway, it's not a high priority feature.
Both ACCEPT and REJECT are handled in the same way:
if ((regexec(&reject_regex, callsign.c_str(), 0, 0, 0) == 0) ||
(regexec(&accept_regex, callsign.c_str(), 0, 0, 0) != 0))
The "true" argument to the reject method will go down to the TCL event script
function reject_remote_connection as the "perm" argument which indicate that
this is a permanent rejection. One could extend this function with a better
message saying that it's a permanent rejection due to link configuration.
> I've got the REJECT idea when I tried to connect to your link SM0SVX-L
> and recieved a nice high quality speex coded swedish voice message,
> which I could not understand.
Aha, I didn't know that was in Swedish. I'll check that.
My link is configured as a Swedish stations only link a the moment.
73's de SM0SVX / Tobias
> vy 73s de Steve, DH1DM
> ----- Original Nachricht ----
> Von: Tobias Blomberg <sm0svx@...>
> An: Discussions about development issues
> <svxlink-devel@...> Datum: 12.04.2010 22:40
> Betreff: Re: [Svxlink-devel] regex help
> > On Monday 12 April 2010 22.14.55 steve-k@... wrote:
> > > Hi all,
> > >
> > > maybe someone can help me with the following regex problem
> > > in the ModuleEchoLink.conf file.
> > > I'd like to specify a reject condition tha meets the following
> > > specification:
> > > Reject all incoming connections, that are not ending with -L or
> > > -R, buf allow some callsign exceptions.
> > > The first part is fairly easy REJECT=([^-].|[^L^R])$, but the inclusion
> > > of a negative match of the exceptions looks complicated to me.
> > >
> > > Does anyone have any idea ?
> > I'd use ACCEPT instead of REJECT:
> > ACCEPT=^(.*-[LR]|SM0SVX|DH1DM)$
> > Leave REJECT and DROP commented out unless you want to reject or drop a
> > specific -L or -R signal.
> > 73's de SM0SVX / Tobias
> > > Thank you in advance.
> > >
> > > 73s de Steve, DH1DM
> > >
> > > Here's a tester: