Add software features for SIP and VOIP

and block SipService creation and SIP API if the feature is not available.

Change-Id: Icf780af1ac20dda4d8180cea3e5b20e21a8350bc
This commit is contained in:
Hung-ying Tyan
2010-08-27 18:08:19 +08:00
parent a2511da9d6
commit 3424c02e6b
7 changed files with 118 additions and 16 deletions

View File

@@ -418,10 +418,13 @@ class ServerThread extends Thread {
}
try {
Slog.i(TAG, "Sip Service");
ServiceManager.addService("sip", new SipService(context));
SipService sipService = SipService.create(context);
if (sipService != null) {
Slog.i(TAG, "Sip Service");
ServiceManager.addService("sip", sipService);
}
} catch (Throwable e) {
Slog.e(TAG, "Failure starting DiskStats Service", e);
Slog.e(TAG, "Failure starting SIP Service", e);
}
}