【发布时间】:2020-01-03 14:11:34
【问题描述】:
我可以使用 Android sip stack sipManager 在 sip 地址之间进行调用。但无法从注册的 sip 帐户拨打我的手机号码。高度赞赏任何建议。当我使用任何软 sip 电话时,我可以注册我的 sip 帐户并拨打电话,但不能在 Android SipManager 下使用。
SipProfile.Builder builder;
SipProfile toCall;
try {
builder = new SipProfile.Builder(SENDCALL.toString(), DOMAIN);
// builder = new SipProfile.Builder("0041766666");
// how can i call to mobile number like above. i am able to call to sip address. but do not now how to call to fix mobile numbers.
toCall = builder.build();
// builder.setProtocol("UDP");
// builder.setPort(5090);
SipSession.Listener ssl = new SipSession.Listener() {
@Override
public void onCallEnded(SipSession session) {
super.onCallEnded(session);
try {
call.endCall();
} catch (SipException e) {
e.printStackTrace();
}
session.endCall();
}
};
call.makeCall(toCall, manager.createSipSession(profile, ssl), 30);
【问题讨论】:
-
你使用 Freeswitch 还是星号?
-
我正在使用 freeswitch 以及其他 sip 提供商帐户进行测试,根据 Android 默认 Api 的文档,它仅支持 sip 帐户到 sip 帐户调用。
标签: android sip jain-sip sip-stack