[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gnokii auto-answer?
From: |
Daniele Forsi |
Subject: |
Re: Gnokii auto-answer? |
Date: |
Mon, 11 Jun 2007 18:36:08 +0200 |
User-agent: |
KMail/1.9.4 |
Porcelli, Anthony F. top-wrote:
> Thank you for the fast response
even faster this time :-)
> My waitcall.c file is currently in
> gnokii-0.6.16/gnokii-extras/snippets/monitor/ and will not compile
> using 'gcc -Wall ....' due to this error: gcc: pkg-config --libs
> gnokii: no such file or directory.
you didn't copy and paste the the compile command from the source and you
typed the single quotes instead of the backticks; the makefile has the
alternate syntax with $(...)
try:
make waitcall
or:
gcc -Wall -o waitcall waitcall.c $(pkg-config --libs gnokii)
> Also, what is the best method to run and test your example code from
> waitcall.readme?
copy it in a plain file, then chmod +x and execute it in a shell
it will run an infinite loop using the same default configuration used by
gnokii; and will print lines such as
NUMBER: +391234567890
use CTRL-C to stop it
I think we could add some switches to waitcall: --answer --hangup --ignore
I did write a version that optionally wouldn't hangup. I need to search my
backups.
--
Daniele