Topic: How to install app_valetparking? [Comments: 5]
Thu, 05/06/2010 - 08:28 | How to install app_valetparking?
Hello.
I-m having trouble installing the app_valetparking.
I-m using de demo version of Multitenant.
OS : Centos 5.4 (Final)
Asterisk : Asterisk 1.6.1.19
I downloaded the app_valetparking.c from : http://www.freeswitch.org/asterisk_stuff/app_valetparking.c
and in the asterisk source directory i put the app_valetparking.c
/usr/src/asterisk-1.6.1.19/apps
then i made make and i got a LOT of errors...
is the app_valetparking.c build for a particular version of asterisk?
Here are some part of the errors reported in console :
[root@thirdlane asterisk-1.6.1.19]# make
[CC] app_valetparking.c -> app_valetparking.o
In file included from /usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:59,
from app_valetparking.c:27:
/usr/src/asterisk-1.6.1.19/include/asterisk/time.h: In function ‘ast_tvnow’:
/usr/src/asterisk-1.6.1.19/include/asterisk/time.h:134: warning: implicit declaration of function ‘gettimeofday’
In file included from /usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:61,
from app_valetparking.c:27:
/usr/src/asterisk-1.6.1.19/include/asterisk/logger.h: At top level:
/usr/src/asterisk-1.6.1.19/include/asterisk/logger.h:81: error: expected declaration specifiers or ‘...’ before ‘va_list’
/usr/src/asterisk-1.6.1.19/include/asterisk/logger.h:87: warning: no previous prototype for ‘ast_register_verbose’
/usr/src/asterisk-1.6.1.19/include/asterisk/logger.h: In function ‘ast_register_verbose’:
/usr/src/asterisk-1.6.1.19/include/asterisk/logger.h:87: error: expected declaration specifiers before ‘attribute_warn_unused_result’
/usr/src/asterisk-1.6.1.19/include/asterisk/logger.h:88: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘attribute_warn_unused_result’
In file included from app_valetparking.c:27:
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1681: error: storage class specified for parameter ‘ast_mutex_t’
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1688: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1703: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1708: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1713: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1718: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1723: error: storage class specified for parameter ‘ast_cond_t’
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1725: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1730: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1735: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1740: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1745: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1750: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1756: error: storage class specified for parameter ‘ast_rwlock_t’
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1766: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1782: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1787: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1792: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1797: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1818: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1823: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1828: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1851: error: expected ‘)’ before ‘*’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:1982: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
/usr/src/asterisk-1.6.1.19/include/asterisk/lock.h:2017: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
In file included from /usr/src/asterisk-1.6.1.19/include/asterisk/utils.h:26,
from app_valetparking.c:28:
Can someone help me here?
Thanks
Ricardo.





Thu, 05/06/2010 - 17:23 | Go to this page
Go to this page http://www.thirdlane.com/forum/valetparkcall
and scroll halfway down the page. You have to edit app_valetparking.c and rearrange the include files for it to compile with no errors.
That page shows you the correct order that will make it work.
Thu, 05/06/2010 - 18:31 | ok.. now the module is
ok.. now the module is compiled thanks for your help..
one more question..
Is there any difference between the
app_parkandannounce and the app_valetparking?
Thanks in advance
REgards,
Ricardo.-
Thu, 05/06/2010 - 20:30 | yes one is multi context, one
yes one is multi context, one is not
Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com
Thu, 05/06/2010 - 21:27 | Sorry to ask this.. but which
Sorry to ask this..
but which is which?
Fri, 05/07/2010 - 10:29 | app_valetparking is designed
app_valetparking is designed for 1.4 branch of asterisk and is the only multi-contexts parking solution.
there is no parking solution for 1.6.0 branch
in 1.6.1 branch the regular parking system of asterisk was enhanced to include more parking lots, valetparking is not needed. however, for now, setting these lots up is a manual affair.
Erik Smith
CTO
BluegrassNet Voice
dCAP
Thirdlane Support by BluegrassNet Voice
eeman at bluegrassnetvoice dot com