[Freeswitch-dev] Linking to switch_json

Anthony Minessale 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
> 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.
> Thanks
> Phil
>
>
>
>
>
> Phil Dunks
> NetDev Limited
> +44 1273 773661
> +44 7515 385465
> http://www.netdev.co.uk
>
> 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
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev
> http://www.freeswitch.org
>
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
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
pstn:+19193869900



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-dev mailing list