blob: 5b863b174c2cd6b464740794becb63a751a49fd5 [file] [log] [blame]
/*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.android.services.telephony.sip.components;
import android.app.Service;
import android.content.Intent;
import android.net.sip.SipManager;
import android.os.IBinder;
import com.android.server.sip.SipService;
/**
* This class represents telephony SIP service which handle start SIP service requests from
* Telephony.
*/
public class TelephonySipService extends Service {
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
if ((intent != null)
&& SipManager.ACTION_START_SIP.equals(intent.getAction())) {
SipService.start(this);
}
return START_STICKY;
}
@Override
public IBinder onBind(Intent intent) {
return null;
}
}