|
From: | Amit Bagga |
Subject: | Re: [Linphone-developers] Looking for help regarding Codec settings in Linphone Android. |
Date: | Mon, 10 Aug 2015 17:09:14 +0530 |
//FORECE CODECS ON THE LC
PayloadType *pt;
const MSList *elem;
for (elem=linphone_core_get_audio_codecs(theLinphoneCore);elem!=NULL;elem=elem->next){
pt=(PayloadType*)elem->data;
NSString *pref=[LinphoneManager getPreferenceForCodec:pt->mime_type withRate:pt->clock_rate];
if(pref) {
NSLog(@"Codec Settings %@",pref);
if(strcmp([pref UTF8String], "g729_preference") == 0) {
linphone_core_enable_payload_type(theLinphoneCore,pt,true);
}
else if(strcmp([pref UTF8String], "pcmu_preference") == 0)
{
linphone_core_enable_payload_type(theLinphoneCore,pt,true);
}
else if(strcmp([pref UTF8String], "pcma_preference") == 0)
{
linphone_core_enable_payload_type(theLinphoneCore,pt,true);
}
else
{
linphone_core_enable_payload_type(theLinphoneCore,pt,false);
}
}
Hello Team,Greetings from my side.I am a Developer of linphone working in a Indian Company.My team assign me a project where i need to integrate an API for login and password.here is the sample:INPUT (must be given via POST)
'user' => username, usually email address
'pass' => password
RETURN (JSON DATA)
{
"sip_pass" : "XXXXXXXX",
"sip_port" : "6050",
"sip_proto" : "udp",
"sip_server" : "server name",
"sip_user" : "e782b2442a",
"sip_codec":"g729;ulaw",
"sip_dtmf":"info","
"sms_enabled" : false,
"sms_error_message" : "This feature is not available on your account.",
"success" : true
}--------------------------------------------------So,i have implemented all settings very well but i am stuck on"sip_codec":"g729;ulaw",please let me know how to put these settings which results App use only codec which is coming from API.Please help me to do this task.Looking forward to hearing you asap.Thank you.
_______________________________________________
Linphone-developers mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/linphone-developers
[Prev in Thread] | Current Thread | [Next in Thread] |