ENV variables in the call_program
"Thorbjoern List" (list@list.dk)
Sat, 3 Jul 1999 18:45:10 +0200
Hi there
I have now successfully set up my call_program to start a perl script, =
which answers the
phone. But from inside this perl program I was hoping to be able to see =
the CallerID as
well as the CalledID. I was under the impression that this was in ENV =
variables, but only
the following are there:
'AUTOBOOT' =3D 'YES'
'BOOT_IMAGE' =3D 'linux'
'CONSOLE' =3D '/dev/console'
'HOME' =3D '/'
'INIT_VERSION' =3D 'sysvinit-2.74'
'PATH' =3D '/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin'
'PREVLEVEL' =3D 'N'
'RUNLEVEL' =3D '3'
'TERM' =3D 'linux'
'VOICE_INPUT' =3D '4'
'VOICE_OUTPUT' =3D '7'
'VOICE_PID' =3D '2892'
'VOICE_PROGRAM' =3D 'vgetty'
Then I thought, what about the args passed to the program, but only
'ttyS0'
is passed as argument...
I am running mgetty/vgetty version 1.1.20 with the latest(?) patch from =
310599.
I am running this on a RedHat 6.0.
Otherwise the program runs quite well, answers the phone, speaks the =
message,
beeps, and records a message...
Is there any way for me to get to Caller and Called ID from the =
call_program???
Thanks!
Thorbjoern