We need to add SMS notification for missed calls or ALL calls from UK Mobiles to our existing Lookup script.
SMS only sent if CID = UK Mobile (10 digits number starting with 7)
Additional fields to database:
sms - 0(off)/1(on missed calls from UK mobile only)/2(on all calls from UK mobiles)
agent_name - name of the agent to be refernced in text of sms.
agent_mob - mobile number for agent sms.
If sms field is set to 0 - No SMS is sent
If sms field is set to 1 - SMS is only sent if Called Party does not answer the phone.
If sms field is set to 2 - SMS is sent for every call.
When sms field is set to either 1 or 2, then 2 SMS are sent for each call that meets the criteria.
First SMS is sent to the CID (UK Mobile). Text to follow this format: “Thank you for using RentRight for to contact <agent_name>, Sorry your call was not answered. If you would like to view a property text VIEW to 84450, Text STOP if you don’t need any further information on this property. Please visit us again @ [url removed, login to view] for all your property needs”
Second SMS is sent to the <agent_mob>. Text to follow this format: “You have just missed a call from <CID>, you can also access these details via your web login, [url removed, login to view] for all your property needs”
We also need to generate a half-hourly report for SMSs sent in the following format:
DateTime = Date and time of SMS
<did> = did field from lookup table
<agent_name> = agent name field from lookup table
<cid> = CID from inbound call
type = was this the agent SMS or Caller SMS
status = When you send a message via the API an identification number is returned for that message, we can then forward on to you the delivery receipts (DRs) for those messages.
response = We can also forward any inbound messages (MOs) to a particular keyword/shortcode to your application for processing. This is if they SMS back VIEW or STOP.
bid is for sms-only part upto "We also need to generate". becuase no info about API for other part. realization: external sms sending program( hi cpu load per send, not more then 1-2 sms per second )