I am using Asterisk 184.108.40.206. I am using smsq command to send sms from asterisk server.With reference to site, voip-info.org/wiki/view/Asterisk+cmd+Sms, I am getting errors when trying to compile smsq.c
ast:/usr/src/asterisk-220.127.116.11# make utils/smsq
gcc utils/smsq.c -o utils/smsq
utils/smsq.c:22:18: error: popt.h: No such file or directory
utils/smsq.c: In function ‘main’:
utils/smsq.c:453: error: ‘poptContext’ undeclared (first use in this function)
utils/smsq.c:453: error: (Each undeclared identifier is reported only once
utils/smsq.c:453: error: for each function it appears in.)
utils/smsq.c:453: error: expected ‘;’ before ‘optCon’
I installed libpopt-dev (Synaptic manager showed installed version is 1.16-1 after downloading libpopt-dev),But still i get the same errors as before.
Please tell me how to compile smsq.c?
The site mentions Makefile should be added with a line smsq: smsq.c. Please provide the make file path where it should be wriiten?