/protocols/ss7/map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/service/sms/MAPDialogSms.java

http://mobicents.googlecode.com/ · Java · 269 lines · 44 code · 27 blank · 198 comment · 0 complexity · 1feb40a846ad5322d921c8463f4f75b3 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.map.api.service.sms;
  23. import org.mobicents.protocols.ss7.map.api.MAPDialog;
  24. import org.mobicents.protocols.ss7.map.api.MAPException;
  25. import org.mobicents.protocols.ss7.map.api.primitives.AddressString;
  26. import org.mobicents.protocols.ss7.map.api.primitives.IMSI;
  27. import org.mobicents.protocols.ss7.map.api.primitives.ISDNAddressString;
  28. import org.mobicents.protocols.ss7.map.api.primitives.MAPExtensionContainer;
  29. /**
  30. *
  31. * @author sergey vetyutnev
  32. *
  33. */
  34. public interface MAPDialogSms extends MAPDialog {
  35. /**
  36. <<<<<<< .mine
  37. * Sending MAP-FORWARD-SHORT-MESSAGE request
  38. *
  39. * @param sm_RP_DA
  40. * mandatory
  41. * @param sm_RP_OA
  42. * mandatory
  43. * @param sm_RP_UI
  44. * mandatory
  45. * @param moreMessagesToSend
  46. * optional, default: false
  47. * @return invokeId
  48. * @throws MAPException
  49. */
  50. public Long addForwardShortMessageRequest(SM_RP_DA sm_RP_DA, SM_RP_OA sm_RP_OA, SmsSignalInfo sm_RP_UI, boolean moreMessagesToSend) throws MAPException;
  51. public Long addForwardShortMessageRequest(int customInvokeTimeout, SM_RP_DA sm_RP_DA, SM_RP_OA sm_RP_OA, SmsSignalInfo sm_RP_UI, boolean moreMessagesToSend)
  52. throws MAPException;
  53. /**
  54. * Sending MAP-FORWARD-SHORT-MESSAGE response
  55. *
  56. * @param invokeId
  57. * @throws MAPException
  58. */
  59. public void addForwardShortMessageResponse(long invokeId) throws MAPException;
  60. /**
  61. * Sending MAP-MO-FORWARD-SHORT-MESSAGE request
  62. *
  63. * @param sm_RP_DA
  64. * mandatory
  65. * @param sm_RP_OA
  66. * mandatory
  67. * @param sm_RP_UI
  68. * mandatory
  69. * @param extensionContainer
  70. * optional
  71. * @param imsi
  72. * optional
  73. * @return invokeId
  74. * @throws MAPException
  75. */
  76. public Long addMoForwardShortMessageRequest(SM_RP_DA sm_RP_DA, SM_RP_OA sm_RP_OA, SmsSignalInfo sm_RP_UI, MAPExtensionContainer extensionContainer, IMSI imsi)
  77. throws MAPException;
  78. public Long addMoForwardShortMessageRequest(int customInvokeTimeout, SM_RP_DA sm_RP_DA, SM_RP_OA sm_RP_OA, SmsSignalInfo sm_RP_UI,
  79. MAPExtensionContainer extensionContainer, IMSI imsi) throws MAPException;
  80. /**
  81. * Sending MAP-MO-FORWARD-SHORT-MESSAGE response
  82. *
  83. * @param invokeId
  84. * @param sm_RP_UI
  85. * optional
  86. * @param extensionContainer
  87. * optional
  88. * @throws MAPException
  89. */
  90. public void addMoForwardShortMessageResponse(long invokeId, SmsSignalInfo sm_RP_UI, MAPExtensionContainer extensionContainer) throws MAPException;
  91. /**
  92. * Sending MAP-MT-FORWARD-SHORT-MESSAGE request
  93. *
  94. * @param sm_RP_DA
  95. * mandatory
  96. * @param sm_RP_OA
  97. * mandatory
  98. * @param sm_RP_UI
  99. * mandatory
  100. * @param moreMessagesToSend
  101. * optional
  102. * @param extensionContainer
  103. * optional
  104. * @return
  105. * @throws MAPException
  106. */
  107. public Long addMtForwardShortMessageRequest(SM_RP_DA sm_RP_DA, SM_RP_OA sm_RP_OA, SmsSignalInfo sm_RP_UI, boolean moreMessagesToSend,
  108. MAPExtensionContainer extensionContainer) throws MAPException;
  109. public Long addMtForwardShortMessageRequest(int customInvokeTimeout, SM_RP_DA sm_RP_DA, SM_RP_OA sm_RP_OA, SmsSignalInfo sm_RP_UI, boolean moreMessagesToSend,
  110. MAPExtensionContainer extensionContainer) throws MAPException;
  111. /**
  112. * Sending MAP-MT-FORWARD-SHORT-MESSAGE response
  113. *
  114. * @param invokeId
  115. * @param sm_RP_UI
  116. * optional
  117. * @param extensionContainer
  118. * optional
  119. * @throws MAPException
  120. */
  121. public void addMtForwardShortMessageResponse(long invokeId, SmsSignalInfo sm_RP_UI, MAPExtensionContainer extensionContainer) throws MAPException;
  122. /**
  123. * Sending MAP-SEND-ROUTING-INFO-FOR-SM request
  124. *
  125. * @param msisdn
  126. * mandatory
  127. * @param sm_RP_PRI
  128. * mandatory
  129. * @param serviceCentreAddress
  130. * mandatory
  131. * @param extensionContainer
  132. * optional
  133. * @param gprsSupportIndicator
  134. * optional
  135. * @param sM_RP_MTI
  136. * optional
  137. * @param sM_RP_SMEA
  138. * optional
  139. * @return
  140. * @throws MAPException
  141. */
  142. public Long addSendRoutingInfoForSMRequest(ISDNAddressString msisdn, boolean sm_RP_PRI, AddressString serviceCentreAddress,
  143. MAPExtensionContainer extensionContainer, boolean gprsSupportIndicator, SM_RP_MTI sM_RP_MTI, SM_RP_SMEA sM_RP_SMEA) throws MAPException;
  144. public Long addSendRoutingInfoForSMRequest(int customInvokeTimeout, ISDNAddressString msisdn, boolean sm_RP_PRI, AddressString serviceCentreAddress,
  145. MAPExtensionContainer extensionContainer, boolean gprsSupportIndicator, SM_RP_MTI sM_RP_MTI, SM_RP_SMEA sM_RP_SMEA) throws MAPException;
  146. /**
  147. * Sending MAP-SEND-ROUTING-INFO-FOR-SM response
  148. *
  149. * @param imsi
  150. * mandatory
  151. * @param locationInfoWithLMSI
  152. * mandatory
  153. * @param extensionContainer
  154. * optional
  155. * @return
  156. * @throws MAPException
  157. */
  158. public void addSendRoutingInfoForSMResponse(long invokeId, IMSI imsi, LocationInfoWithLMSI locationInfoWithLMSI, MAPExtensionContainer extensionContainer)
  159. throws MAPException;
  160. /**
  161. * Sending MAP-SEND-ROUTING-INFO-FOR-SM request
  162. *
  163. * @param msisdn
  164. * mandatory
  165. * @param serviceCentreAddress
  166. * mandatory
  167. * @param sMDeliveryOutcome
  168. * mandatory
  169. * @param sbsentSubscriberDiagnosticSM
  170. * mandatory
  171. * @param extensionContainer
  172. * optional
  173. * @param gprsSupportIndicator
  174. * optional
  175. * @param deliveryOutcomeIndicator
  176. * optional
  177. * @param additionalSMDeliveryOutcome
  178. * optional
  179. * @param additionalAbsentSubscriberDiagnosticSM
  180. * optional
  181. * @return
  182. * @throws MAPException
  183. */
  184. public Long addReportSMDeliveryStatusRequest(ISDNAddressString msisdn, AddressString serviceCentreAddress, SMDeliveryOutcome sMDeliveryOutcome,
  185. Integer absentSubscriberDiagnosticSM, MAPExtensionContainer extensionContainer, boolean gprsSupportIndicator, boolean deliveryOutcomeIndicator,
  186. SMDeliveryOutcome additionalSMDeliveryOutcome, Integer additionalAbsentSubscriberDiagnosticSM) throws MAPException;
  187. public Long addReportSMDeliveryStatusRequest(int customInvokeTimeout, ISDNAddressString msisdn, AddressString serviceCentreAddress,
  188. SMDeliveryOutcome sMDeliveryOutcome, Integer absentSubscriberDiagnosticSM, MAPExtensionContainer extensionContainer, boolean gprsSupportIndicator,
  189. boolean deliveryOutcomeIndicator, SMDeliveryOutcome additionalSMDeliveryOutcome, Integer additionalAbsentSubscriberDiagnosticSM)
  190. throws MAPException;
  191. /**
  192. * Sending MAP-SEND-ROUTING-INFO-FOR-SM response
  193. *
  194. * @param invokeId
  195. * @param storedMSISDN
  196. * optional
  197. * @param extensionContainer
  198. * optional
  199. * @return
  200. * @throws MAPException
  201. */
  202. public void addReportSMDeliveryStatusResponse(long invokeId, ISDNAddressString storedMSISDN, MAPExtensionContainer extensionContainer) throws MAPException;
  203. /**
  204. * Sending MAP-INFORM-SERVICE-CENTRE request
  205. *
  206. * @param storedMSISDN
  207. * optional
  208. * @param mwStatus
  209. * optional
  210. * @param extensionContainer
  211. * optional
  212. * @param absentSubscriberDiagnosticSM
  213. * optional
  214. * @param additionalAbsentSubscriberDiagnosticSM
  215. * optional
  216. * @return
  217. * @throws MAPException
  218. */
  219. public Long addInformServiceCentreRequest(ISDNAddressString storedMSISDN, MWStatus mwStatus, MAPExtensionContainer extensionContainer,
  220. Integer absentSubscriberDiagnosticSM, Integer additionalAbsentSubscriberDiagnosticSM) throws MAPException;
  221. public Long addInformServiceCentreRequest(int customInvokeTimeout, ISDNAddressString storedMSISDN, MWStatus mwStatus,
  222. MAPExtensionContainer extensionContainer, Integer absentSubscriberDiagnosticSM, Integer additionalAbsentSubscriberDiagnosticSM) throws MAPException;
  223. /**
  224. * Sending MAP-SEND-ROUTING-INFO-FOR-SM request
  225. *
  226. * @param msisdn
  227. * mandatory
  228. * @param serviceCentreAddress
  229. * mandatory
  230. * @return
  231. * @throws MAPException
  232. */
  233. public Long addAlertServiceCentreRequest(ISDNAddressString msisdn, AddressString serviceCentreAddress) throws MAPException;
  234. public Long addAlertServiceCentreRequest(int customInvokeTimeout, ISDNAddressString msisdn, AddressString serviceCentreAddress) throws MAPException;
  235. /**
  236. * Sending MAP-SEND-ROUTING-INFO-FOR-SM response
  237. *
  238. * @param invokeId
  239. * @throws MAPException
  240. */
  241. public void addAlertServiceCentreResponse(long invokeId) throws MAPException;
  242. }