SearchSearch  Log in to check your private messagesLog in to check your private messages  recent posts Recent Posts
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
tarunOffline



Joined: Jan 09, 2008
Posts: 6

Status: Offline
Posted: Jan 22, 2008 - 04:57 AM Reply with quote Back to top
Hi All,

Today, i freshly checkedout sipXtapi source code from revision : 10475.

I have successfully built sipXtapi library modules on ubuntu (Fiesty). I' m using its .so (shared object) files to call its functions.

My application runs through mozilla firefox and I have put shared libraries in mozilla-firefox/plugins directory.

I have built codecs plugin shared library also and using them in the directory where my application's firefox HTML page is placed.


I have also tried to keep shared libraries in /usr/lib directory and i have also run "ldconfig " command to create their links.

My application is properly using methods of this shared object files for user registration and unregistration on our local asterisk server. My application can receive and hangup call also. My application can make call also.

Everything is working fine on the machine where i have built sipXtapi on which all dependeny packages (required for building) are installed.

But, when i try to run my application on freshly installed ubuntu machine,

firstly my application showed error :

"LoadPlugin : failed to initialise shared library /usr/lib/codec_gsm.so [libgsm.so.1 : cannot open shared object file ] "

i removed this error by putting "libgsm.so.1.0.10" from another machine (where libgsm package is installed) on my fresh ubuntu machine.

After that, it showed above similar error for libpcre.so, then i put same shared object file of PCRE into fresh machine.

After doing so,

my application generated its own shared object file( myApp.so ) properly without error on fresh ubuntu machine which i put in /usr/lib/mozilla-firefox/plugins.

When I open my appliaction's firefox HTML page, it shows my plugin shared file installed in firefox when i type
"about:plugins" in address bar of firefox browser.

After that, when i run my application, user registration and unregistration takes place fine, it uses its sipXtapi's method properly from its shared object files at runtime.

But, as I press button for dialing or to make call,

my application crashes with error :

mp/MpCodecFactory.cpp : OsStatus MpCodecFactory::CreateDecoder(const UtlString&,int,MpDecoderBase*&) : Assertion '!"Could not find codec of given type!"'

Above error comes if i set codec explicitly by name through "sipXenableCodecByName" method after calling sipXinitialize,sipxlineadd,sipXlineAddCredential,sipXlinereagister at user registration method.

If i dont set codec to use specified one, it throws error "Segmentation Fault" when I try to dial.

I dont know whats wrong taking place here on fresh ubuntu machine if i'm using all those shared library files that i have built which are working properly on machine where i built them.

Please help,
I need it.

i'm stuck.

Kindly, reply as soon as possible.

Thanku very much,

Tarun.
View user's profile Send private message


View previous topic Printable version Log in to check your private messages View next topic

Post new topic   Reply to topic
Forum Rules and Guidelines | About VoIP User | Privacy Policy


All logos and trademarks in this site are property of their respective owner.
Comments and posts are property of the poster, all the rest (c) 2003-2008 VoIP User Limited.

VoIP User Limited is incorporated in England and Wales under Company Number 6694577.

No part of this site may be reproduced without our prior consent.