[Freeswitch-dev] Linking to switch_json

Phil Dunks phil.dunks at netdev.co.uk
Thu Sep 15 12:17:28 MSD 2011


Thanks.

I was running and compiling FS on my mac, which seemed to be the cause of this issue.

I have now installed a Centos VM, and the problem has gone away.

Cheers
Phil, NetDev




On 13 Sep 2011, at 13:28, freeswitch-dev-request at lists.freeswitch.org wrote:

> 
> 
> From: Anthony Minessale <anthony.minessale at gmail.com>
> Date: 13 September 2011 00:46:29 GMT+01:00
> To: freeswitch-dev at lists.freeswitch.org
> Subject: Re: [Freeswitch-dev] Linking to switch_json
> Reply-To: freeswitch-dev at lists.freeswitch.org
> 
> 
> 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
>> 
> 


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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20110915/46ceaadc/attachment.html 


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