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"

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.
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to