<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<font face="Courier New, Courier, monospace">In fact, you answered
my question :-)<br>
The event was being fired once in mod_sms and another on chatplan.<br>
So the problem is that I was using the wrong application.<br>
I should be using "send" instead of "fire".<br>
Changing my chatplan to:<br>
<br>
</font>
<blockquote><font face="Courier New, Courier, monospace"><?xml
version="1.0" encoding="utf-8"?></font><br>
<font face="Courier New, Courier, monospace"><include></font><br>
<font face="Courier New, Courier, monospace"> <context
name="default"></font><br>
<font face="Courier New, Courier, monospace"> <extension
name="send"></font><br>
<font face="Courier New, Courier, monospace"> <condition
field="to" expression="^(.*)$"></font><br>
<font face="Courier New, Courier, monospace"> <action
application="send" /></font><br>
<font face="Courier New, Courier, monospace">
</condition></font><br>
<font face="Courier New, Courier, monospace">
</extension></font><br>
<font face="Courier New, Courier, monospace"> </context></font><br>
<font face="Courier New, Courier, monospace"></include></font><br>
</blockquote>
<font face="Courier New, Courier, monospace">fixed my problem.<br>
<br>
Thanks for your support Anthony.<br>
<br>
Regards,<br>
Leo<br>
<br>
<br>
</font>
<div class="moz-cite-prefix">On 08/08/2012 04:33 PM, Anthony
Minessale wrote:<br>
</div>
<blockquote
cite="mid:CAKbxfG_OYtS4Yn_cDC3a-k4jeJQGPspj7s08kiEPnLRcdTrzog@mail.gmail.com"
type="cite">
<pre wrap="">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 <a class="moz-txt-link-rfc2396E" href="mailto:leonardo@daitangroup.com"><leonardo@daitangroup.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">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|<a class="moz-txt-link-abbreviated" href="http://www.daitangroup.com">www.daitangroup.com</a>|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:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
Join Us At ClueCon - Aug 7-9, 2012
FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="CONTENT-TYPE" content="text/html;
charset=ISO-8859-1">
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 3.2 (Linux)">
<meta name="AUTHOR" content="Leonardo Pereira">
<meta name="CREATED" content="20110607;10262400">
<meta name="CHANGEDBY" content="Leonardo Pereira">
<meta name="CHANGED" content="20110607;10272000">
<style type="text/css">
        <!--
                @page { margin: 0.79in }
                P { margin-bottom: 0.08in }
                A:link { so-language: zxx }
        -->
        </style>
<p style="margin-bottom: 0in"><font color="#242d65">Leonardo N. S.
Pereira, </font><font color="#7f7f7f"><i>Software
Engineer</i></font><br>
<font color="#7f7f7f"><font size="2">T:</font></font><font
color="#000000"><font size="2">+55.19.3112-1200
ext. 1283</font></font><font color="#f7a429"><font size="2"><b>|</b></font></font><font
color="#7f7f7f"><font size="2">F:</font></font><font
color="#000000"><font size="2">+55.19.3207-1437</font></font><br>
<font color="#242d65"><font size="4"><b>Daitan</b></font></font><font
color="#457fba"><font size="4"><b>Group</b></font></font><font
color="#f7a429"><b>|</b></font><a
href="http://www.daitangroup.com/"><font color="#0000ff"><u>www.daitangroup.com</u></font></a><font
color="#f7a429"><b>|</b></font><font color="#7f7f7f"><i>Highly
Reliable Outsourcing. Value Added Services Worldwide.</i></font><br>
<font color="#242d65"><font size="2"><i>Privileged
and confidential. If this message has been received in
error, please
notify sender and delete it immediately.</i></font></font><br>
<font color="#242d65"><font size="2"><i>Conteúdo
confidencial. Se esta mensagem foi recebida por engano,
favor avisar
o remetente e apagá-la imediatamente.</i></font></font></p>
</div>
</body>
</html>