[Freeswitch-dev] Linking to switch_json
phil.dunks at netdev.co.uk
Mon Sep 12 21:43:10 MSD 2011
Hi FreeSWITCH Guru's.
Apologies in advance for silly question - I've been coding Java for last 15 years, so the C is not coming naturally yet.
Met some of you at ClueCon 2011 - had a great time - defeated Ken Rice at pool in the Lucky Strike - (OK I was lucky).
We have a conferencing customer who is currently using JAIN SLEE and Radisys (Convedia) media servers.
We are exploring the possibility of replacing all this with FS.
They have a multi-tier account structure with provisionable preferences (e.g they can have different DTMF menu's and conference behaviour per account/subscription).
So I have built a mod, which bridges our business logic with mod_conference.
This is all working very well, and I love developing on FS compared to JAIN SLEE.
So that's the background - here's the problem I'm having.
I am trying to implement some JSON reporting, which we send over rabbit MQ, and am trying to use the cJSON api in switch_json directly from my mod.
( I have written a couple of mods [mod_rabbit_send and mod_rabbit_recv] which send and receive rabbit MQ events, and convert them to/from FS custom events. It uses a MPL library from rabbit.org. Will be happy to contribute them to the project if you want them. ).
I include switch_json.h in my mod, and the cJSON stuff compiles and installs ok.
But when I install the mod I get..
2011-09-12 17:56:49.195659 [CRIT] switch_loadable_module.c:928 Error Loading module /usr/local/freeswitch/mod/mod_netdev.so
**dlopen(/usr/local/freeswitch/mod/mod_netdev.so, 6): Symbol not found: _cJSON_AddItemToObject
Referenced from: /usr/local/freeswitch/mod/mod_netdev.so
I have tried all sorts of things in my makefile to get this linking - to no avail - I'm out of ideas.
Any help will be greatly appreciated.
+44 1273 773661
+44 7515 385465
Registered in England and Wales
Company Number 04741258
Registered Office Address:
1st Floor, 47 Middle Street
Brighton, East Sussex
BN1 1AL, U.K.
-------------- next part --------------
An HTML attachment was scrubbed...
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev