/protocols/ss7/inap/inap-api/src/main/java/org/mobicents/protocols/ss7/inap/api/primitives/LegID.java

http://mobicents.googlecode.com/ · Java · 65 lines · 5 code · 5 blank · 55 comment · 0 complexity · 37ec2b32d94dbd0ef22e491d0bd85824 MD5 · raw file

  1. /*
  2. * JBoss, Home of Professional Open Source
  3. * Copyright 2011, Red Hat, Inc. and individual contributors
  4. * by the @authors tag. See the copyright.txt in the distribution for a
  5. * full listing of individual contributors.
  6. *
  7. * This is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU Lesser General Public License as
  9. * published by the Free Software Foundation; either version 2.1 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This software is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. * Lesser General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Lesser General Public
  18. * License along with this software; if not, write to the Free
  19. * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  20. * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  21. */
  22. package org.mobicents.protocols.ss7.inap.api.primitives;
  23. /**
  24. *
  25. LegID::= CHOICE {
  26. sendingSideID[0] LegType, -- used in operations sent from SCF to SSF
  27. receivingSideID[1] LegType -- used in operations sent from SSF to SCF
  28. }
  29. -- Indicates a reference to a specific party in a call. OPTIONAL denotes network operator specific use with
  30. -- unilateral ID assignment. OPTIONAL for LegID also denotes the following:
  31. -- - when only one party exists in the call, this parameter is not needed (as no ambiguity exists).
  32. -- - when more than one party exists in the call, one of the following alternatives applies:
  33. -- 1) LegID is present and indicates which party is concerned.
  34. -- 2) LegID is not present and a default value is assumed (e.g., calling party in the case of the
  35. -- ApplyCharging operation).
  36. LegType::= OCTET STRING (SIZE(1))
  37. leg1 LegType::= '01'H
  38. leg2 LegType::= '02'H
  39. Other simple primitives:
  40. Duration::= INTEGER (-2..86400)
  41. -- Values are seconds. Negative values denote a special value, refer to the procedure description of the
  42. -- relevant operations for further information.
  43. Integer4::= INTEGER (0..2147483647)
  44. Interval::= INTEGER (-1..60000)
  45. -- Units are milliseconds. A -1 value denotes infinite.
  46. ServiceKey::= Integer4
  47. -- Information that allows the SCF to choose the appropriate service logic.
  48. *
  49. * @author sergey vetyutnev
  50. *
  51. */
  52. public interface LegID {
  53. public LegType getSendingSideID();
  54. public LegType getReceivingSideID();
  55. }