In fact, you answered my question :-)
The event was being fired once in mod_sms and another on chatplan.
So the problem is that I was using the wrong application.
I should be using "send" instead of "fire".
Changing my chatplan to:

<?xml version="1.0" encoding="utf-8"?>
<include>
  <context name="default">
    <extension name="send">
      <condition field="to" expression="^(.*)$">
        <action application="send" />
      </condition>
    </extension>
  </context>
</include>
fixed my problem.

Thanks for your support Anthony.

Regards,
Leo


On 08/08/2012 04:33 PM, Anthony Minessale wrote:
so is it firing once to hit mod sms and fire again when you run the fire app?
are you possibly looking for reply?


On Wed, Aug 8, 2012 at 2:17 PM, Leonardo <leonardo@daitangroup.com> wrote:
Hi.
I'm tracking the MESSAGE events on Freeswitch and I noticed that this event
is being fired twice for each incoming SIP MESSAGE request.
This is the chatplan I'm using:

    <?xml version="1.0" encoding="utf-8"?>
    <include>
      <context name="default">

        <extension name="fire">
          <condition field="to" expression="^(.*)$">
            <action application="fire" data=""/>
          </condition>
        </extension>

      </context>
    </include>


Does anyone know how to fix it?

Thanks in advance,
Leo



--

Leonardo N. S. Pereira, Software Engineer
T:+55.19.3112-1200 ext. 1283|F:+55.19.3207-1437
DaitanGroup|www.daitangroup.com|Highly Reliable Outsourcing. Value Added
Services Worldwide.
Privileged and confidential. If this message has been received in error,
please notify sender and delete it immediately.
Conteúdo confidencial. Se esta mensagem foi recebida por engano, favor
avisar o remetente e apagá-la imediatamente.


_________________________________________________________________________
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




--

Leonardo N. S. Pereira, Software Engineer
T:+55.19.3112-1200 ext. 1283|F:+55.19.3207-1437
DaitanGroup|www.daitangroup.com|Highly Reliable Outsourcing. Value Added Services Worldwide.
Privileged and confidential. If this message has been received in error, please notify sender and delete it immediately.
Conteúdo confidencial. Se esta mensagem foi recebida por engano, favor avisar o remetente e apagá-la imediatamente.