Simple debug print statements should not be this difficult. Do you have anyone who is even moderately skilled in C programming who could take a look? -MC On Thu, Nov 29, 2012 at 3:15 AM, Archana Venugopan <a.venugopan@mundio.com>wrote:
Even if i rebuild initially it was working, but when I change the c code and compile am getting the same error and voicemail stops working. I have taken the source code which is currently running in our production and did a build. ****
The version we are using is FreeSWITCH Version 1.0.head (git-a0a77f8 2011-12-15 12-23-53 -0500). Since this is the one that is running in production I can’t install the latest version too.****
** **
Please help me out in resolving this issue in the version that am using. Thanks****
** **
** **
Regards,****
Archana****
** **
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Archana Venugopan *Sent:* 23 November 2012 12:25 *To:* FreeSWITCH Users Help *Subject:* Re: [Freeswitch-users] mod_voicemail compilation error****
** **
Hi,****
Thanks. But it worked when the freeswitch was build. After making changes and do a compile this is not supporting and giving this error. ****
The same libfreeswitch.so might have supported switch_channel_expand_variables_check() during initial build as well right? ****
****
Regards,****
Archana****
****
*From:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *On Behalf Of *Peter Olsson *Sent:* 23 November 2012 10:46 *To:* FreeSWITCH Users Help *Subject:* Re: [Freeswitch-users] mod_voicemail compilation error****
****
Rebuild the entire project instead. It seems that the current libfreeswitch.so doesn’t support switch_channel_expand_variables_check().* ***
****
/Peter****
****
****
*Från:* freeswitch-users-bounces@lists.freeswitch.org [mailto: freeswitch-users-bounces@lists.freeswitch.org] *För *Archana Venugopan *Skickat:* den 23 november 2012 11:03 *Till:* FreeSWITCH Users Help *Ämne:* [Freeswitch-users] mod_voicemail compilation error****
****
Hi,****
****
I tried putting debug statements in mod_voicemail.c file and tried to re-compile it but I got this msg and now its not going to voicemail. Earlier it was working properly but after this voicemail was not working. Please help.****
****
*[root@squay-laptop-1 freeswitch]# make mod_voicemail-install*****
/bin/sh /usr/local/src/freeswitch/quiet_libtool --mode=install /usr/bin/install -c libfreeswitch.la '/usr/local/freeswitch/lib'****
quiet_libtool: install: /usr/bin/install -c .libs/libfreeswitch.so.1.0.0 /usr/local/freeswitch/lib/libfreeswitch.so.1.0.0****
quiet_libtool: install: (cd /usr/local/freeswitch/lib && { ln -s -f libfreeswitch.so.1.0.0 libfreeswitch.so.1 || { rm -f libfreeswitch.so.1 && ln -s libfreeswitch.so.1.0.0 libfreeswitch.so.1; }; })****
quiet_libtool: install: (cd /usr/local/freeswitch/lib && { ln -s -f libfreeswitch.so.1.0.0 libfreeswitch.so || { rm -f libfreeswitch.so && ln -s libfreeswitch.so.1.0.0 libfreeswitch.so; }; })****
quiet_libtool: install: /usr/bin/install -c .libs/libfreeswitch.lai /usr/local/freeswitch/lib/libfreeswitch.la****
quiet_libtool: install: /usr/bin/install -c .libs/libfreeswitch.a /usr/local/freeswitch/lib/libfreeswitch.a****
quiet_libtool: install: chmod 644 /usr/local/freeswitch/lib/libfreeswitch.a ****
quiet_libtool: install: ranlib /usr/local/freeswitch/lib/libfreeswitch.a** **
quiet_libtool: finish: PATH="/usr/lib/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /usr/local/freeswitch/lib****
----------------------------------------------------------------------****
Libraries have been installed in:****
/usr/local/freeswitch/lib****
****
If you ever happen to want to link against installed libraries****
in a given directory, LIBDIR, you must either use libtool, and****
specify the full pathname of the library, or use the `-LLIBDIR'****
flag during linking and do at least one of the following:****
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable****
during execution****
- add LIBDIR to the `LD_RUN_PATH' environment variable****
during linking****
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag****
- have your system administrator add LIBDIR to `/etc/ld.so.conf'****
****
See any operating system documentation about shared libraries for****
more information, such as the ld(1) and ld.so(8) manual pages.****
----------------------------------------------------------------------****
****
making install mod_voicemail****
Compiling /usr/local/src/freeswitch/src/mod/applications/mod_voicemail/mod_voicemail.c... ****
quiet_libtool: compile: gcc -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/libs/libteletone/src -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -DHAVE_OPENSSL -g -O2 -Wall -std=c99 -pedantic -Wdeclaration-after-statement -D_GNU_SOURCE -DHAVE_CONFIG_H -c /usr/local/src/freeswitch/src/mod/applications/mod_voicemail/mod_voicemail.c -fPIC -DPIC -o .libs/mod_voicemail.o****
quiet_libtool: compile: gcc -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/src/include -I/usr/local/src/freeswitch/libs/libteletone/src -fPIC -Werror -fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 -g -ggdb -DHAVE_OPENSSL -g -O2 -Wall -std=c99 -pedantic -Wdeclaration-after-statement -D_GNU_SOURCE -DHAVE_CONFIG_H -c /usr/local/src/freeswitch/src/mod/applications/mod_voicemail/mod_voicemail.c -o mod_voicemail.o >/dev/null 2>&1****
Creating mod_voicemail.la...****
installing mod_voicemail.la****
quiet_libtool: install: warning: relinking `mod_voicemail.la'****
****
****
*freeswitch@internal> reload mod_voicemail*****
+OK module unloaded****
+OK Reloading XML****
-ERR loading module [module load file routine returned an error]****
****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:901 Deleting Application 'voicemail'****
freeswitch@internal> 2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:903 Write lock interface 'voicemail' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'voicemail'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'voicemail' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'voicemail_inject'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'voicemail_inject' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'vm_inject'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'vm_inject' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'vm_boxcount'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'vm_boxcount' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'vm_prefs'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'vm_prefs' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'vm_delete'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'vm_delete' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'vm_read'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'vm_read' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'vm_list'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'vm_list' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'vm_fsdb_auth_login'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'vm_fsdb_auth_login' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'vm_fsdb_msg_count'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'vm_fsdb_msg_count' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'vm_fsdb_msg_list'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'vm_fsdb_msg_list' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'vm_fsdb_msg_get'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'vm_fsdb_msg_get' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'vm_fsdb_msg_delete'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'vm_fsdb_msg_delete' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'vm_fsdb_msg_undelete'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'vm_fsdb_msg_undelete' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'vm_fsdb_msg_purge'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'vm_fsdb_msg_purge' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'vm_fsdb_msg_save'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'vm_fsdb_msg_save' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'vm_fsdb_msg_forward'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'vm_fsdb_msg_forward' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'vm_fsdb_pref_greeting_set'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'vm_fsdb_pref_greeting_set' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'vm_fsdb_pref_recname_set'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'vm_fsdb_pref_recname_set' to wait for existing references.****
2012-11-23 09:58:31.448059 [NOTICE] switch_loadable_module.c:954 Deleting API Function 'vm_fsdb_pref_password_set'****
2012-11-23 09:58:31.448059 [DEBUG] switch_loadable_module.c:956 Write lock interface 'vm_fsdb_pref_password_set' to wait for existing references.****
2012-11-23 09:58:31.448059 [CONSOLE] switch_loadable_module.c:1765 Stopping: mod_voicemail****
2012-11-23 09:58:31.448059 [NOTICE] switch_event.c:442 Subclass reservation deleted for /usr/local/src/freeswitch/src/mod/applications/mod_voicemail/mod_voicemail.c:vm::maintenance ****
2012-11-23 09:58:31.448059 [NOTICE] switch_event.c:1889 Event Binding deleted for mod_voicemail:MESSAGE_QUERY****
2012-11-23 09:58:31.518046 [CONSOLE] mod_voicemail.c:3840 Event Thread Ended****
2012-11-23 09:58:31.518046 [DEBUG] mod_voicemail.c:5759 Waiting for write lock (Profile default)****
2012-11-23 09:58:31.518046 [DEBUG] mod_voicemail.c:5762 Destroying Profile default****
2012-11-23 09:58:31.518046 [CONSOLE] switch_loadable_module.c:1785 mod_voicemail unloaded.****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:449 Adding tone_descriptor: 1****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:470 Adding tone_descriptor: 1, tone: CED_TONE(0)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 1, tone: CED_TONE(0), element (2100, 0, 500, 0)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:470 Adding tone_descriptor: 1, tone: SIT(1)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 1, tone: SIT(1), element (950, 0, 256, 400)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 1, tone: SIT(1), element (1400, 0, 256, 400)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 1, tone: SIT(1), element (1800, 0, 256, 400)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:470 Adding tone_descriptor: 1, tone: REORDER_TONE(2)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 1, tone: REORDER_TONE(2), element (480, 620, 224, 272)*** *
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 1, tone: REORDER_TONE(2), element (0, 0, 224, 272)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:470 Adding tone_descriptor: 1, tone: BUSY_TONE(3)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 1, tone: BUSY_TONE(3), element (480, 620, 464, 516)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 1, tone: BUSY_TONE(3), element (0, 0, 464, 516)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:449 Adding tone_descriptor: 44****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:470 Adding tone_descriptor: 44, tone: CED_TONE(0)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 44, tone: CED_TONE(0), element (2100, 0, 500, 0)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:470 Adding tone_descriptor: 44, tone: SIT(1)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 44, tone: SIT(1), element (950, 0, 256, 400)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 44, tone: SIT(1), element (1400, 0, 256, 400)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 44, tone: SIT(1), element (1800, 0, 256, 400)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:470 Adding tone_descriptor: 44, tone: REORDER_TONE(2)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 44, tone: REORDER_TONE(2), element (400, 0, 368, 416)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 44, tone: REORDER_TONE(2), element (0, 0, 336, 368)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 44, tone: REORDER_TONE(2), element (400, 0, 256, 288)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 44, tone: REORDER_TONE(2), element (0, 0, 512, 544)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:470 Adding tone_descriptor: 44, tone: BUSY_TONE(3)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 44, tone: BUSY_TONE(3), element (400, 0, 352, 384)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 44, tone: BUSY_TONE(3), element (0, 0, 352, 384)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 44, tone: BUSY_TONE(3), element (400, 0, 352, 384)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 44, tone: BUSY_TONE(3), element (0, 0, 352, 384)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:449 Adding tone_descriptor: 49****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:470 Adding tone_descriptor: 49, tone: CED_TONE(0)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 49, tone: CED_TONE(0), element (2100, 0, 500, 0)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:470 Adding tone_descriptor: 49, tone: SIT(1)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 49, tone: SIT(1), element (900, 0, 256, 400)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 49, tone: SIT(1), element (1400, 0, 256, 400)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 49, tone: SIT(1), element (1800, 0, 256, 400)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:470 Adding tone_descriptor: 49, tone: REORDER_TONE(2)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 49, tone: REORDER_TONE(2), element (425, 0, 224, 272)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 49, tone: REORDER_TONE(2), element (0, 0, 224, 272)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:470 Adding tone_descriptor: 49, tone: BUSY_TONE(3)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 49, tone: BUSY_TONE(3), element (425, 0, 464, 516)****
2012-11-23 09:58:32.768049 [INFO] mod_spandsp.c:505 Adding tone_descriptor: 49, tone: BUSY_TONE(3), element (0, 0, 464, 516)****
2012-11-23 09:58:32.768049 [INFO] mod_enum.c:775 ENUM Reloaded****
2012-11-23 09:58:32.768049 [CRIT] switch_loadable_module.c:1281 Error Loading module /usr/local/freeswitch/mod/mod_voicemail.so****
**/usr/local/freeswitch/mod/mod_voicemail.so: undefined symbol: switch_channel_expand_variables_check******
2012-11-23 09:58:32.778219 [INFO] switch_time.c:1035 Timezone reloaded 530 definitions****
****
****
****
Regards,****
Archana****
****
!DSPAM:50af4e1232761560677559! ****
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Michael S Collins Twitter: @mercutioviz http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org