[asterisk-users] ZapRAS priviledge error

Will Payne will at teambadger.co.uk
Mon Jan 4 10:46:25 CST 2010


On 4 Jan 2010, at 16:28, Kevin P. Fleming wrote:

> Will Payne wrote:
> 
>> I'm looking to periodically nudge Asterisk into making an ISDN
>> connection, setting up PPP and then (possibly by then starting an AGI
>> script) grabbing a file by FTP over the PPP link.
>> 
>> If I'm overcomplicating it or going about it completely the wrong way, a
>> point in the right direction would be nice :)
> 
> It is doubtful you'll be able to accomplish that, certainly not without
> some seriously ugly hacking. First off, I don't think that PPPD will
> even be invoked with the proper arguments for it to be the 'client' end
> of the connection, but even if it is, the Asterisk dialplan will halt
> execution until PPPD returns, so there's no way you are going to be able
> to execute an AGI or System() or anything to take actions over the PPP link.

Unfortunately, an ugly hack might have to do..

Params - should be able to work around this, even if I have to use a wrapper.

PPPD halting the dialplan - I'll fork off a different process to watch for a connection and make the transfer. I can just tell pppd to connect for a minimum of 'x' seconds and then let Asterisk hang up.

.. which still leaves me in the same position of wondering why I'm getting this "Device 'stdin' does not appear to be a zaptel device" error...

Will





More information about the asterisk-users mailing list