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 14, 2008 - 06:25 AM Reply with quote Back to top
Hello all,

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

My application is properly using methods of this shared object files for user registration and unregistration on our local asterisk server.

But, when i try to make call, i got my application crashes on "sipXcallconnect" method usage and i'm using "sipXcallcreate" and "sipXcallconnect" method to make call.

"sipXcallcreate" works fine, but "sipXcallconnect" method is causing problems and our application gets crashed.

In addition, i would like to specify that while compiling "sipXmediaLib" I disabled libspeex,libamrnb and libamrwb as they were causing problems in compilation. But, i have enabled libgsm. Other codec libraries like ilbc, pcmapcmu have compiled properly.

Whenever I make call through my application, it shows "Ringing" state on asterisk server but my application crashes after calling "sipXcallconnect".

From last days in handling this issue, i m thinking there is certain problem with codecs linking, dialing issue causes problem when there is not proper linking of codecs because dialing takes place when there's codecs files kept at right place.

I'm trying to link codec's .so files in this way---

While compiling my application, i give path of codec_gsm.so (through -L option) where it is placed. I have also used "-L/usr/lib -lgsm" option by creating link of codec_gsm.so at specified location.

sudo g++ -fPIC -shared,-soname myApp.so myAppFile1.o myAppFile2.o libsipXport.so libsipXsdp.so libsipXtack.so libsipXmedia.so libsipXmediaProcessing.so libsipXcall.so -L/path-to-subDir/codec_gsm.so -o myApp.so


All libraries of sipXtapi are in same directory from where i try to execute my application that's why i didn't use -L option for them.

Here, my applcation properly uses method of sipXtapi shared libraries but it might not be using code_gsm.so properly that is why dialing may not be taking place.


Please help me to link codec's .so properly with my application.
I'm stuck.

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-2006 VoIP User.

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