FileDocCategorySizeDatePackage
SipPhoneFactory.javaAPI DocAndroid 5.1 API1659Thu Mar 12 22:22:54 GMT 2015com.android.internal.telephony.sip

SipPhoneFactory

public class SipPhoneFactory extends Object
{@hide}

Fields Summary
Constructors Summary
Methods Summary
public static SipPhonemakePhone(java.lang.String sipUri, android.content.Context context, com.android.internal.telephony.PhoneNotifier phoneNotifier)
Makes a {@link SipPhone} object.

param
sipUri the local SIP URI the phone runs on
param
context {@code Context} needed to create a Phone object
param
phoneNotifier {@code PhoneNotifier} needed to create a Phone object
return
the {@code SipPhone} object or null if the SIP URI is not valid

        try {
            SipProfile profile = new SipProfile.Builder(sipUri).build();
            return new SipPhone(context, phoneNotifier, profile);
        } catch (ParseException e) {
            Rlog.w("SipPhoneFactory", "makePhone", e);
            return null;
        }