[Freeswitch-dev] Linking to switch_json
anthony.minessale at gmail.com
Tue Sep 13 03:46:29 MSD 2011
try building the .c into your mod too on the target list.
On Mon, Sep 12, 2011 at 12:43 PM, Phil Dunks <phil.dunks at netdev.co.uk> wrote:
> 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
> 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
> 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
> 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:
> 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.
> Phil Dunks
> NetDev Limited
> +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.
> Join us at ClueCon 2011, Aug 9-11, Chicago
> http://www.cluecon.com 877-7-4ACLUE
> FreeSWITCH-dev mailing list
> FreeSWITCH-dev at lists.freeswitch.org
Anthony Minessale II
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev