sid - Connecting a 'sent' SMS to a 'received' SMS -
i have built app sends out sms using twilio number(the 1 assigned me) when message sent receive sid number inserted db, along other general information, not know how connect received sms sid sent sms sid tells system user has responded....how connect outgoing message received?
update: hello devin, response! however, not me might send lets 1 of 3 different people multiple messages in hour.
my app notification app...basically form user fills out basic info. 1 of these fileds choose drop down of 3 different people(who message go to) send message. app inserts form data explained above along smsid returned guys db.
the user(one of 3 people descibed above) sent notification above responds message, meaning twilio hits "request url" , save information returned user...however, , problem lies smsid reply not same smsid of sent notification...therefore have no way connect sms sent user response. have looked @ cookies option , not needing...actually documentation acknowledges issue not offer solution seen here under "application initiated conversations"
https://www.twilio.com/blog/2014/07/the-definitive-guide-to-sms-conversation-tracking.html
so if know of way around this, love hear sure :)
twilio evangelist here.
the sms protocol has no concept of "conversation". each message sent unique , has no knowledge of messages sent before or after it. twilios sms sid unique identifier individual message.
the typical way solve use to/from phone number pair unique identifier of sms conversation. when send first outbound message, store to/from phone number in database. when user replies twilio tell number sent message , , can use information original outbound message in database.
if "user" can involved in several different conversations @ once either need use unique phone number each seperate conversation (allowing use technique above), or need have user include type of conversation id in reply (which can use unique identifier).
you can buy pool of numbers , each conversation "ends", recycle number new conversation.
hope helps.
Comments
Post a Comment