Toast reason when incoming call gets closed by baresip lib
This commit is contained in:
@ -1269,6 +1269,15 @@ Java_com_tutpro_baresip_Api_call_1replace_1transfer(JNIEnv *env, jobject thiz, j
|
||||
return res == 0 ? true : false;
|
||||
}
|
||||
|
||||
JNIEXPORT jstring JNICALL
|
||||
Java_com_tutpro_baresip_Api_call_1peer_1uri(JNIEnv *env, jobject thiz, jlong call)
|
||||
{
|
||||
const char *uri = call_peeruri((struct call *)call);
|
||||
if (uri)
|
||||
return (*env)->NewStringUTF(env, uri);
|
||||
return (*env)->NewStringUTF(env, "");
|
||||
}
|
||||
|
||||
JNIEXPORT jstring JNICALL
|
||||
Java_com_tutpro_baresip_Api_call_1diverter_1uri(JNIEnv *env, jobject thiz, jlong call)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user