简体   繁体   English

使用亚马逊 SNS 和 Pinpoint 的 2 路短信

[英]2 Way SMS using amazon SNS and Pinpoint

I am currently able to send an SMS to a user mobile phone using AWS SNS SDK. I want to use combination of SNS for outgoing SMS and Pinpoint only for incoming SMS.我目前能够使用 AWS SNS SDK 向用户手机发送短信。我想将 SNS 组合用于传出短信,而 Pinpoint 仅用于传入短信。 I can receive a message as well using AWS Pinpoint.我也可以使用 AWS Pinpoint 接收消息。 What I am missing currently is I am not able to correlate the outgoing and incoming messages.我目前缺少的是我无法关联传出和传入的消息。 For eg When I publish to Sns I record a message Id as uuid1 and when I receive a message from Pinpoint and I look into previous message Id not same as uuid1.例如,当我发布到 Sns 时,我将消息 ID 记录为 uuid1,当我收到来自 Pinpoint 的消息时,我查看了与 uuid1 不同的先前消息 ID。 Is there any way to relate these two SMS using any metadata in the AWS infrastructure?有没有办法使用 AWS 基础设施中的任何元数据将这两个 SMS 关联起来?

Unfortunately there is not.不幸的是没有。 Text messages are stateless and there isn't really a concept of "conversations", they are just a series of messages that happen between two numbers.短信是无状态的,实际上没有“对话”的概念,它们只是两个数字之间发生的一系列消息。 You will need to create some sort of database of source/destination messages and use inbound/outbound phone numbers to correlate the messages together.您将需要创建某种源/目标消息数据库,并使用入站/出站电话号码将消息关联在一起。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM