I have asterisk 11 installed on Centos. Everything was working fine till sunday, sound files, my agi-bin scripts, etc. But on Sunday I added ODBC to support posting CDR into mysql. I finally got the ODBC working , but in the process I had to do a new build. I don’t know what I did wrong, but after the rebuild, Asterisk had the wrong path to the sound files and to agi-bin. Standard call functions (and posting to mysql all seem to work).
It seems that asterisk is looking for agi-bin at </usr/share/asterisk/agi-bin/> but the path is </var/lib/asterisk/agi-bin/>
same with sound files. With the full path, it works. Without the full path it is going to the wrong place.
exten => 200,1,Answer() ; same => n,Playback(hello-world) same => n,Playback(/var/lib/asterisk/sounds/en/hello-world) same => n,Hangup()
the setup in asterisk.conf is what is was before;
[directories](!) stetcdir => /etc/asterisk astmoddir => /usr/lib64/asterisk/modules astvarlibdir => /var/lib/asterisk astdbdir => /var/lib/asterisk astkeydir => /var/lib/asterisk astdatadir => /var/lib/asterisk astagidir => /var/lib/asterisk/agi-bin astspooldir => /var/spool/asterisk astrundir => /var/ru/asterisk astlogdir => /var/log/asterisk as tsbindir => /usr/sbin
I supposed I messed something up when I did the rebuild, but I don’t what. So can I fix it without a rebuild? And I have to rebuild it, what do to correct this problem?