android SIP:无法启动新事务以使用 getonsip.com 执行 com.android.server.sip.sipsessiongroup
android SIP: cannot initiate a new transaction to execute com.android.server.sip.sipsessiongroup using getonsip.com
从 getonsip.com 登录获得免费 SIP 帐户后,我尝试使用提供的 android Sip Demo 的凭据,但由于注册失败无法继续。
用户名、域名、密码来自登录后网页显示的设置。
我还使用包管理器确认它具有 VOIP 和 SIP API,尽管没有通过 wifi 的 SIP(我认为可以使用 VOIP。)。
代码如下:
if(mSipManager == null) {
mSipManager = SipManager.newInstance(this);
Toast.makeText(this, "is wifi supported?" + mSipManager.isSipWifiOnly(this) + ", is VOIP support?" + mSipManager.isVoipSupported(this) +
", is API support?" + mSipManager.isApiSupported(this), Toast.LENGTH_LONG).show();
}
SipProfile.Builder builder = new SipProfile.Builder(username, domain);
builder.setPassword(password);
mSipProfile = builder.build();
Intent intent = new Intent();
intent.setAction("android.SipDemo.INCOMING_CALL");
PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, intent, Intent.FILL_IN_DATA);
mSipManager.open(mSipProfile, pendingIntent, null);
mSipManager.setRegistrationListener(mSipProfile.getUriString(), new SipRegistrationListener() {
public void onRegistering(String localProfileUri) {
updateStatus("Registering with SIP Server...");
}
public void onRegistrationDone(String localProfileUri, long expiryTime) {
updateStatus("Ready");
}
public void onRegistrationFailed(String localProfileUri, int errorCode,
String errorMessage) {
updateStatus("Registration failed. Please check settings." + errorMessage);
}
});
通过构建配置文件添加更多设置,如下所示:
SipProfile.Builder builder = new SipProfile.Builder(username, domain);
builder.setPassword(password);
builder.setAuthUserName(auth_username);
builder.setOutboundProxy(outbound_proxy);
mSipProfile = builder.build();
然后确保您可以使用以下站点通过网络登录:https://app.onsip.com/app/,以了解设备是否无法连接到他们的服务器
从 getonsip.com 登录获得免费 SIP 帐户后,我尝试使用提供的 android Sip Demo 的凭据,但由于注册失败无法继续。
用户名、域名、密码来自登录后网页显示的设置。
我还使用包管理器确认它具有 VOIP 和 SIP API,尽管没有通过 wifi 的 SIP(我认为可以使用 VOIP。)。
代码如下:
if(mSipManager == null) {
mSipManager = SipManager.newInstance(this);
Toast.makeText(this, "is wifi supported?" + mSipManager.isSipWifiOnly(this) + ", is VOIP support?" + mSipManager.isVoipSupported(this) +
", is API support?" + mSipManager.isApiSupported(this), Toast.LENGTH_LONG).show();
}
SipProfile.Builder builder = new SipProfile.Builder(username, domain);
builder.setPassword(password);
mSipProfile = builder.build();
Intent intent = new Intent();
intent.setAction("android.SipDemo.INCOMING_CALL");
PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, intent, Intent.FILL_IN_DATA);
mSipManager.open(mSipProfile, pendingIntent, null);
mSipManager.setRegistrationListener(mSipProfile.getUriString(), new SipRegistrationListener() {
public void onRegistering(String localProfileUri) {
updateStatus("Registering with SIP Server...");
}
public void onRegistrationDone(String localProfileUri, long expiryTime) {
updateStatus("Ready");
}
public void onRegistrationFailed(String localProfileUri, int errorCode,
String errorMessage) {
updateStatus("Registration failed. Please check settings." + errorMessage);
}
});
通过构建配置文件添加更多设置,如下所示:
SipProfile.Builder builder = new SipProfile.Builder(username, domain);
builder.setPassword(password);
builder.setAuthUserName(auth_username);
builder.setOutboundProxy(outbound_proxy);
mSipProfile = builder.build();
然后确保您可以使用以下站点通过网络登录:https://app.onsip.com/app/,以了解设备是否无法连接到他们的服务器