Page 1 of 1

How to catch a chat message?

PostPosted: Wed Dec 08, 2010 4:48 am
by sysart
We'd like to catch incoming text messages and answer them automatically.

But we don't know the time a message arrive and from who. So, I guess, we cannot use SKYPE_CHAT_RECEIVE (it requires timeout and skypeid of sender).

Is there any way to do it with no AMI-magic?

Re: How to catch a chat message?

PostPosted: Mon Dec 13, 2010 4:17 pm
by malcolmd
You can't use that function to wait on a line indefinitely; you have to define a timeout for it to wait before it moves to the next step in the dialplan. You can use the SkypeChatSend app to send a message to a caller.

Re: How to catch a chat message?

PostPosted: Thu Dec 16, 2010 7:44 am
by sysart
So, I can't catch a randomly incoming message? I understand that Asterisk is not a chat engine, but it still looks weird.

Re: How to catch a chat message?

PostPosted: Thu Dec 16, 2010 8:29 am
by malcolmd
No, you can't set that function to exist as its own thread inside of the dialplan. Those function calls have timeouts and wait that time while then going on in the dialplan.

Re: How to catch a chat message?

PostPosted: Wed Jan 19, 2011 4:16 am
by pistenstuermer
I have the same problem. I want to have an autoresponse sent to everyone who sends us a message, telling them we can't support chat and they should call us. Can this be achieved somehow?