Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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.map.dialog;
import org.restcomm.protocols.ss7.commonapp.api.primitives.AddressString;
import org.restcomm.protocols.ss7.commonapp.api.primitives.MAPExtensionContainer;
import org.restcomm.protocols.ss7.commonapp.primitives.AddressStringImpl;
import org.restcomm.protocols.ss7.commonapp.primitives.MAPExtensionContainerImpl;
import com.mobius.software.telco.protocols.ss7.asn.ASNClass;
import com.mobius.software.telco.protocols.ss7.asn.annotations.ASNProperty;
import com.mobius.software.telco.protocols.ss7.asn.annotations.ASNTag;
/**
MAP-OpenInfo ::= SEQUENCE {
destinationReference [0] AddressString OPTIONAL,
originationReference [1] AddressString OPTIONAL,
-- WS modification: Ericsson proprietary fields
callingMsisdn [2] AddressString OPTIONAL,
callingVlrAddress [3] AddressString OPTIONAL,
-- WS modification: Ericsson proprietary fields
...,
extensionContainer ExtensionContainer OPTIONAL
-- extensionContainer must not be used in version 2
}
Another (old) version of Ericsson :
MAP OpenInfo ::= SEQUENCE ( imsi (0) IMSI OPTIONAL, originationReference (1) AddressString OPTIONAL,
msisdn (2) AddressString, ... vlrNo (3) AddressString OPTIONAL )
* @author amit bhayani
* @author sergey vetyutnev
* @author yulianoifa
*
*/
@ASNTag(asnClass=ASNClass.CONTEXT_SPECIFIC,tag=0x00,constructed=true,lengthIndefinite=false)
public class MAPOpenInfoImpl {
protected static final int ERI_MSISDN_TAG = 0x02;
protected static final int ERI_NLR_NO_TAG = 0x03;
@ASNProperty(asnClass=ASNClass.CONTEXT_SPECIFIC,tag=0x00,constructed=false,index=-1, defaultImplementation = AddressStringImpl.class)
private AddressString destReference;
@ASNProperty(asnClass=ASNClass.CONTEXT_SPECIFIC,tag=0x01,constructed=false,index=-1, defaultImplementation = AddressStringImpl.class)
private AddressString origReference;
@ASNProperty(asnClass=ASNClass.UNIVERSAL,tag=16,constructed=true,index=-1, defaultImplementation = MAPExtensionContainerImpl.class)
private MAPExtensionContainer extensionContainer;
@ASNProperty(asnClass=ASNClass.CONTEXT_SPECIFIC,tag=0x02,constructed=false,index=-1, defaultImplementation = AddressStringImpl.class)
private AddressString eriMsisdn;
@ASNProperty(asnClass=ASNClass.CONTEXT_SPECIFIC,tag=0x03,constructed=false,index=-1, defaultImplementation = AddressStringImpl.class)
private AddressString eriVlrNo;
public AddressString getDestReference() {
return this.destReference;
}
public AddressString getOrigReference() {
return this.origReference;
}
public MAPExtensionContainer getExtensionContainer() {
return extensionContainer;
}
public boolean getEriStyle() {
return this.eriMsisdn!=null;
}
public AddressString getEriMsisdn() {
return eriMsisdn;
}
public AddressString getEriVlrNo() {
return eriVlrNo;
}
public void setDestReference(AddressString destReference) {
this.destReference = destReference;
}
public void setOrigReference(AddressString origReference) {
this.origReference = origReference;
}
public void setExtensionContainer(MAPExtensionContainer extensionContainer) {
this.extensionContainer = extensionContainer;
}
public void setEriMsisdn(AddressString eriMsisdn) {
this.eriMsisdn = eriMsisdn;
}
public void setEriVlrNo(AddressString eriVlrNo) {
this.eriVlrNo = eriVlrNo;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("MAPOpenInfo[");
if (destReference != null) {
sb.append("destReference=");
sb.append(destReference);
}
if (origReference != null) {
sb.append(", origReference=");
sb.append(origReference);
}
if (extensionContainer != null) {
sb.append("extensionContainer=");
sb.append(extensionContainer);
}
if (getEriStyle()) {
sb.append(", eriStyle");
}
if (eriMsisdn != null) {
sb.append(", eriMsisdn=");
sb.append(eriMsisdn);
}
if (eriVlrNo != null) {
sb.append(", eriVlrNo=");
sb.append(eriVlrNo);
}
sb.append("]");
return sb.toString();
}
}