linphone_core_assign_payload_type(lc,&payload_type_speex_wb,111,"vbr=on");
linphone_core_assign_payload_type(lc,&payload_type_speex_uwb,112,"vbr=on");
linphone_core_assign_payload_type(lc,&payload_type_telephone_event,101,"0-11");
+ linphone_core_assign_payload_type(lc,&payload_type_g722,9,NULL);
#if defined(ANDROID) || defined (__IPHONE_OS_VERSION_MIN_REQUIRED)
/*shorten the DNS lookup time and send more retransmissions on mobiles:
int error;
char ipstring [INET6_ADDRSTRLEN];
+ if (lc->net_conf.nat_address==NULL) return NULL;
+
if (parse_hostname_to_addr (lc->net_conf.nat_address, &ss, &ss_len)<0) {
return lc->net_conf.nat_address;
}
}
lc->zrtp_secrets_cache=file ? ms_strdup(file) : NULL;
}
+
+// if (stringUri.equals(call.getRemoteAddress().asStringUriOnly())) {
+const LinphoneCall* linphone_core_find_call_from_uri(LinphoneCore *lc, const char *uri) {
+ if (uri == NULL) return NULL;
+ MSList *calls=lc->calls;
+ while(calls) {
+ const LinphoneCall *c=(LinphoneCall*)calls->data;
+ calls=calls->next;
+ const LinphoneAddress *address = linphone_call_get_remote_address(c);
+ char *current_uri=linphone_address_as_string_uri_only(address);
+ if (strcmp(uri,current_uri)==0) {
+ ms_free(current_uri);
+ return c;
+ } else {
+ ms_free(current_uri);
+ }
+ }
+ return NULL;
+}