twin events MESSAGE (mod_gsmopen, sms_incoming)
Hi all I want to use the mod_event_socket inbound mode to handle incoming SMS, there's a chatplan (http://pastebin.freeswitch.com/19448), and with this simple script (http://pastebin.freeswitch.com/19451) for every SMS I see two identical events (Event-Sequence with the same numbers as the other corresponding Headers do not differ from each other), is this normal? -- Regards, royj
On Thu, Jul 5, 2012 at 10:57 AM, royj <royj@yandex.ru> wrote:
I want to use the mod_event_socket inbound mode to handle incoming SMS, there's a chatplan (http://pastebin.freeswitch.com/19448), and with this simple script (http://pastebin.freeswitch.com/19451) for every SMS I see two identical events (Event-Sequence with the same numbers as the other corresponding Headers do not differ from each other), is this normal?
Yes, that's normal, is mod_sms that's duplicating messages. If you unload mod_sms you'll have just one message in ESL. -giovanni -- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
I saw this too but I think if you don't fire or send in chatplan then the message should be only one? 发自我的 iPhone 在 2012-7-5,下午10:01,Giovanni Maruzzelli <gmaruzz@gmail.com> 写道:
On Thu, Jul 5, 2012 at 10:57 AM, royj <royj@yandex.ru> wrote:
I want to use the mod_event_socket inbound mode to handle incoming SMS, there's a chatplan (http://pastebin.freeswitch.com/19448), and with this simple script (http://pastebin.freeswitch.com/19451) for every SMS I see two identical events (Event-Sequence with the same numbers as the other corresponding Headers do not differ from each other), is this normal?
Yes, that's normal, is mod_sms that's duplicating messages. If you unload mod_sms you'll have just one message in ESL.
-giovanni
-- Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
On Thu, Jul 5, 2012 at 4:50 PM, dujinfang <dujinfang@gmail.com> wrote:
I saw this too but I think if you don't fire or send in chatplan then the message should be only one?
Ciao Seven! Yep, I believe the same (I just associate the chatplan with firing or sending, stupid me). Not tested, tough. -giovanni
发自我的 iPhone
在 2012-7-5,下午10:01,Giovanni Maruzzelli <gmaruzz@gmail.com> 写道:
On Thu, Jul 5, 2012 at 10:57 AM, royj <royj@yandex.ru> wrote:
I want to use the mod_event_socket inbound mode to handle incoming SMS, there's a chatplan (http://pastebin.freeswitch.com/19448), and with this simple script (http://pastebin.freeswitch.com/19451) for every SMS I see two identical events (Event-Sequence with the same numbers as the other corresponding Headers do not differ from each other), is this normal?
Yes, that's normal, is mod_sms that's duplicating messages. If you unload mod_sms you'll have just one message in ESL.
-giovanni
-- Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
Join Us At ClueCon - Aug 7-9, 2012
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
-- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
On Thu, Jul 5, 2012 at 5:07 PM, Giovanni Maruzzelli <gmaruzz@celliax.org>wrote:
On Thu, Jul 5, 2012 at 4:50 PM, dujinfang <dujinfang@gmail.com> wrote:
I saw this too but I think if you don't fire or send in chatplan then the message should be only one?
Ciao Seven! Yep, I believe the same (I just associate the chatplan with firing or sending, stupid me). Not tested, tough.
Confirmed, just tested. If you do not have send or fire in chatplan, no additional message will be on esl. -giovanni -- Sincerely, Giovanni Maruzzelli Cell : +39-347-2665618
Thank you for your answer Really, in my case there is no need to use mod_sms and chatplan, I unload mod_sms and have only one event MESSAGE (why I decided that I need to use mod_sms?) On Thu, 5 Jul 2012 17:13:10 +0200 Giovanni Maruzzelli <gmaruzz@celliax.org> wrote:
On Thu, Jul 5, 2012 at 5:07 PM, Giovanni Maruzzelli <gmaruzz@celliax.org>wrote:
On Thu, Jul 5, 2012 at 4:50 PM, dujinfang <dujinfang@gmail.com> wrote:
I saw this too but I think if you don't fire or send in chatplan then the message should be only one?
Ciao Seven! Yep, I believe the same (I just associate the chatplan with firing or sending, stupid me). Not tested, tough.
Confirmed, just tested. If you do not have send or fire in chatplan, no additional message will be on esl.
-giovanni
-- Sincerely,
Giovanni Maruzzelli Cell : +39-347-2665618
-- Regards, royj
participants (4)
-
dujinfang
-
Giovanni Maruzzelli
-
Giovanni Maruzzelli
-
royj