本文介绍了Android 2.3的使用外部JAIN-SIP(J-SIP)堆栈|类路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用JAIN-SIP(J-SIP)库在Android 2.3.3。 (http://jsip.java.net/)
因此,我利用自带的SIP协议栈一个非常基本的SIP的示例应用程序。
这个例子完美运行在Android设备< =的Andr​​oid 2.2

I'm trying to use the JAIN-SIP (J-SIP) library on Android 2.3.3. (http://jsip.java.net/)Therefore I utilized a very basic SIP-example app that comes with the SIP-Stack.This example runs perfectly on Android devices <= Android 2.2.

问题IST,那Android的2.3.3带来了SIP-Strack的与它的系统库,
这是JAIN-SIP协议栈的一个略加修改的版本。
所以在Android 2.3.3设备,内部SIP协议栈被加载(因​​为同一个包/库名称),而不是自带的APK和应用程序崩溃功能未找到例外(由于该JAIN-SIP事实上,有些功能不存在这种内部的Andr​​oid 2.3.3 SIP协议栈)。

The problem ist, that Android 2.3.3 brings a SIP-Strack with it's system-libraries,which is a slightly modified version of the JAIN-SIP stack.So on Android 2.3.3 devices, the internal SIP-Stack is loaded (because of same package/library names) instead of the JAIN-SIP that comes with the APK and the application crashes with "function not found" exceptions (due to the fact that some functions don't exist in this internal Android 2.3.3 SIP-Stack).

我wan't知道的是,我怎么能priorize我自带的APK JAIN-SIP协议栈,而忽略了Android系统的SIP协议栈。

What I wan't to know is, how I can "priorize" my JAIN-SIP stack that comes with the APK and ignore the Android system SIP-Stack.

一种解决方案是使用内部SIP协议栈directyl,这是强烈反对的,因为没有人知道,如果它不进一步与下一个Android的版本进行修改。

One Solution is using the internal SIP-Stack directyl, which is strongly discouraged, because no one knows if it's not further modified with the next Android releases.

这是来到我的脑海其他解决方案正在改变,它不与内部SIP堆栈混合起来的我JAIN-SIP协议栈的包名。

The other solution that came to my mind is changing the package names of "my" JAIN-SIP stack that it is not mixed up with the internal SIP-stack.

在manifest.xml的用途 - 库声明不起作用,因为它仅用于内部SDK-库/ SDK-扩展中心。

The uses-library declaration in the manifest.xml does not work, because it's only for internal SDK-libs / SDK-Addons.

任何更多的想法?

推荐答案

我们正在考虑出货罐子将允许通过重命名所有使用javax类与后转换工具嵌入JSIP堆栈到任何Android设备并沿发布的jar与普通jsip罐子。
请参见

We are considering shipping jars which would allow to embed the JSIP Stack into any Android devices by renaming all the javax classes with a post convert tool and publish the jar along with the regular jsip jars. See https://groups.google.com/d/topic/mobicents-public/UD7ZTX74Yrk/discussion

这篇关于Android 2.3的使用外部JAIN-SIP(J-SIP)堆栈|类路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 14:43