org.restcomm.protocols.ss7.inap.api.INAPServiceBase Maven / Gradle / Ivy
/*
* Mobius Software LTD
* Copyright 2019, Mobius Software LTD and individual contributors
* by the @authors tag.
*
* This program is free software: you can redistribute it and/or modify
* under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation; either version 3 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see
*/
package org.restcomm.protocols.ss7.inap.api;
import org.restcomm.protocols.ss7.inap.api.dialog.ServingCheckData;
import org.restcomm.protocols.ss7.sccp.parameter.SccpAddress;
/**
*
* @author yulian.oifa
*
*/
public interface INAPServiceBase {
INAPProvider getINAPProvider();
/**
* Creates a new Dialog.
*
* @param applicationCntx This parameter identifies the type of application context being established. If the dialogue is
* accepted the received application context name shall be echoed. In case of refusal of dialogue this parameter
* shall indicate the highest version supported.
*
* @param destAddress A valid SCCP address identifying the destination peer entity. As an implementation option, this
* parameter may also, in the indication, be implicitly associated with the service access point at which the
* primitive is issued.
*
* @param origAddress A valid SCCP address identifying the requestor of a INAP dialogue. As an implementation option, this
* parameter may also, in the request, be implicitly associated with the service access point at which the primitive
* is issued.
*
* @return
*/
INAPDialog createNewDialog(INAPApplicationContext appCntx, SccpAddress origAddress, SccpAddress destAddress, int networkId)
throws INAPException;
/**
* Create new structured dialog with predefined local TransactionId.
* We do not normally invoke this method. Use it only when you need this and only this local TransactionId
* (for example if we need of recreating a Dialog for which a peer already has in memory)
* If a Dialog with local TransactionId is already present there will be INAPException
*/
INAPDialog createNewDialog(INAPApplicationContext appCntx, SccpAddress origAddress, SccpAddress destAddress, Long localTrId, int networkId) throws INAPException;
/**
* Returns true if the service can perform dialogs with given ApplicationContext
*/
ServingCheckData isServingService(INAPApplicationContext dialogApplicationContext);
boolean isActivated();
void acivate();
void deactivate();
}