Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/main/environment/common_dev.properties
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,16 @@ callRetryConfiguration=3

#avni registration Duration
avniRegistrationLimit=7

### SMS Gateway URL details
#sms-gateway-url=http://sms.smsjosh.com
sms-username=PIRAMAL_SW_AHxoyCXejeJba13oKHcv
sms-password=]Kt9GAp8}$S*@
#send-message-url=api/mt/SendSMS?user=USERNAME&password=PASSWORD&senderid=iAMRIT&channel=Trans&DCS=0&flashsms=0&number=91RECEIVER_NUMBER&text=SMS_TEXT&route=9
send-message-url=https://openapi.airtel.in/gateway/airtel-iq-sms-utility/sendSingleSms
#sms-sender-number=DOCTOR
source-address=AIDSHL
sms-message-type=SERVICE_EXPLICIT
sms-entityid=1201161708885589464


14 changes: 14 additions & 0 deletions src/main/environment/common_local.properties
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,17 @@ spring.redis.host=localhost
#snomedcti
snomedCTPageSize=10
##missing commits


### SMS Gateway URL details
#sms-gateway-url=http://sms.smsjosh.com
sms-username=PIRAMAL_SW_AHxoyCXejeJba13oKHcv
sms-password=]Kt9GAp8}$S*@
#send-message-url=api/mt/SendSMS?user=USERNAME&password=PASSWORD&senderid=iAMRIT&channel=Trans&DCS=0&flashsms=0&number=91RECEIVER_NUMBER&text=SMS_TEXT&route=9
send-message-url=https://openapi.airtel.in/gateway/airtel-iq-sms-utility/sendSingleSms
#sms-sender-number=DOCTOR
source-address=AIDSHL
sms-message-type=SERVICE_EXPLICIT
sms-entityid=1201161708885589464


13 changes: 12 additions & 1 deletion src/main/environment/common_test.properties
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ get-agent-summary-report-job=2 hour
get-details-call-report-job=2 hour
##-------------------------------------------------### Redis IP--------------------------------------------------------------

spring.redis.host=localhost
spring.redis.host=localhosts

##---------------------------------------------------------------------------------------------------------------
###CTI data sync schedular
Expand All @@ -99,6 +99,17 @@ callRetryConfiguration=3
#avni registration Duration
avniRegistrationLimit=7

### SMS Gateway URL details
#sms-gateway-url=http://sms.smsjosh.com
sms-username=PIRAMAL_SW_AHxoyCXejeJba13oKHcv
sms-password=]Kt9GAp8}$S*@
#send-message-url=api/mt/SendSMS?user=USERNAME&password=PASSWORD&senderid=iAMRIT&channel=Trans&DCS=0&flashsms=0&number=91RECEIVER_NUMBER&text=SMS_TEXT&route=9
send-message-url=https://openapi.airtel.in/gateway/airtel-iq-sms-utility/sendSingleSms
#sms-sender-number=DOCTOR
source-address=AIDSHL
sms-message-type=SERVICE_EXPLICIT
sms-entityid=1201161708885589464




Expand Down
2 changes: 2 additions & 0 deletions src/main/java/com/iemr/common/data/sms/SMSTemplate.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ public class SMSTemplate
String smsTemplateName;
@Column(name = "SMSTemplate")
String smsTemplate;
@Column(name = "dltTemplateId")
String dltTemplateId;
@Column(name = "SMSSenderName")
String smsSenderID;
@Column(name = "SMSTypeID")
Expand Down
26 changes: 26 additions & 0 deletions src/main/java/com/iemr/common/model/sms/SmsAPIRequestModel.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package com.iemr.common.model.sms;

public class SmsAPIRequestModel {

private String customerId;
private StringBuffer destinationAddress;
private String message;
private String sourceAddress;
private String messageType;
private String dltTemplateId;
private String entityId;


public SmsAPIRequestModel(String customerId, StringBuffer destinationAddress, String message,
String sourceAddress, String messageType, String dltTemplateId, String entityId) {
this.customerId = customerId;
this.destinationAddress = destinationAddress;
this.message = message;
this.sourceAddress = sourceAddress;
this.messageType = messageType;
this.dltTemplateId = dltTemplateId;
this.entityId = entityId;
}


}
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ public List<SMSTemplate> getSMSTemplateByProviderServiceMapIDAndSMSTypeID(
@Modifying
@Query("update SMSTemplate set deleted = :deleted where smsTemplateID = :smsTemplateID")
public int updateSMSTemplate(@Param("smsTemplateID") Integer smsTemplateID, @Param("deleted") Boolean deleted);

@Query("select smsTemplate.dltTemplateId from SMSTemplate smsTemplate where smsTemplate.smsTemplateID = :smsTemplateID and smsTemplate.deleted <> true")
public String findDLTTemplateID(@Param("smsTemplateID") Integer smsTemplateID );

}
Loading