[英]Android SipManager make application to crash
我正在為Android開發一個簡單的基於sip的voip應用程序。 我使用了此示例,但是存在一些問題,因此我決定逐步編寫它。
首先,我想在服務器上進行注冊。 我做:
SipManager manager = SipManager.newInstance(this);
SipProfile.Builder builder = new SipProfile.Builder(number, server);
builder.setPassword(password);
SipProfile me = builder.build();
而且效果很好。 但是當我這樣做
manager.register(me, 1000, null);
要么
manager.open(me)
我的應用程序崩潰了。 我在三星i9000上進行了測試。 我認為wifi連接存在問題。 任何建議如何解決?
嘗試檢查SipManager.isApiSupported()和SipManager.isVoipSupported()是否支持您的設備上的SIP。 也許三星禁用了SIP API。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.