I am working on a replacement for our SMS server and, since we have O365, I am looking to use Kaizala to facilitate this.
You can target users via mobile numbers who are subscribed, so we can use the current SMS backend without much modification. Sending messages to specific subscribers is working, BUT I can't send a message targeting my number.
I am the creator of the group and so I am seen as a "Member" and not a "Subscriber". When I try to send a message via the API to my number it says "No valid subscriber found!" (that is a copy and paste from VS). I have googled and looked at a few sites, but they all only focus on the part of the code that is working.
I have tried adding myself as a subscriber, but I get an error so not sure if that is an system problem or a me problem. :)
I am also on the standby rotation, so when it is my turn for standby the SMS's need to come to me. I am hoping someone can give me a nudge in the right direction!
TIA
PS:
using Newtonsoft.Json;
using RestSharp;
Related
I'm working on a message extension using bot framework v3 (c#). When i install the application in teams and open the bot in 1-1 chat with bot, and send message i'm getting a welcome text.
But i want the welcome text as soon as i open/ access the bot without sending any message to the bot, so i there any way to achieve this.
For welcome text on message event i'm using activity.GetActivityType() == ActivityTypes.Message
So similarly is there any activity type to get bot access event.
If you're using C#, you're listening for the OnMessageActivityAsync event, and implementing your check in there. However, if you want to send the message straight away, without the user having to send one first, you need to also hook into the OnMembersAddedAsync event, and send it there first. For more info, see Send welcome message to users.
In Teams, there's even a modified version of this now, specifically for Teams. I haven't looked into yet myself, but see Subscribe to conversation events for more.
Related to this, especially if the bot is installed into a Team or group chat, you need to do a bit of work in the OnMembersAddedAsync to check if the -bot- is the new member being added, and to make sure you only send 1 message, not multiple (otherwise it can end up sending this 'welcome' a few times). This is shown in the links I provided above. Baically member.Id != turnContext.Activity.Recipient.Id might need to change, based on what you're trying to do.
hope that helps
The question below is more for ideas, guidance and directions than coding assistance. Sorry if I am in the wrong place.
I have a console application which is checking for a specific file on my computer on a specific path. I want to get a notification when it detects the file on my phone.
What is the best way to get this done, if there is one.
I though about using facebook to simply send me a message but after a little research I found out that FB prevents people from sending private messages to avoid abusive usage of it.
Is there another easy way to do this?
Most phones have an email address like 2027710384#mobile.att.net. I have had success doing that in the past as a workaround.
Here is a list of provider addresses: http://www.sensiblesoftware.com/weblog/2011/02/28/cell-phone-email-addresses/
In my application I stored the user's phone number and provider. When sending a notification, I simply put the two together and send an email message.
Sending real SMS messages will always cost money because you have to pay for usage of telephony infrastructure.
Can anyone recommend a simple and reliable method of sending email notifications and possibly log files attachments from a C# program without requiring the installer or the user to configure the program by specifying server details and email addresses etc.
(Mainly because they won't know the details, but also because they could change)
The program will normally be run as a service of a Windows Server, but can be run on a client.
I tried connecting to our own mail server and sending a email to myself, but some ISP's are blocking Port 25 on all servers but their own, so that method isn't working reliably.
Tried sending email through gmail but that was less successful as the port they used was blocked by firewalls. Ditto webservices connecting on weird ports.
Trying to use the local smptservice but did not work either.
It would be nice, but not essential if it was not dependant on my own Internet connection/Servers. (Don't mind them being delayed, but prefer them not to get lost).
Are there any webservices on http/https that allow you to do this sort of thing?
TIA
try using cdosys
http://support.microsoft.com/kb/310212
http://www.eggheadcafe.com/articles/20030316.asp
May have discovered the solution.
Was catching up on my blog reading over the weekend and came across a recent entry on Coding Horror and the very first comment mentions PostMarkApp which seems to do everything I need (and almost everything I want, apart from attachments which they are considering).
I have made a simple IM client in both Python and C#, using a few different XMPP libraries for each.
They work very well as simple autoresponders, or trivial bots, but when I turn them into chat rooms (ie, a message gets reflected to many other JIDs), I suddenly start getting 503 service-unavailable responses from the Google talk server.
Where should I start looking to resolve this issue? Given that I have used several languages and libraries, I don't think this is a problem with my particular setup. I am using the various examples provided with the libraries.
Do you have all people you try to send messages to in your rooster?
Otherwise GTalk won't allow the message to be sent and instead return Error 503.
There was a pidgin bug tracker describing a similar problem:
Pidgin #4236
If you're sure you have all the JIDs in your rooster you should also check how manny messages are send in parallel. Google will limit the count of messages a single
JID is allowed to send in a specified period of time.
If you're looking to create actual chat rooms, why not rather get a jabber server to host those (following http://xmpp.org/extensions/xep-0045.html - ejabberd has these as default and there are plugins for most jabber servers to implement them), and then have your bot join that room (most clients support this - Google Talk doesn't unfortunately)?
I am doing sample application using windows mobile 5.0. When I receive an SMS, I want to check for certain criteria (eg: "Honda"). If I find that word, I will do my process, if not, it must be stored in the Inbox.
I wrote the code receiving SMS and searching the criteria, but I don't know how to put the SMS in the Inbox.
Anybody got an idea for doing this just give me hint I will do on my own.
Chris has written a sample application which is similar to what you are looking for. Mobile SMS Remote Read the blog post and try out the samepl code. Once you understand how it works then try your code. If you have any questions, post it here. Please avoid asking us to code the entire project for you.
The first step in catching received SMS text messages is to create an instance of the MessageInterceptor class that lives in the Microsoft.WindowsMobile.PocketOutlook assembly. You need to be careful about where you define this instance as if it goes out of scope and is garbage collected the message interception will stop.
MessageInterceptor interceptor =
new MessageInterceptor(InterceptionAction.NotifyAndDelete);
An InterceptionAction is passed to the constructor. This parameter defines the behavior that occurs when a message is received.
The two options are:
Notify - The message interceptor gets a chance to process the message but it is also received by the standard SMS inbox application.
NotifyAndDelete - The message does not become visible to the user and is only seen by the message interceptor.