Revision: eb3fba678577
Author:   Sergey Vetyutnev <[email protected]>
Date:     Tue Jan  8 05:30:00 2013
Log:      MAP and CAP manual examples update
http://code.google.com/p/jss7/source/detail?r=eb3fba678577

Modified:
/cap/cap-impl/src/test/java/org/mobicents/protocols/ss7/cap/CallScfExample.java /cap/cap-impl/src/test/java/org/mobicents/protocols/ss7/cap/CallSsfExample.java
 /cap/cap-impl/src/test/java/org/mobicents/protocols/ss7/cap/Example.java
 /map/map-impl/src/test/java/org/mobicents/protocols/ss7/map/Example.java
/map/map-impl/src/test/java/org/mobicents/protocols/ss7/map/UssdClientExample.java /map/map-impl/src/test/java/org/mobicents/protocols/ss7/map/UssdServerExample.java

=======================================
--- /cap/cap-impl/src/test/java/org/mobicents/protocols/ss7/cap/CallScfExample.java Fri Jan 4 10:52:03 2013 +++ /cap/cap-impl/src/test/java/org/mobicents/protocols/ss7/cap/CallScfExample.java Tue Jan 8 05:30:00 2013
@@ -122,40 +122,61 @@
                                case initialDPRecieved:
                                        // informing SSF of BCSM events 
processing
                                        ArrayList<BCSMEvent> bcsmEventList = new 
