[arm-allstar] connect script not working

Tom Eaton kc4cbq at gmail.com
Thu Mar 15 11:20:31 EST 2018


Question  if I do a  rpt fun xxxxx to *73xxxxx  in which the 1st node
number on my server is used it works fine but if I use the 2nd node number
on my server it does not work ?

Thanks
Tom
KC4CBQ

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
Virus-free.
www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Wed, Mar 14, 2018 at 9:16 PM, "Doug Crompton via arm-allstar" <
arm-allstar at hamvoip.org> wrote:

> While I suspect some people create users other than root in our
> distribution it is generally not recommended. Stock systems run everything
> in root and something like this would not be needed. I could be wrong but I
> doubt the user asking this question is running in anything but root. So
> please don't go blindly changing permissions without knowing what you are
> doing.
>
>
> *73 Doug*
>
> *WA3DSP*
>
> *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
>
>
>
>
> On Wed, Mar 14, 2018 at 6:15 PM, "Roger Coudé via arm-allstar" <
> arm-allstar at hamvoip.org> wrote:
>
> > Have you allowed exec privileges to all users to your "asterisk" command?
> > sudo chmod +s `which asterisk`
> > Roger
> >
> >       De : Tom Eaton via arm-allstar <arm-allstar at hamvoip.org>
> >  À : ARM Allstar <arm-allstar at hamvoip.org>
> > Cc : Tom Eaton <kc4cbq at gmail.com>
> >  Envoyé le : mercredi 14 mars 2018 16h08
> >  Objet : Re: [arm-allstar] connect script not working
> >
> > Thanks for the reply Doug
> > I have put  /usr/sbin/asterisk -rx "rpt fun $1 *73$2"  in
> > /etc/asterisk/local/connect.sh
> > and from command  /etc/asterisk/local/connect.sh 46490 42993
> >
> > it still does not connect
> >
> > Tom
> > KC4CBQ
> >
> > <https://www.avast.com/sig-email?utm_medium=email&utm_
> > source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon>
> > Virus-free.
> > www.avast.com
> > <https://www.avast.com/sig-email?utm_medium=email&utm_
> > source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=link>
> > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> >
> > On Wed, Mar 14, 2018 at 3:53 PM, "Doug Crompton via arm-allstar" <
> > arm-allstar at hamvoip.org> wrote:
> >
> > > Tom,
> > >
> > >  The script you entered -
> > >
> > > #!/bin/bash
> > >
> > > # Connect the 6 meter net at 6:56pm
> > > /usr/sbin/asterisk -rx "rpt fun 46490 *7342993"
> > >
> > >
> > > is a fixed script. It is going to connect  46490 in a permanent connect
> > to
> > > 42993
> > >
> > > 46490 has to be a node on the system you are running the script on.
> > >
> > > Adding parameters would be ignored since they are not used in the
> script.
> > >
> > > If you want to call the script with parameters you would do this -
> > >
> > > /usr/sbin/asterisk -rx "rpt fun $1 *73$2"
> > >
> > > Then when you call it with -
> > >
> > > /etc/asterisk/local/connect 46490 42993
> > >
> > > If you created a second script called disconnect it could look like
> this
> > -
> > >
> > > /usr/sbin/asterisk -rx "rpt fun $1 *71$2"
> > >
> > > and be called like this -
> > >
> > > /etc/asterisk/local/disconnect 46490 42993
> > >
> > >
> > >
> > > *73 Doug*
> > >
> > > *WA3DSP*
> > >
> > > *http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > On Wed, Mar 14, 2018 at 12:30 PM, "Tom Eaton via arm-allstar" <
> > > arm-allstar at hamvoip.org> wrote:
> > >
> > > > I made a connect.sh and this is what is in it.
> > > >
> > > > #!/bin/bash
> > > >
> > > > # Connect the 6 meter net at 6:56pm
> > > > /usr/sbin/asterisk -rx "rpt fun 46490 *7342993"
> > > >
> > > > chmod 750
> > > >
> > > > Asterisk restart
> > > >
> > > > when I try to test with
> > > >
> > > > */etc/asterisk/local/connect 46490 46541    or*
> > > >
> > > > */etc/asterisk/local/connect 46490 *146541 *
> > > >
> > > > *it does nothing, look in CLI in shows  remote unix connection*
> > > >
> > > > *                                      remote unix connection
> > > > disconnected*
> > > >
> > > >
> > > > What did I do wrong?
> > > >
> > > >
> > > > Tom
> > > >
> > > > KC4CBQ
> > > >
> > > >
> > > >
> > > > <https://www.avast.com/sig-email?utm_medium=email&utm_
> > > > source=link&utm_campaign=sig-email&utm_content=webmail&utm_
> term=icon>
> > > > Virus-free.
> > > > www.avast.com
> > > > <https://www.avast.com/sig-email?utm_medium=email&utm_
> > > > source=link&utm_campaign=sig-email&utm_content=webmail&utm_
> term=link>
> > > > <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> > > > _______________________________________________
> > > >
> > > > arm-allstar mailing list
> > > > arm-allstar at hamvoip.org
> > > > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> > > >
> > > > Visit the BBB and RPi2/3 web page - http://hamvoip.org
> > > >
> > > _______________________________________________
> > >
> > > arm-allstar mailing list
> > > arm-allstar at hamvoip.org
> > > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> > >
> > > Visit the BBB and RPi2/3 web page - http://hamvoip.org
> > >
> > _______________________________________________
> >
> > arm-allstar mailing list
> > arm-allstar at hamvoip.org
> > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >
> > Visit the BBB and RPi2/3 web page - http://hamvoip.org
> >
> >
> >
> > _______________________________________________
> >
> > arm-allstar mailing list
> > arm-allstar at hamvoip.org
> > http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
> >
> > Visit the BBB and RPi2/3 web page - http://hamvoip.org
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
>


More information about the arm-allstar mailing list