[Asterisk-Dev] Calling Reload Remotely

brian brian at bkw.org
Thu Jul 1 06:50:47 MST 2004


Oh well it hang-ups on fail.  Authenticate should go N+101 when you enter
the incorrect authentication data.  I have not use that app for anything but
I figured it would follow the n+101 just like every other app does.

Guess not.

bkw

> -----Original Message-----
> From: asterisk-dev-admin at lists.digium.com [mailto:asterisk-dev-
> admin at lists.digium.com] On Behalf Of Michael Sandee
> Sent: Wednesday, June 30, 2004 11:47 PM
> To: asterisk-dev at lists.digium.com
> Subject: Re: [Asterisk-Dev] Calling Reload Remotely
>
> I'm sorry... but that doesn't work that way for Authenticate()
>
>     -- Executing Authenticate("Zap/14-1", "123") in new stack
>     -- Playing 'agent-pass' (language 'nl')
>     -- Playing 'auth-incorrect' (language 'nl')
>     -- Playing 'auth-incorrect' (language 'nl')
>     -- Playing 'vm-goodbye' (language 'nl')
>     -- Hungup 'Zap/14-1'
>
> Cheers,
>
> Michael
>
> (Troll power forever!)
>
> Brian K. West wrote:
>
> >pssst, get a clue.. its 103
> >
> >N+101 so 2 + 101 = 103
> >
> >I dont' care if 3 fails..
> >
> >NEXT!!!
> >
> >----- Original Message -----
> >From: "Michael Sandee" <ms at zeelandnet.nl>
> >To: <asterisk-dev at lists.digium.com>
> >Sent: Wednesday, June 30, 2004 11:56 AM
> >Subject: Re: [Asterisk-Dev] Calling Reload Remotely
> >
> >
> >
> >
> >>pssst, make that 104 ;)
> >>
> >>(Interesting setup btw :)
> >>
> >>brian wrote:
> >>
> >>
> >>
> >>>You can tie an extension to the reload with a pin number and use of the
> >>>System app to do the reload.
> >>>
> >>>exten => 555,1,Answer
> >>>exten => 555,2,Authenticate(123)
> >>>exten => 555,3,System(/usr/sbin/asterisk -rx reload)
> >>>exten => 555,4,Hangup
> >>>exten => 555,103,Hangup
> >>>
> >>>-----Original Message-----
> >>>From: asterisk-dev-admin at lists.digium.com
> >>>[mailto:asterisk-dev-admin at lists.digium.com] On Behalf Of Dmitri
> >>>
> >>>
> >Pavlenkov
> >
> >
> >>>Sent: Wednesday, June 30, 2004 11:45 AM
> >>>To: asterisk-dev at lists.digium.com
> >>>Subject: RE: [Asterisk-Dev] Calling Reload Remotely
> >>>
> >>>User you connect as doesn?t have permissions to run asterisk.
> >>>
> >>>Dmitri Pavlenkov
> >>>Technical Support
> >>>Im1 Web Hosting
> >>>
> >>>-----Original Message-----
> >>>From: James Dutton [mailto:james at instantecommerce.co.uk]
> >>>Sent: Wednesday, June 30, 2004 11:59 AM
> >>>To: asterisk-dev at lists.digium.com
> >>>Subject: [Asterisk-Dev] Calling Reload Remotely
> >>>
> >>>I am trying to call the Asterisk Reload command remotely from a Windows
> >>>
> >>>
> >box
> >
> >
> >>>I have created a shell script containing the text ...
> >>>
> >>>/usr/sbin/asterisk -r -x reload
> >>>
> >>>I have saved it as filename reload
> >>>
> >>>I can run this on the Linux box using ./reload from terminal within the
> >>>correct directory
> >>>
> >>>I now want to run it from the Windows box
> >>>
> >>>I am using the command "plink username at host -pw password -ssh -v
> >>>
> >>>
> >./reload"
> >
> >
> >>>It certainly appears to run the script, but complains that it cannot
> >>>
> >>>
> >connect
> >
> >
> >>>to the remote Asterisk server
> >>>
> >>>Does anyone have a workaround for this. Would I be better off calling a
> >>>
> >>>
> >Perl
> >
> >
> >>>script or something similar?
> >>>
> >>>Thanks
> >>>
> >>>James
> >>>
> >>>
> >>>_______________________________________________
> >>>Asterisk-Dev mailing list
> >>>Asterisk-Dev at lists.digium.com
> >>>http://lists.digium.com/mailman/listinfo/asterisk-dev
> >>>To UNSUBSCRIBE or update options visit:
> >>>  http://lists.digium.com/mailman/listinfo/asterisk-dev
> >>>
> >>>
> >>>
> >>>
> >>>
> >>_______________________________________________
> >>Asterisk-Dev mailing list
> >>Asterisk-Dev at lists.digium.com
> >>http://lists.digium.com/mailman/listinfo/asterisk-dev
> >>To UNSUBSCRIBE or update options visit:
> >>   http://lists.digium.com/mailman/listinfo/asterisk-dev
> >>
> >>
> >>
> >
> >_______________________________________________
> >Asterisk-Dev mailing list
> >Asterisk-Dev at lists.digium.com
> >http://lists.digium.com/mailman/listinfo/asterisk-dev
> >To UNSUBSCRIBE or update options visit:
> >   http://lists.digium.com/mailman/listinfo/asterisk-dev
> >
> >
> >
>
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-dev





More information about the asterisk-dev mailing list