ArrayList<BCSMEvent>();
- BCSMEvent ev = this.capProvider.getCAPParameterFactory().createBCSMEvent(EventTypeBCSM.routeSelectFailure, MonitorMode.notifyAndContinue, + BCSMEvent ev = this.capProvider.getCAPParameterFactory().createBCSMEvent(
+                                                       
EventTypeBCSM.routeSelectFailure, MonitorMode.notifyAndContinue,
                                                        null, null, false);
                                        bcsmEventList.add(ev);
- ev = this.capProvider.getCAPParameterFactory().createBCSMEvent(EventTypeBCSM.oCalledPartyBusy, MonitorMode.interrupted, null, null, false);
+                                       ev = 
this.capProvider.getCAPParameterFactory().createBCSMEvent(
+                                                       
EventTypeBCSM.oCalledPartyBusy, MonitorMode.interrupted, null,
+                                                       null, false);
                                        bcsmEventList.add(ev);
- ev = this.capProvider.getCAPParameterFactory().createBCSMEvent(EventTypeBCSM.oNoAnswer, MonitorMode.interrupted, null, null, false);
+                                       ev = 
this.capProvider.getCAPParameterFactory().createBCSMEvent(
+ EventTypeBCSM.oNoAnswer, MonitorMode.interrupted, null, null, false);
                                        bcsmEventList.add(ev);
- ev = this.capProvider.getCAPParameterFactory().createBCSMEvent(EventTypeBCSM.oAnswer, MonitorMode.notifyAndContinue, null, null, false);
+                                       ev = 
this.capProvider.getCAPParameterFactory().createBCSMEvent(
+                                                       EventTypeBCSM.oAnswer, 
MonitorMode.notifyAndContinue, null,
+                                                       null, false);
                                        bcsmEventList.add(ev);
- LegID legId = this.capProvider.getINAPParameterFactory().createLegID(true, LegType.leg1);
+                                       LegID legId = 
this.capProvider.getINAPParameterFactory().createLegID(
+                                                       true, LegType.leg1);
                                        ev = 
this.capProvider.getCAPParameterFactory()
- .createBCSMEvent(EventTypeBCSM.oDisconnect, MonitorMode.notifyAndContinue, legId, null, false);
+                                                       
.createBCSMEvent(EventTypeBCSM.oDisconnect,
+                                                                       
MonitorMode.notifyAndContinue, legId, null, false);
                                        bcsmEventList.add(ev);
- legId = this.capProvider.getINAPParameterFactory().createLegID(true, LegType.leg2); - ev = this.capProvider.getCAPParameterFactory().createBCSMEvent(EventTypeBCSM.oDisconnect, MonitorMode.interrupted, legId, null, false);
+                                       legId = 
this.capProvider.getINAPParameterFactory().createLegID(true,
+                                                       LegType.leg2);
+                                       ev = 
this.capProvider.getCAPParameterFactory().createBCSMEvent(
+                                                       
EventTypeBCSM.oDisconnect, MonitorMode.interrupted, legId,
+                                                       null, false);
                                        bcsmEventList.add(ev);
- ev = this.capProvider.getCAPParameterFactory().createBCSMEvent(EventTypeBCSM.oAbandon, MonitorMode.notifyAndContinue, null, null, false);
+                                       ev = 
this.capProvider.getCAPParameterFactory().createBCSMEvent(
+                                                       EventTypeBCSM.oAbandon, 
MonitorMode.notifyAndContinue, null,
+                                                       null, false);
                                        bcsmEventList.add(ev);
currentCapDialog.addRequestReportBCSMEventRequest(bcsmEventList, null);

- String newNumber = "22123124"; // calculating here a new called party number if it is needed
+                                       // calculating here a new called party 
number if it is needed
+                                       String newNumber = "22123124";
                                        if (newNumber != null) {
                                                // sending Connect to force 
routing the call to a new  number
- ArrayList<CalledPartyNumberCap> calledPartyNumber = new ArrayList<CalledPartyNumberCap>(); - CalledPartyNumber cpn = this.capProvider.getISUPParameterFactory().createCalledPartyNumber();
+                                               ArrayList<CalledPartyNumberCap> 
calledPartyNumber =
+                                                       new 
ArrayList<CalledPartyNumberCap>();
+                                               CalledPartyNumber cpn = 
this.capProvider.getISUPParameterFactory()
+                                                       
.createCalledPartyNumber();
                                                cpn.setAddress("5599999988");
                                                
cpn.setNatureOfAddresIndicator(NAINumber._NAI_INTERNATIONAL_NUMBER);
                                                
cpn.setNumberingPlanIndicator(CalledPartyNumber._NPI_ISDN);
- cpn.setInternalNetworkNumberIndicator(CalledPartyNumber._INN_ROUTING_ALLOWED); - CalledPartyNumberCap cpnc = this.capProvider.getCAPParameterFactory().createCalledPartyNumberCap(cpn);
+                                               
cpn.setInternalNetworkNumberIndicator(
+                                                               
CalledPartyNumber._INN_ROUTING_ALLOWED);
+                                               CalledPartyNumberCap cpnc = 
this.capProvider.getCAPParameterFactory()
+                                               
.createCalledPartyNumberCap(cpn);
                                                calledPartyNumber.add(cpnc);
- DestinationRoutingAddress destinationRoutingAddress = this.capProvider.getCAPParameterFactory().createDestinationRoutingAddress( + DestinationRoutingAddress destinationRoutingAddress = this.capProvider
+                                                       
.getCAPParameterFactory().createDestinationRoutingAddress(
                                                                
calledPartyNumber);
- currentCapDialog.addConnectRequest(destinationRoutingAddress, null, null, null, null, null, null, null, null, null, null, null, null,
+                                               
currentCapDialog.addConnectRequest(destinationRoutingAddress, null,
+                                                               null, null, 
null, null, null, null, null, null, null,
+                                                               null, null,
                                                                false, false, 
false, null, false);
                                        } else {
                                                // sending Continue to use the 
original calledPartyAddress
@@ -179,7 +200,8 @@

        @Override
        public void onDialogTimeout(CAPDialog capDialog) {
- if (currentCapDialog != null && this.cc != null && this.cc.step != Step.disconnected && this.cc.activityTestInvokeId == null) { + if (currentCapDialog != null && this.cc != null && this.cc.step != Step.disconnected
+                               && this.cc.activityTestInvokeId == null) {
                        // check the SSF if the call is still alive
                        currentCapDialog.keepAlive();
                        try {
@@ -214,13 +236,15 @@
        }

        @Override
- public void onErrorComponent(CAPDialog capDialog, Long invokeId, CAPErrorMessage capErrorMessage) {
+       public void onErrorComponent(CAPDialog capDialog, Long invokeId,
+                       CAPErrorMessage capErrorMessage) {
                // TODO Auto-generated method stub

        }

        @Override
- public void onRejectComponent(CAPDialog capDialog, Long invokeId, Problem problem, boolean isLocalOriginated) { + public void onRejectComponent(CAPDialog capDialog, Long invokeId, Problem problem,
+                       boolean isLocalOriginated) {
                // TODO Auto-generated method stub

        }
@@ -370,7 +394,8 @@
        }

        @Override
- public void onDialogUserAbort(CAPDialog capDialog, CAPGeneralAbortReason generalReason, CAPUserAbortReason userReason) { + public void onDialogUserAbort(CAPDialog capDialog, CAPGeneralAbortReason generalReason,
+                       CAPUserAbortReason userReason) {
                // TODO Auto-generated method stub

        }
@@ -394,7 +419,8 @@
        }

        @Override
- public void onDialogNotice(CAPDialog capDialog, CAPNoticeProblemDiagnostic noticeProblemDiagnostic) {
+       public void onDialogNotice(CAPDialog capDialog,
+                       CAPNoticeProblemDiagnostic noticeProblemDiagnostic) {
                // TODO Auto-generated method stub

        }
=======================================
--- /cap/cap-impl/src/test/java/org/mobicents/protocols/ss7/cap/CallSsfExample.java Fri Jan 4 10:52:03 2013 +++ /cap/cap-impl/src/test/java/org/mobicents/protocols/ss7/cap/CallSsfExample.java Tue Jan 8 05:30:00 2013
@@ -89,15 +89,21 @@
                capStack.stop();
        }

- public void sendInitialDP(SccpAddress origAddress, SccpAddress remoteAddress, int serviceKey, CalledPartyNumberCap calledPartyNumber, - CallingPartyNumberCap callingPartyNumber, LocationNumberCap locationNumber, EventTypeBCSM eventTypeBCSM, LocationInformation locationInformation) + public void sendInitialDP(SccpAddress origAddress, SccpAddress remoteAddress,
+                       int serviceKey, CalledPartyNumberCap calledPartyNumber,
+ CallingPartyNumberCap callingPartyNumber, LocationNumberCap locationNumber,
+                       EventTypeBCSM eventTypeBCSM, LocationInformation 
locationInformation)
                        throws CAPException {
                // First create Dialog
                CAPApplicationContext acn = 
CAPApplicationContext.CapV2_gsmSSF_to_gsmSCF;
- currentCapDialog = capProvider.getCAPServiceCircuitSwitchedCall().createNewDialog(acn, origAddress, remoteAddress); + currentCapDialog = capProvider.getCAPServiceCircuitSwitchedCall().createNewDialog(
+                               acn, origAddress, remoteAddress);

- currentCapDialog.addInitialDPRequest(serviceKey, calledPartyNumber, callingPartyNumber, null, null, null, locationNumber, null, null, null, null, null, - eventTypeBCSM, null, null, null, null, null, null, null, false, null, null, locationInformation, null, null, null, null, null, false, null);
+               currentCapDialog.addInitialDPRequest(serviceKey, 
calledPartyNumber,
+                               callingPartyNumber, null, null, null, 
locationNumber, null, null,
+                               null, null, null,
+                               eventTypeBCSM, null, null, null, null, null, 
null, null, false,
+ null, null, locationInformation, null, null, null, null, null, false, null);
                // This will initiate the TC-BEGIN with INVOKE component
                currentCapDialog.send();

@@ -107,19 +113,27 @@

        }

- public void sendEventReportBCSM_OAnswer(OAnswerSpecificInfo oAnswerSpecificInfo, ReceivingSideID legID, MiscCallInfo miscCallInfo) throws CAPException { + public void sendEventReportBCSM_OAnswer(OAnswerSpecificInfo oAnswerSpecificInfo,
+                       ReceivingSideID legID, MiscCallInfo miscCallInfo) 
throws CAPException {
                if (currentCapDialog != null && this.cc != null) {
- EventSpecificInformationBCSM eventSpecificInformationBCSM = this.capProvider.getCAPParameterFactory().createEventSpecificInformationBCSM(oAnswerSpecificInfo); - currentCapDialog.addEventReportBCSMRequest(EventTypeBCSM.oAnswer, eventSpecificInformationBCSM, legID, miscCallInfo, null);
+                       EventSpecificInformationBCSM 
eventSpecificInformationBCSM =
+ this.capProvider.getCAPParameterFactory().createEventSpecificInformationBCSM(
+                                               oAnswerSpecificInfo);
+                       
currentCapDialog.addEventReportBCSMRequest(EventTypeBCSM.oAnswer,
+                                       eventSpecificInformationBCSM, legID, 
miscCallInfo, null);
                        currentCapDialog.send();
                        this.cc.step = Step.answered;
                }
        }

- public void sendEventReportBCSM_ODisconnect(ODisconnectSpecificInfo oDisconnectSpecificInfo, ReceivingSideID legID, MiscCallInfo miscCallInfo) throws CAPException { + public void sendEventReportBCSM_ODisconnect(ODisconnectSpecificInfo oDisconnectSpecificInfo,
+                       ReceivingSideID legID, MiscCallInfo miscCallInfo) 
throws CAPException {
                if (currentCapDialog != null && this.cc != null) {
- EventSpecificInformationBCSM eventSpecificInformationBCSM = this.capProvider.getCAPParameterFactory().createEventSpecificInformationBCSM(oDisconnectSpecificInfo); - currentCapDialog.addEventReportBCSMRequest(EventTypeBCSM.oDisconnect, eventSpecificInformationBCSM, legID, miscCallInfo, null);
+                       EventSpecificInformationBCSM 
eventSpecificInformationBCSM =
+ this.capProvider.getCAPParameterFactory().createEventSpecificInformationBCSM(
+                                               oDisconnectSpecificInfo);
+                       
currentCapDialog.addEventReportBCSMRequest(EventTypeBCSM.oDisconnect,
+                                       eventSpecificInformationBCSM, legID, 
miscCallInfo, null);
                        currentCapDialog.send();
                        this.cc.step = Step.disconnected;
                }
@@ -194,7 +208,8 @@
        }

        @Override
- public void onRejectComponent(CAPDialog capDialog, Long invokeId, Problem problem, boolean isLocalOriginated) { + public void onRejectComponent(CAPDialog capDialog, Long invokeId, Problem problem,
+                       boolean isLocalOriginated) {
                // TODO Auto-generated method stub

        }
@@ -338,7 +353,8 @@
        }

        @Override
- public void onDialogUserAbort(CAPDialog capDialog, CAPGeneralAbortReason generalReason, CAPUserAbortReason userReason) { + public void onDialogUserAbort(CAPDialog capDialog, CAPGeneralAbortReason generalReason,
+                       CAPUserAbortReason userReason) {
                // TODO Auto-generated method stub

        }
=======================================
--- /cap/cap-impl/src/test/java/org/mobicents/protocols/ss7/cap/Example.java Tue Aug 14 02:00:14 2012 +++ /cap/cap-impl/src/test/java/org/mobicents/protocols/ss7/cap/Example.java Tue Jan 8 05:30:00 2013
@@ -63,56 +63,71 @@

                int serviceKey = 1;

- CalledPartyNumber calledPartyNumber = client.getCAPProvider().getISUPParameterFactory().createCalledPartyNumber(); + CalledPartyNumber calledPartyNumber = client.getCAPProvider().getISUPParameterFactory()
+                       .createCalledPartyNumber();
                calledPartyNumber.setAddress("552348762");
calledPartyNumber.setNatureOfAddresIndicator(NAINumber._NAI_INTERNATIONAL_NUMBER);
                
calledPartyNumber.setNumberingPlanIndicator(CalledPartyNumber._NPI_ISDN);
calledPartyNumber.setInternalNetworkNumberIndicator(CalledPartyNumber._INN_ROUTING_ALLOWED); - CalledPartyNumberCap calledPartyNumberCap = client.getCAPProvider().getCAPParameterFactory().createCalledPartyNumberCap(calledPartyNumber);
+               CalledPartyNumberCap calledPartyNumberCap = 
client.getCAPProvider()
+                       
.getCAPParameterFactory().createCalledPartyNumberCap(calledPartyNumber);

- CallingPartyNumber callingPartyNumber = client.getCAPProvider().getISUPParameterFactory().createCallingPartyNumber(); + CallingPartyNumber callingPartyNumber = client.getCAPProvider().getISUPParameterFactory()
+                       .createCallingPartyNumber();
                callingPartyNumber.setAddress("55998223");
callingPartyNumber.setNatureOfAddresIndicator(NAINumber._NAI_INTERNATIONAL_NUMBER); callingPartyNumber.setNumberingPlanIndicator(CalledPartyNumber._NPI_ISDN); callingPartyNumber.setAddressRepresentationREstrictedIndicator(CallingPartyNumber._APRI_ALLOWED); callingPartyNumber.setScreeningIndicator(CallingPartyNumber._SI_NETWORK_PROVIDED); - CallingPartyNumberCap callingPartyNumberCap = client.getCAPProvider().getCAPParameterFactory().createCallingPartyNumberCap(callingPartyNumber);
+               CallingPartyNumberCap callingPartyNumberCap = 
client.getCAPProvider()
+ .getCAPParameterFactory().createCallingPartyNumberCap(callingPartyNumber);

- LocationNumber locationNumber = client.getCAPProvider().getISUPParameterFactory().createLocationNumber(); + LocationNumber locationNumber = client.getCAPProvider().getISUPParameterFactory()
+               .createLocationNumber();
                locationNumber.setAddress("55200001");
locationNumber.setNatureOfAddresIndicator(NAINumber._NAI_INTERNATIONAL_NUMBER);
                
locationNumber.setNumberingPlanIndicator(LocationNumber._NPI_ISDN);
locationNumber.setAddressRepresentationRestrictedIndicator(LocationNumber._APRI_ALLOWED); locationNumber.setScreeningIndicator(LocationNumber._SI_NETWORK_PROVIDED); locationNumber.setInternalNetworkNumberIndicator(LocationNumber._INN_ROUTING_ALLOWED); - LocationNumberCap locationNumberCap = client.getCAPProvider().getCAPParameterFactory().createLocationNumberCap(locationNumber); + LocationNumberCap locationNumberCap = client.getCAPProvider().getCAPParameterFactory()
+                       .createLocationNumberCap(locationNumber);

ISDNAddressString vlrNumber = client.getCAPProvider().getMAPParameterFactory() - .createISDNAddressString(AddressNature.international_number, NumberingPlan.ISDN, "552000002"); + .createISDNAddressString(AddressNature.international_number, NumberingPlan.ISDN,
+                                               "552000002");
LocationInformation locationInformation = client.getCAPProvider().getMAPParameterFactory() - .createLocationInformation(10, null, vlrNumber, null, null, null, null, vlrNumber, null, false, false, null, null);
+                               .createLocationInformation(10, null, vlrNumber, 
null, null, null, null,
+                                               vlrNumber, null, false, false, 
null, null);

- client.sendInitialDP(origAddress, destAddress, serviceKey, calledPartyNumberCap, callingPartyNumberCap, locationNumberCap, EventTypeBCSM.collectedInfo, + client.sendInitialDP(origAddress, destAddress, serviceKey, calledPartyNumberCap,
+                               callingPartyNumberCap, locationNumberCap, 
EventTypeBCSM.collectedInfo,
                                locationInformation);

                // sending oAnswer in 5 sec
                Thread.sleep(5000);
OAnswerSpecificInfo oAnswerSpecificInfo = client.getCAPProvider().getCAPParameterFactory()
                                .createOAnswerSpecificInfo(null, false, false, 
null, null, null);
- ReceivingSideID legID = client.getCAPProvider().getCAPParameterFactory().createReceivingSideID(LegType.leg2); - MiscCallInfo miscCallInfo = client.getCAPProvider().getINAPParameterFactory().createMiscCallInfo(MiscCallInfoMessageType.notification, null);
+               ReceivingSideID legID = 
client.getCAPProvider().getCAPParameterFactory()
+                       .createReceivingSideID(LegType.leg2);
+ MiscCallInfo miscCallInfo = client.getCAPProvider().getINAPParameterFactory()
+                       
.createMiscCallInfo(MiscCallInfoMessageType.notification, null);
client.sendEventReportBCSM_OAnswer(oAnswerSpecificInfo, legID, miscCallInfo);

                // sending oDisconnect in 20 sec
                Thread.sleep(20000);
- CauseIndicators causeIndicators = client.getCAPProvider().getISUPParameterFactory().createCauseIndicators(); + CauseIndicators causeIndicators = client.getCAPProvider().getISUPParameterFactory()
+                       .createCauseIndicators();
                causeIndicators.setLocation(CauseIndicators._LOCATION_USER);
                
causeIndicators.setCodingStandard(CauseIndicators._CODING_STANDARD_ITUT);
                causeIndicators.setCauseValue(CauseIndicators._CV_ALL_CLEAR);
- CauseCap releaseCause = client.getCAPProvider().getCAPParameterFactory().createCauseCap(causeIndicators); - ODisconnectSpecificInfo oDisconnectSpecificInfo = client.getCAPProvider().getCAPParameterFactory().createODisconnectSpecificInfo(releaseCause);
+               CauseCap releaseCause = 
client.getCAPProvider().getCAPParameterFactory()
+                       .createCauseCap(causeIndicators);
+               ODisconnectSpecificInfo oDisconnectSpecificInfo = 
client.getCAPProvider()
+                       
.getCAPParameterFactory().createODisconnectSpecificInfo(releaseCause);
legID = client.getCAPProvider().getCAPParameterFactory().createReceivingSideID(LegType.leg1); - miscCallInfo = client.getCAPProvider().getINAPParameterFactory().createMiscCallInfo(MiscCallInfoMessageType.notification, null);
+               miscCallInfo = client.getCAPProvider().getINAPParameterFactory()
+                       
.createMiscCallInfo(MiscCallInfoMessageType.notification, null);
client.sendEventReportBCSM_ODisconnect(oDisconnectSpecificInfo, legID, miscCallInfo);

                // wait for answer
=======================================
--- /map/map-impl/src/test/java/org/mobicents/protocols/ss7/map/Example.java Sun May 27 11:15:18 2012 +++ /map/map-impl/src/test/java/org/mobicents/protocols/ss7/map/Example.java Tue Jan 8 05:30:00 2013
@@ -41,14 +41,18 @@

                SccpAddress origAddress = createLocalAddress();
ISDNAddressString origReference = client.getMAPProvider().getMAPParameterFactory() - .createISDNAddressString(AddressNature.international_number, NumberingPlan.land_mobile, "31628968300");
+                               
.createISDNAddressString(AddressNature.international_number,
+                                               NumberingPlan.land_mobile, 
"31628968300");
                SccpAddress destAddress = createRemoteAddress();
ISDNAddressString destReference = client.getMAPProvider().getMAPParameterFactory() - .createISDNAddressString(AddressNature.international_number, NumberingPlan.land_mobile, "204208300008002");
+                               
.createISDNAddressString(AddressNature.international_number,
+                                               NumberingPlan.land_mobile, 
"204208300008002");

ISDNAddressString msisdn = client.getMAPProvider().getMAPParameterFactory() - .createISDNAddressString(AddressNature.international_number, NumberingPlan.ISDN, "31628838002"); - client.sendProcessUssdRequest(origAddress, origReference, destAddress, destReference, "*123#", null, msisdn);
+                               
.createISDNAddressString(AddressNature.international_number,
+                                               NumberingPlan.ISDN, 
"31628838002");
+ client.sendProcessUssdRequest(origAddress, origReference, destAddress, destReference,
+                               "*123#", null, msisdn);

                // wait for answer
                Thread.sleep(600000);
=======================================
--- /map/map-impl/src/test/java/org/mobicents/protocols/ss7/map/UssdClientExample.java Sat Dec 29 07:00:59 2012 +++ /map/map-impl/src/test/java/org/mobicents/protocols/ss7/map/UssdClientExample.java Tue Jan 8 05:30:00 2013
@@ -70,11 +70,15 @@
                mapStack.stop();
        }

- public void sendProcessUssdRequest(SccpAddress origAddress, AddressString origReference, SccpAddress remoteAddress, AddressString destReference, - String ussdMessage, AlertingPattern alertingPattern, ISDNAddressString msisdn) throws MAPException { + public void sendProcessUssdRequest(SccpAddress origAddress, AddressString origReference,
+                       SccpAddress remoteAddress, AddressString destReference,
+ String ussdMessage, AlertingPattern alertingPattern, ISDNAddressString msisdn)
+       throws MAPException {
                // First create Dialog
currentMapDialog = mapProvider.getMAPServiceSupplementary().createNewDialog( - MAPApplicationContext.getInstance(MAPApplicationContextName.networkUnstructuredSsContext, MAPApplicationContextVersion.version2), origAddress,
+                               MAPApplicationContext.getInstance(
+                                               
MAPApplicationContextName.networkUnstructuredSsContext,
+                                               
MAPApplicationContextVersion.version2), origAddress,
                                destReference, remoteAddress, destReference);

CBSDataCodingScheme ussdDataCodingScheme = new CBSDataCodingSchemeImpl(0x0f);
@@ -83,7 +87,8 @@
                // impl of Charset
USSDString ussdString = paramFact.createUSSDString(ussdMessage, null, null);

- currentMapDialog.addProcessUnstructuredSSRequest(ussdDataCodingScheme, ussdString, alertingPattern, msisdn); + currentMapDialog.addProcessUnstructuredSSRequest(ussdDataCodingScheme, ussdString,
+                               alertingPattern, msisdn);
                // This will initiate the TC-BEGIN with INVOKE component
                currentMapDialog.send();
        }
@@ -102,12 +107,14 @@
        }


- public void onErrorComponent(MAPDialog mapDialog, Long invokeId, MAPErrorMessage mapErrorMessage) {
+       public void onErrorComponent(MAPDialog mapDialog, Long invokeId,
+                       MAPErrorMessage mapErrorMessage) {
                // TODO Auto-generated method stub

        }

- public void onRejectComponent(MAPDialog mapDialog, Long invokeId, Problem problem, boolean isLocalOriginated) {
+       public void onRejectComponent(MAPDialog mapDialog, Long invokeId,
+                       Problem problem, boolean isLocalOriginated) {
                // TODO Auto-generated method stub

        }
@@ -152,12 +159,14 @@

        }

- public void onDialogRequest(MAPDialog mapDialog, AddressString destReference, AddressString origReference, MAPExtensionContainer extensionContainer) { + public void onDialogRequest(MAPDialog mapDialog, AddressString destReference,
+                       AddressString origReference, MAPExtensionContainer 
extensionContainer) {
                // TODO Auto-generated method stub

        }

- public void onDialogRequestEricsson(MAPDialog mapDialog, AddressString destReference, AddressString origReference, IMSI eriImsi, AddressString eriVlrNo) { + public void onDialogRequestEricsson(MAPDialog mapDialog, AddressString destReference,
+                       AddressString origReference, IMSI eriImsi, 
AddressString eriVlrNo) {
                // TODO Auto-generated method stub

        }
@@ -167,13 +176,14 @@

        }

- public void onDialogUserAbort(MAPDialog mapDialog, MAPUserAbortChoice userReason, MAPExtensionContainer extensionContainer) { + public void onDialogUserAbort(MAPDialog mapDialog, MAPUserAbortChoice userReason,
+                       MAPExtensionContainer extensionContainer) {
                // TODO Auto-generated method stub

        }

- public void onDialogProviderAbort(MAPDialog mapDialog, MAPAbortProviderReason abortProviderReason, MAPAbortSource abortSource,
-                       MAPExtensionContainer extensionContainer) {
+ public void onDialogProviderAbort(MAPDialog mapDialog, MAPAbortProviderReason abortProviderReason,
+                       MAPAbortSource abortSource, MAPExtensionContainer 
extensionContainer) {
                // TODO Auto-generated method stub

        }
@@ -183,7 +193,8 @@

        }

- public void onDialogNotice(MAPDialog mapDialog, MAPNoticeProblemDiagnostic noticeProblemDiagnostic) {
+       public void onDialogNotice(MAPDialog mapDialog,
+                       MAPNoticeProblemDiagnostic noticeProblemDiagnostic) {
                // TODO Auto-generated method stub

        }
@@ -198,7 +209,8 @@
        }

        @Override
- public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason, ApplicationContextName alternativeApplicationContext, + public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason,
+                       ApplicationContextName alternativeApplicationContext,
                        MAPExtensionContainer extensionContainer) {
                // TODO Auto-generated method stub

=======================================
--- /map/map-impl/src/test/java/org/mobicents/protocols/ss7/map/UssdServerExample.java Sat Dec 29 07:00:59 2012 +++ /map/map-impl/src/test/java/org/mobicents/protocols/ss7/map/UssdServerExample.java Tue Jan 8 05:30:00 2013
@@ -76,7 +76,8 @@
CBSDataCodingScheme ussdDataCodingScheme = new CBSDataCodingSchemeImpl(0x0f); USSDString ussdResponse = paramFact.createUSSDString(response, null, null);

- currentMapDialog.addProcessUnstructuredSSResponse(ind.getInvokeId(), ussdDataCodingScheme, ussdResponse);
+                       
currentMapDialog.addProcessUnstructuredSSResponse(ind.getInvokeId(),
+                                       ussdDataCodingScheme, ussdResponse);
                } catch (MAPException e1) {
                        // TODO Auto-generated catch block
                        e1.printStackTrace();
@@ -94,12 +95,14 @@
        }


- public void onErrorComponent(MAPDialog mapDialog, Long invokeId, MAPErrorMessage mapErrorMessage) {
+       public void onErrorComponent(MAPDialog mapDialog, Long invokeId,
+                       MAPErrorMessage mapErrorMessage) {
                // TODO Auto-generated method stub

        }

- public void onRejectComponent(MAPDialog mapDialog, Long invokeId, Problem problem, boolean isLocalOriginated) { + public void onRejectComponent(MAPDialog mapDialog, Long invokeId, Problem problem,
+                       boolean isLocalOriginated) {
                // TODO Auto-generated method stub

        }
@@ -139,12 +142,14 @@

        }

- public void onDialogRequest(MAPDialog mapDialog, AddressString destReference, AddressString origReference, MAPExtensionContainer extensionContainer) { + public void onDialogRequest(MAPDialog mapDialog, AddressString destReference,
+                       AddressString origReference, MAPExtensionContainer 
extensionContainer) {
                // TODO Auto-generated method stub

        }

- public void onDialogRequestEricsson(MAPDialog mapDialog, AddressString destReference, AddressString origReference, IMSI eriImsi, AddressString eriVlrNo) { + public void onDialogRequestEricsson(MAPDialog mapDialog, AddressString destReference,
+                       AddressString origReference, IMSI eriImsi, 
AddressString eriVlrNo) {
                // TODO Auto-generated method stub

        }
@@ -155,17 +160,20 @@
        }

public void onDialogReject(MAPDialog mapDialog, MAPRefuseReason refuseReason, - ApplicationContextName alternativeApplicationContext, MAPExtensionContainer extensionContainer) {
+                       ApplicationContextName alternativeApplicationContext,
+                       MAPExtensionContainer extensionContainer) {
                // TODO Auto-generated method stub

        }

- public void onDialogUserAbort(MAPDialog mapDialog, MAPUserAbortChoice userReason, MAPExtensionContainer extensionContainer) { + public void onDialogUserAbort(MAPDialog mapDialog, MAPUserAbortChoice userReason,
+                       MAPExtensionContainer extensionContainer) {
                // TODO Auto-generated method stub

        }

- public void onDialogProviderAbort(MAPDialog mapDialog, MAPAbortProviderReason abortProviderReason, MAPAbortSource abortSource,
+       public void onDialogProviderAbort(MAPDialog mapDialog,
+                       MAPAbortProviderReason abortProviderReason, 
MAPAbortSource abortSource,
                        MAPExtensionContainer extensionContainer) {
                // TODO Auto-generated method stub

@@ -176,7 +184,8 @@

        }

- public void onDialogNotice(MAPDialog mapDialog, MAPNoticeProblemDiagnostic noticeProblemDiagnostic) {
+       public void onDialogNotice(MAPDialog mapDialog,
+                       MAPNoticeProblemDiagnostic noticeProblemDiagnostic) {
                // TODO Auto-generated method stub

        }

Reply via email to