public void addSendRoutingInfoForLCSResponse(long invokeId, SubscriberIdentity targetMS, LCSLocationInfo lcsLocationInfo,
            MAPExtensionContainer extensionContainer, GSNAddress vgmlcAddress, GSNAddress hGmlcAddress, GSNAddress pprAddress,
            GSNAddress additionalVGmlcAddress) throws MAPException {

        if (targetMS == null || lcsLocationInfo == null) {
            throw new MAPException("Mandatroy parameters targetMS or lcsLocationInfo cannot be null");
        }
        if ((this.appCntx.getApplicationContextName() != MAPApplicationContextName.locationSvcGatewayContext)
                || this.appCntx.getApplicationContextVersion() != MAPApplicationContextVersion.version3)
            throw new MAPException(
                    "Bad application context name for addSendRoutingInfoForLCSResponse: must be locationSvcGatewayContext_V3");

        ReturnResultLast resultLast = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory()
                .createTCResultLastRequest();
        resultLast.setInvokeId(invokeId);

        // Operation Code
        OperationCode oc = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createOperationCode();
        oc.setLocalOperationCode((long) MAPOperationCode.sendRoutingInfoForLCS);
        resultLast.setOperationCode(oc);

        SendRoutingInfoForLCSResponseImpl resInd = new SendRoutingInfoForLCSResponseImpl(targetMS, lcsLocationInfo,
                extensionContainer, vgmlcAddress, hGmlcAddress, pprAddress, additionalVGmlcAddress);

        AsnOutputStream asnOs = new AsnOutputStream();
        resInd.encodeData(asnOs);

        Parameter p = this.mapProviderImpl.getTCAPProvider().getComponentPrimitiveFactory().createParameter();
        p.setTagClass(resInd.getTagClass());
        p.setPrimitive(resInd.getIsPrimitive());
        p.setTag(resInd.getTag());
        p.setData(asnOs.toByteArray());

        resultLast.setParameter(p);

        this.sendReturnResultLastComponent(resultLast);

    }
public void addSendRoutingInfoForLCSResponse ( long invokeId , SubscriberIdentity targetMS , LCSLocationInfo lcsLocationInfo , MAPExtensionContainer extensionContainer , GSNAddress vgmlcAddress , GSNAddress hGmlcAddress , GSNAddress pprAddress , GSNAddress additionalVGmlcAddress ) throws MAPException { if ( targetMS == null || lcsLocationInfo == null ) { throw new MAPException ( "Mandatroy parameters targetMS or lcsLocationInfo cannot be null" ) ; } if ( ( this . appCntx . getApplicationContextName ( ) != MAPApplicationContextName . locationSvcGatewayContext ) || this . appCntx . getApplicationContextVersion ( ) != MAPApplicationContextVersion . version3 ) throw new MAPException ( "Bad application context name for addSendRoutingInfoForLCSResponse: must be locationSvcGatewayContext_V3" ) ; ReturnResultLast resultLast = this . mapProviderImpl . getTCAPProvider ( ) . getComponentPrimitiveFactory ( ) . createTCResultLastRequest ( ) ; resultLast . setInvokeId ( invokeId ) ; OperationCode oc = this . mapProviderImpl . getTCAPProvider ( ) . getComponentPrimitiveFactory ( ) . createOperationCode ( ) ; oc . setLocalOperationCode ( ( long ) MAPOperationCode . sendRoutingInfoForLCS ) ; resultLast . setOperationCode ( oc ) ; SendRoutingInfoForLCSResponseImpl resInd = new SendRoutingInfoForLCSResponseImpl ( targetMS , lcsLocationInfo , extensionContainer , vgmlcAddress , hGmlcAddress , pprAddress , additionalVGmlcAddress ) ; AsnOutputStream asnOs = new AsnOutputStream ( ) ; resInd . encodeData ( asnOs ) ; Parameter p = this . mapProviderImpl . getTCAPProvider ( ) . getComponentPrimitiveFactory ( ) . createParameter ( ) ; p . setTagClass ( resInd . getTagClass ( ) ) ; p . setPrimitive ( resInd . getIsPrimitive ( ) ) ; p . setTag ( resInd . getTag ( ) ) ; p . setData ( asnOs . toByteArray ( ) ) ; resultLast . setParameter ( p ) ; this . sendReturnResultLastComponent ( resultLast ) ; }
/*
(non-Javadoc)

@see org.restcomm.protocols.ss7.map.api.service.lsm.MAPDialogLsm# addSendRoutingInforForLCSResponseIndication
(org.restcomm.protocols.ss7.map.api.service.lsm.SubscriberIdentity,
org.restcomm.protocols.ss7.map.api.service.lsm.LCSLocationInfo,
org.restcomm.protocols.ss7.map.api.primitives.MAPExtensionContainer, byte[], byte[], byte[], byte[])