Revision: 52c7180a892c
Author:   [email protected] <[email protected]>
Date:     Thu Jun 27 08:50:39 2013
Log: Fixed Issue #298 M3UA : When creating ASP, passing aspid not mandatory, but CLI makes it compulsory

http://code.google.com/p/jss7/source/detail?r=52c7180a892c

Modified:
/m3ua/impl/src/main/java/org/mobicents/protocols/ss7/m3ua/impl/oam/M3UAShellExecutor.java

=======================================
--- /m3ua/impl/src/main/java/org/mobicents/protocols/ss7/m3ua/impl/oam/M3UAShellExecutor.java Mon May 20 13:09:00 2013 +++ /m3ua/impl/src/main/java/org/mobicents/protocols/ss7/m3ua/impl/oam/M3UAShellExecutor.java Thu Jun 27 08:50:39 2013
@@ -329,7 +329,7 @@
factory = this.m3uaManagement.createAspFactory(aspname, assocName, false);
                     } else {
                         int count = 5;
-                        long aspid = 0;
+                        long aspid = -1;
                         boolean isHeartBeatEnabled = false;
                         while (count < args.length) {
                             String key = args[count++];
@@ -345,7 +345,11 @@
                                 return M3UAOAMMessages.INVALID_COMMAND;
                             }
                         }
- factory = this.m3uaManagement.createAspFactory(aspname, assocName, aspid, isHeartBeatEnabled);
+                        if(aspid == -1){
+ factory = this.m3uaManagement.createAspFactory(aspname, assocName, isHeartBeatEnabled);
+                        } else {
+ factory = this.m3uaManagement.createAspFactory(aspname, assocName, aspid, isHeartBeatEnabled);
+                        }
                     }
return String.format(M3UAOAMMessages.CREATE_ASP_SUCESSFULL, factory.getName());
                 } else if (raspCmd.equals("destroy")) {

--

--- You received this message because you are subscribed to the Google Groups "mobicents-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to