[Freeswitch-users] Intercept chat message before forwarding it to receiver

Antonio Silva asilva at wirelessmundi.com
Thu Apr 30 17:24:32 MSD 2015


Hi,

When you intercept the message and send it again, what happen to the 
original message, is it sent to the destination as well?

I'm trying to implement a small dialplan where i want  to be able to 
allow only a certain users to chat between them, but i can't make FS to 
drop the original message...

I tried the action stop but no luck...

You can  check the  output of my test is here:

https://pastebin.freeswitch.org/24170


Thanks,
António


On 03/17/2015 09:58 PM, David Wafula wrote:
> OH cool. Chatplan it is.
> Thanks!
>
> On Tue, Mar 17, 2015 at 3:06 PM, Brian West <brian at freeswitch.org 
> <mailto:brian at freeswitch.org>> wrote:
>
>     You would use the Chat Plan to accomplish this, I'm pretty sure
>     examples are on confluence or wiki.
>
>     On Mon, Mar 16, 2015 at 6:29 PM, David Wafula <davidwaf at gmail.com
>     <mailto:davidwaf at gmail.com>> wrote:
>
>         Dear all,
>         We are implementing custom messaging system that is using
>         freeswitch.
>         I wish to intercept a chat message, prepend Country Code (or
>         whatever i want)  of the sender, then forward it to receiver.
>         How does one intercept a chat message ?
>
>         Regards,
>         -- 
>         David Wafula
>
>         _________________________________________________________________________
>         Professional FreeSWITCH Consulting Services:
>         consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>         http://www.freeswitchsolutions.com
>
>         Official FreeSWITCH Sites
>         http://www.freeswitch.org
>         http://confluence.freeswitch.org
>         http://www.cluecon.com
>
>         FreeSWITCH-users mailing list
>         FreeSWITCH-users at lists.freeswitch.org
>         <mailto:FreeSWITCH-users at lists.freeswitch.org>
>         http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>         UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>         http://www.freeswitch.org
>
>
>
>
>     -- 
>
>     */Brian West/*
>     brian at freeswitch.org <mailto:brian at freeswitch.org>
>
>
>     */Twitter: @FreeSWITCH , @briankwest/*
>     http://www.freeswitchbook.com
>     http://www.freeswitchcookbook.com
>
>     *T:*+19184209001 <tel:%2B19184209001> | *F:*+19184209002
>     <tel:%2B19184209002> | *M:*+1918424WEST (9378)
>     *iNUM:*+883 5100 1420 9001 | *ISN:*410*543 | *Skype:*briankwest
>
>
>     _________________________________________________________________________
>     Professional FreeSWITCH Consulting Services:
>     consulting at freeswitch.org <mailto:consulting at freeswitch.org>
>     http://www.freeswitchsolutions.com
>
>     Official FreeSWITCH Sites
>     http://www.freeswitch.org
>     http://confluence.freeswitch.org
>     http://www.cluecon.com
>
>     FreeSWITCH-users mailing list
>     FreeSWITCH-users at lists.freeswitch.org
>     <mailto:FreeSWITCH-users at lists.freeswitch.org>
>     http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>     UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>     http://www.freeswitch.org
>
>
>
>
> -- 
> David Wafula
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-- 
---
António Silva

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150430/5132c884/attachment-0001.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list