I downloaded Cepstral to my Asterisk Box. I did the install and let it install to /opt/swift. I brought down a new CVS-HEAD as of today 10/1. I added APPS+=app_cepstral.so into the Makefile in /usr/src/asterisk/apps/Makefile Like: # Obsolete things... # #APPS+=app_sql_postgres.so #APPS+=app_sql_odbc.so APPS+=app_cepstral.so # I did this piece but wasn't sure exactly what part of the Makefile I was to add it in so I added it in here: Towards the top of the file where it talks obsolete programs are commented out. And then after the section that compiles voicemail add: app_cepstral.so: app_cepstral.c $(CC) -D_GNU_SOURCE -shared -Xlinker -x -o $@ $< -lz -lm -lswift -lceplex_us -lceplang_en -lz -ldl -L/opt/swift/lib -I/opt/swift/include Make sure the $(CC) line starts with a tab, not spaces. I didn't see a lot about voicemail: app_sql_odbc.so: app_sql_odbc.o $(CC) $(SOLINK) -o $@ $< -lodbc app_cepstral.so: app_cepstral.c $(CC) -D_GNU_SOURCE -shared -Xlinker -x -o $@ $< -lz -lm -lswift -lceplex_us -lceplang_en -lz -ldl -L/opt/swift/lib -I/opt/swift/include look: look.c $(CC) -pipe -O6 -g look.c -o look -lncurses I checked the /etc/ld.so.conf file for a line like: opt/swift/lib in the file. It wasn't there so I added it: include ld.so.conf.d/*.conf /opt/swift/lib I ran ldconfig when I was done. I can't see that Cepstral was added into Asterisk and I was wondering what I have done wrong that it doesn't work. Thanks.
Then did you do a make clean / make / make install? Then do "show applications" at the CLI prompt after you have restarted asterisk. "service asterisk stop" "service asterisk start" ...> I downloaded Cepstral to my Asterisk Box. I did the install and let it > install to /opt/swift. > > I brought down a new CVS-HEAD as of today 10/1. > > I added APPS+=app_cepstral.so into the Makefile in > /usr/src/asterisk/apps/Makefile > > Like: > > # Obsolete things... > # > #APPS+=app_sql_postgres.so > #APPS+=app_sql_odbc.so > APPS+=app_cepstral.so > # > > I did this piece but wasn't sure exactly what part of the Makefile I was > to > add it in so I added it in here: > > Towards the top of the file where it talks obsolete programs are commented > out. > And then after the section that compiles voicemail add: > > app_cepstral.so: app_cepstral.c > $(CC) -D_GNU_SOURCE -shared -Xlinker -x -o $@ $< -lz -lm -lswift > -lceplex_us -lceplang_en -lz -ldl -L/opt/swift/lib -I/opt/swift/include > > Make sure the $(CC) line starts with a tab, not spaces. > > > I didn't see a lot about voicemail: > > app_sql_odbc.so: app_sql_odbc.o > $(CC) $(SOLINK) -o $@ $< -lodbc > > app_cepstral.so: app_cepstral.c > $(CC) -D_GNU_SOURCE -shared -Xlinker -x -o $@ $< -lz -lm -lswift > -lceplex_us -lceplang_en -lz -ldl -L/opt/swift/lib -I/opt/swift/include > > look: look.c > $(CC) -pipe -O6 -g look.c -o look -lncurses > > > I checked the /etc/ld.so.conf file for a line like: opt/swift/lib in the > file. It wasn't there so I added it: > > include ld.so.conf.d/*.conf > /opt/swift/lib > > > I ran ldconfig when I was done. > > I can't see that Cepstral was added into Asterisk and I was wondering what > I > have done wrong that it doesn't work. > > Thanks. > > > > > > > > > > _______________________________________________ > --Bandwidth and Colocation sponsored by Easynews.com -- > > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
the app_cepstral.c file had a problem that it was trying use #include "../asterisk.h" I had to force it to where asterisk.h was located... in my case it was in /usr/src/asterisk/include so i changed the #include to say #include "/usr/src/asterisk/include/asterisk.h" and then it would compile through with no problems> Wojciech Tryc wrote: > >> I am not following... >> Why would you need to integrate Cepstral directly into Asterisk? Just >> to be able to call it as Asterisk app from your dialplan? I am running >> Cepstral and calling it through the System call. >> > You could try the howto located here: > > http://www.oldskoolphreak.com/tfiles/voip/installing_app_cepstral.txt > > for cepstral integration into asterisk. It makes it app_cepstral, instead > of using system calls. > > Mat
trixter http://www.0xdecafbad.com
2005-Oct-03 13:11 UTC
[Asterisk-Users] Adding Cepstral to Asterisk
On Mon, 2005-10-03 at 13:02 -0700, pbx@itsngroup.com wrote:> the app_cepstral.c file had a problem that it was trying use > > #include "../asterisk.h" > > I had to force it to where asterisk.h was located... in my case it was in > /usr/src/asterisk/include > so i changed the #include to say > > #include "/usr/src/asterisk/include/asterisk.h" and then it would compile > through with no problems >try adding -I/path/to/asterisk/includes in your case -I/usr/src/asterisk/include to your cc/gcc line (in Makefile usually CCOPTS var, but I havent looked at that Makefile specifically). This is the more elegant solution :P Or install your asterisk includes in the system default (/usr/include normally) -- Trixter http://www.0xdecafbad.com Bret McDanel UK +44 870 340 4605 Germany +49 801 777 555 3402 US +1 360 207 0479 or +1 516 687 5200 FreeWorldDialup: 635378 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20051003/ad28e98e/attachment.pgp
Maybe Matching Threads
- Compiling app_cepstral.c into Asterisk - failing
- Problem compiling fax applications
- How to find Asterisk compile time options for building app_swift module
- Problem installing Software Fax SpanDSP support into Asterisk
- app_swift 3 and asterisk 1.8.13.0 fails with undefined symbol: swift_port_close