saravnandm / pjsip2.5-g729codec Goto Github PK
View Code? Open in Web Editor NEWg729 codec integration with pjsip 2.5
g729 codec integration with pjsip 2.5
After applying patches to PJSIP library for G729, It is able to compile library with only architecture arm64. If I try to build them with different architecture, It gives following error.
Undefined symbols for architecture armv7s: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation) make[3]: *** [../bin/samples/arm-apple-darwin9/pjsua2_demo] Error 1 make[2]: *** [pjsua2_demo] Error 2 make[1]: *** [samples] Error 2 make: *** [all] Error 1
Please guide me if any particular settings for different architecture is required
I followed your tutorial and tried to integrate G729 with PJSIP
I used the following tools and tecnology
Totally(7_errors)::
Undefined symbols for architecture i386:
"_bcg729Decoder", referenced from:
_g729_codec_decode in libpjmedia-codec.a(g729.o)
"_bcg729Encoder", referenced from:
_g729_codec_encode in libpjmedia-codec.a(g729.o)
"_closeBcg729DecoderChannel", referenced from:
_g729_dealloc_codec in libpjmedia-codec.a(g729.o)
_g729_codec_close in libpjmedia-codec.a(g729.o)
"_closeBcg729EncoderChannel", referenced from:
_g729_dealloc_codec in libpjmedia-codec.a(g729.o)
_g729_codec_close in libpjmedia-codec.a(g729.o)
"_initBcg729DecoderChannel", referenced from:
_g729_codec_open in libpjmedia-codec.a(g729.o)
"_initBcg729EncoderChannel", referenced from:
_g729_codec_open in libpjmedia-codec.a(g729.o)
ld: symbol(s) not found for architecture i386
ld: library not found for -lpjmedia-codec
clang: error: linker command failed with exit code 1 (use -v to see invocation)
And also we want instructions for integrating bcg729 into PJSIP. Your Instruction blog has been removed.
Can you help us to fix this bug ?
Hi saravanandm,
You are a genius!!!
this is really helpful to me for integrate g729 in pjsip2.5. I am just stuck somewhere with xcode build.
I have successfully merge patch and files in pjsip2.5 and also make successful.
but when I build project in xcode for simulator with iphone4s. it's shown build failed and giving some linker errors attached here.
Based on pjsip2.8, I am using this project, g729 code well.
However, sometimes the program is terminated by SIGFPE signal generation.
Have you experienced the above problem or do you know anything about it?
your blog was removed. please help us for installation.
did you try?
I updated pjsip library version to 2.5.5 to add support for IPV6 network.
In config_site.h file added this line
#define PJ_HAS_IPV6 1
But still it is not able to register with IPV6 network. Is there any other settings I need to add or somewhere I am missing? Any help will be appreciate.
Thanks.
Hello,
firstly I am very thankful to you for providing the source code of G-729. I have followed your steps and able to build the PJ project with g-729 successfully. I can see the libs being generated for g-729.
I am able to make the call successfully. The caller is receiving the ringing tone but the caller is not able to hear the called person's voice.
Can you please suggest the reason behind this problem and also the possible solution. I will be very thankful to you.
Hello saravanandm,
First of all BIG Thanks for the share pjsip2.5-g729codec Patches It's more help me to integrate g729 into PJSip2.5.
But I am little bit stuck into 'lbdIMADpj' library not found issue if you can help me out to solve this issue.
I follow your all patches information and steps all.
Here I attached the screen shot for that.
When I fire below command it's successfully done.
ARCH="-arch i386" CFLAGS="-O2 -m32 -mios-simulator-version-min=9.3" LDFLAGS="-O2 -m32 -mios-simulator-version-min=9.3" ./configure-iphone
Then after I fire following command and few processing happened and gives error attached into image.
make dep
Your help much more appreciated.
Sorry for the dumb question but which command should I do to apply the pjproject-2.5.diff patch ?
I have both pjsip2.5-g729codec and pjproject-2.5 folder.
I copied pjproject-2.5.diff into pjproject-2.5 folder and run:
patch -p0 < pjproject-2.5.diff
But it only says:
* Only garbage was found in the patch input.
@saravanandm
I successfully build pjsip with G729 with the help of your code. Also I can see G729 integrated by the list of available codecs in my source code.
While placing a call , It returns me status 420006 due to this it is not possible to make call. I am using this code to make call
`pj_status_t status;
pj_str_t uri = pj_str([dialedUser UTF8String]);
status = pjsua_call_make_call(voipManager._sip_acc_id, &uri, 0, NULL, NULL, NULL);
NSLog(@"status return = %i", status);
if (status != PJ_SUCCESS)
{
//error_exit("Error making call", status);
NSLog(@"Error making call...");
}
else
{
NSLog(@"Call Successfully placed...");
}`
From pjsip sources , as per my understanding I also updated config_site.h like this
`#define PJMEDIA_HAS_G7221_CODEC 1
As per pjsip resources this status code is the cause of missing media
[pjsip] Error making call: Unable to find default audio device (PJMEDIA_EAUD_NODEFDEV) [status=420006]. How can I accomplish missing resources to make call enabled. Your suggestion will be very helpful to me.
Thanks.
Your blog has been removed. how can i integrate g729 codec with pjsip-2.5 library?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.