Hello! I was wondering if it would be possible to catch messages from dingaling. I saw it can print out messages into console when a user types in a message, but it doesn't understand it. I would like to catch that and do something (like initiate a call). I know you have to call you program via a dialplan, so I don't know how would it be really possible to invoke your java app when other events occur. Is it possible? Cheers, -- kriko
On Fri, Dec 19, 2008 at 10:12:49AM +0100, kriko wrote:
I was wondering if it would be possible to catch messages from dingaling. I saw it can print out messages into console when a user types in a message, but it doesn't understand it. I would like to catch that and do something (like initiate a call). I know you have to call you program via a dialplan, so I don't know how would it be really possible to invoke your java app when other events occur.
Listen to the event socket on port 8021 and register to receive the events you want to monitor, then issue api commands via the same socket interface to make the outbound call. See the wiki page about the event socket. I haven't looked at this in any detail, but it's clear from the wiki that this should be able to meet your needs.
That's seems the right this, thanks. But the dingaling is only returning this events: dingaling::login_success dingaling::login_failure dingaling::connected Is it possible in any way to catch text messages? On Fri, 19 Dec 2008 10:22:07 +0100, Jason White <jason@jasonjgw.net> wrote:
On Fri, Dec 19, 2008 at 10:12:49AM +0100, kriko wrote:
I was wondering if it would be possible to catch messages from dingaling. I saw it can print out messages into console when a user types in a message, but it doesn't understand it. I would like to catch that and do something (like initiate a call). I know you have to call you program via a dialplan, so I don't know how would it be really possible to invoke your java app when other events occur.
Listen to the event socket on port 8021 and register to receive the events you want to monitor, then issue api commands via the same socket interface to make the outbound call.
See the wiki page about the event socket.
I haven't looked at this in any detail, but it's clear from the wiki that this should be able to meet your needs.
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Porn - the reason you need a new hard drive.
participants (2)
-
Jason White
-
kriko