How to catch a chat message?

A forum for Skype For Asterisk users to ask questions and get advice from other users

Moderators: twilson, pete engler

How to catch a chat message?

Postby sysart » Wed Dec 08, 2010 4:48 am

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?
Kiev, Ukraine.
CentOS 6.1 | Asterisk 10.2.0
sysart
Newsterisk
 
Posts: 16
Joined: Mon Dec 21, 2009 7:54 am

Re: How to catch a chat message?

Postby malcolmd » Mon Dec 13, 2010 4:17 pm

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.
malcolmd
Moves Like Spencer
 
Posts: 3019
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US

Re: How to catch a chat message?

Postby sysart » Thu Dec 16, 2010 7:44 am

So, I can't catch a randomly incoming message? I understand that Asterisk is not a chat engine, but it still looks weird.
Kiev, Ukraine.
CentOS 6.1 | Asterisk 10.2.0
sysart
Newsterisk
 
Posts: 16
Joined: Mon Dec 21, 2009 7:54 am

Re: How to catch a chat message?

Postby malcolmd » Thu Dec 16, 2010 8:29 am

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.
malcolmd
Moves Like Spencer
 
Posts: 3019
Joined: Wed Aug 03, 2005 3:53 pm
Location: Huntsville, AL, US

Re: How to catch a chat message?

Postby pistenstuermer » Wed Jan 19, 2011 4:16 am

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?
pistenstuermer
Newsterisk
 
Posts: 1
Joined: Wed Jan 19, 2011 4:15 am


Return to Skype For Asterisk

Who is online

Users browsing this forum: No registered users and 3 guests

cron