如何在 Android sip stack SipManager 中拨打我的手机号码?

How to make call to my mobile number in Android sip stack SipManager?

我可以使用 Android sip stack sipManager 在 sip 地址之间进行调用。但无法从注册的 sip 帐户拨打我的手机号码。非常感谢任何建议。当我使用任何软 sip phone 时,我可以注册我的 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);

我才知道 Android sip Api sipManager 仅限于 sip 帐户之间的调用。这个问题的唯一解决方案是我必须开始使用其他 sip 库。我将使用 PJSIP

来实现