[asterisk-users] ZapRAS, pppd plugin option

Etienne Pretorius etiennep at kingsley.co.za
Wed Apr 23 09:11:21 CDT 2008


Hello list,

I would like to know if anyone could suggest a possible solution to 
getting the ZapRAS command to execute properly. It seems that even with 
suid-root on the pppd binary that the spawned process is still not 
allowed to load the plugin. When I place to option within 
/etc/ppp/options then it loads but asterisk tries to load it again.

Apr 23 15:58:00 juno pppd[4869]: using the plugin option requires root 
privilege
(After editing /etc/ppp/options)
Apr 23 15:59:56 juno pppd[5032]: Plugin /usr/lib/pppd/2.4.1b2/zaptel.so 
loaded.
Apr 23 15:59:56 juno pppd[5032]: Zaptel Plugin Initialized
Apr 23 15:59:56 juno pppd[5032]: Using zaptel device '64000'
Apr 23 15:59:56 juno pppd[5032]: using the plugin option requires root 
privilege

[Apr 23 15:59:56] VERBOSE[5031] logger.c:     -- Executing 
[s at from-zaptel:1] NoOp("Zap/6-1", "Entering from-zaptel with DID == 
9602") in new stack
[Apr 23 15:59:56] VERBOSE[5031] logger.c:     -- Executing 
[s at from-zaptel:2] Ringing("Zap/6-1", "") in new stack
[Apr 23 15:59:56] VERBOSE[5031] logger.c:     -- Executing 
[s at from-zaptel:3] Answer("Zap/6-1", "") in new stack
[Apr 23 15:59:56] VERBOSE[5031] logger.c:     -- Executing 
[s at from-zaptel:4] ZapRAS("Zap/6-1", 
"debug|64000|auth|-chap|+pap|netmask|255.255.255.0|192.168.10.2:192.168.10.1") 
in new stack
[Apr 23 15:59:56] VERBOSE[5031] logger.c:     -- Starting RAS on Zap/6-1
[Apr 23 15:59:56] WARNING[5031] app_zapras.c: wait4 returned -1: No 
child processes
[Apr 23 15:59:56] VERBOSE[5031] logger.c:     -- RAS on Zap/6-1 
terminated with signal 59
[Apr 23 15:59:56] VERBOSE[5031] logger.c:   == Spawn extension 
(from-zaptel, s, 4) exited non-zero on 'Zap/6-1'
[Apr 23 15:59:56] DEBUG[5031] chan_zap.c: Set option AUDIO MODE, value: 
ON(1) on Zap/6-1
[Apr 23 15:59:56] DEBUG[5031] chan_zap.c: Not yet hungup...  Calling 
hangup once with icause, and clearing call
[Apr 23 15:59:56] DEBUG[5031] chan_zap.c: Set option AUDIO MODE, value: 
OFF(0) on Zap/6-1
[Apr 23 15:59:56] VERBOSE[5031] logger.c:     -- Hungup 'Zap/6-1'

[root at juno:~] ls -hal /usr/sbin/pppd
-r-sr-s--- 1 root dialout 178K 2008-04-23 06:09 /usr/sbin/pppd
[root at juno:~] grep asterisk /etc/group
dialout:x:20:asterisk
asterisk:x:1001:
[root at juno:~] ps aux | grep asterisk
asterisk  4785  1.0  0.4  22072  9164 ?        Ssl  15:57   0:08 
/usr/sbin/asterisk -p -U asterisk
root      5674  0.0  0.0   3060   700 pts/1    R+   16:10   0:00 grep 
asterisk

-- 

Kind Regards

Etienne Pretorius




More information about the asterisk-users mailing list