Thanks for your reply. I have read this page before. but the random emerging of the second verbose esl events is causing trouble. And I guess it may be a bug, or it should be predictable.<div>Before reporting to jira, I just want to check whether I have made any mistake.<br>
<div><br><br><div class="gmail_quote">On Wed, Dec 1, 2010 at 9:35 PM, Giovanni Maruzzelli <span dir="ltr">&lt;<a href="mailto:gmaruzz@gmail.com">gmaruzz@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<a href="http://wiki.freeswitch.org/wiki/Mod_skypopen_Skype_Endpoint_and_Trunk#MESSAGE_.28Chat.29" target="_blank">http://wiki.freeswitch.org/wiki/Mod_skypopen_Skype_Endpoint_and_Trunk#MESSAGE_.28Chat.29</a><br>
<div><div></div><div class="h5"><br>
On Wed, Dec 1, 2010 at 10:23 PM, xuyan yang &lt;<a href="mailto:xyangni@gmail.com">xyangni@gmail.com</a>&gt; wrote:<br>
&gt; hi,<br>
&gt; I am writing ESL program on FreeSWITCH Version 1.0.head (git-8825b6e<br>
&gt; 2010-11-28 17-15-39 -0500)<br>
&gt; I need to handle skype chat message with a inbound ESL connection. But there<br>
&gt; are 1 or 2 esl events received randomly for each message.<br>
&gt; the first short one is alway generated, but the second one is random. So<br>
&gt; when trying to filter according to UUID, nothing is caught in many cases.<br>
&gt; If I make filter based on skype ID, duplicated messages are often heard.<br>
&gt; I do not why the behavior of the second event is random.<br>
&gt; How should I setup the filter to get 1 and only 1 event for each chat<br>
&gt; message? Thanks.<br>
&gt;<br>
&gt; the first is a short one with the following header:<br>
&gt;  [Event-Name] = [MESSAGE]<br>
&gt;  [Event-Calling-Function] = [incoming_chatmessage]<br>
&gt;  [Event-Date-GMT] = [Wed, 01 Dec 2010 21:02:37 GMT]<br>
&gt;  [Core-UUID] = [7d858a18-fcb8-11df-8f82-835ae03a7500]<br>
&gt;  [Content-Length] = [1]<br>
&gt;  [subject] = [SIMPLE MESSAGE]<br>
&gt;  [FreeSWITCH-IPv4] = [192.168.0.3]<br>
&gt;  [hint] = [niqizhi]<br>
&gt;  [from] = [niqizhi]<br>
&gt;  [Event-Date-Local] = [2010-12-01 21:02:37]<br>
&gt;  [proto] = [skype]<br>
&gt;  [FreeSWITCH-IPv6] = [::1]<br>
&gt;  [id] = [5334]<br>
&gt;  [Event-Calling-File] = [mod_skypopen.c]<br>
&gt;  [Event-Date-Timestamp] = [1291237357051788]<br>
&gt;  [FreeSWITCH-Hostname] = [EYSRV]<br>
&gt;  [login] = [interface1]<br>
&gt;  [during-call] = [true]<br>
&gt;  [Event-Calling-Line-Number] = [2915]<br>
&gt;  [chatname] = [#niqizhi/$abcdericunion;631dd843d9b3eb1a]<br>
&gt; the second is much longer:<br>
&gt;  [Caller-Source] = [mod_skypopen]<br>
&gt;  [Event-Calling-Function] = [incoming_chatmessage]<br>
&gt;  [Event-Date-GMT] = [Wed, 01 Dec 2010 21:02:37 GMT]<br>
&gt;  [Answer-State] = [answered]<br>
&gt;  [FreeSWITCH-IPv4] = [192.168.0.3]<br>
&gt;  [Channel-State] = [CS_EXECUTE]<br>
&gt;  [Channel-Read-Codec-Bit-Rate] = [256000]<br>
&gt;  [FreeSWITCH-IPv6] = [::1]<br>
&gt;  [Unique-ID] = [412764c0-fd8e-11df-9019-835ae03a7500]<br>
&gt;  [Channel-Read-Codec-Rate] = [16000]<br>
&gt;  [Caller-Destination-Number] = [5655]<br>
&gt;  [Caller-Channel-Transfer-Time] = [0]<br>
&gt;  [Channel-Call-State] = [ACTIVE]<br>
&gt;  [Caller-Channel-Progress-Media-Time] = [0]<br>
&gt;  [FreeSWITCH-Hostname] = [EYSRV]<br>
&gt;  [Caller-Channel-Answered-Time] = [1291237326697085]<br>
&gt;  [login] = [interface1]<br>
&gt;  [during-call] = [true]<br>
&gt;  [Channel-Name] = [skypopen/interface1]<br>
&gt;  [Caller-Unique-ID] = [412764c0-fd8e-11df-9019-835ae03a7500]<br>
&gt;  [Core-UUID] = [7d858a18-fcb8-11df-8f82-835ae03a7500]<br>
&gt;  [Channel-Read-Codec-Name] = [L16]<br>
&gt;  [Caller-Channel-Name] = [skypopen/interface1]<br>
&gt;  [Caller-Caller-ID-Number] = [niqizhi]<br>
&gt;  [Event-Date-Timestamp] = [1291237357051788]<br>
&gt;  [Channel-State-Number] = [4]<br>
&gt;  [Event-Calling-Line-Number] = [2888]<br>
&gt;  [chatname] = [#niqizhi/$abcdericunion;631dd843d9b3eb1a]<br>
&gt;  [Event-Name] = [MESSAGE]<br>
&gt;  [Content-Length] = [1]<br>
&gt;  [subject] = [SIMPLE MESSAGE]<br>
&gt;  [Caller-Caller-ID-Name] = [niqizhi]<br>
&gt;  [from] = [niqizhi]<br>
&gt;  [Caller-Dialplan] = [XML]<br>
&gt;  [Caller-Channel-Hangup-Time] = [0]<br>
&gt;  [id] = [5334]<br>
&gt;  [Caller-Profile-Index] = [1]<br>
&gt;  [Caller-Direction] = [inbound]<br>
&gt;  [Caller-Username] = [skypopen]<br>
&gt;  [Channel-Write-Codec-Name] = [L16]<br>
&gt;  [Call-Direction] = [inbound]<br>
&gt;  [Caller-Screen-Bit] = [true]<br>
&gt;  [hint] = [niqizhi]<br>
&gt;  [Caller-Privacy-Hide-Number] = [false]<br>
&gt;  [Event-Date-Local] = [2010-12-01 21:02:37]<br>
&gt;  [proto] = [skype]<br>
&gt;  [Caller-Channel-Created-Time] = [1291237326468855]<br>
&gt;  [Event-Calling-File] = [mod_skypopen.c]<br>
&gt;  [Caller-Channel-Progress-Time] = [0]<br>
&gt;  [Caller-Privacy-Hide-Name] = [false]<br>
&gt;  [Channel-Write-Codec-Rate] = [16000]<br>
&gt;  [Caller-Context] = [default]<br>
&gt;  [Channel-Write-Codec-Bit-Rate] = [256000]<br>
&gt;  [Presence-Call-Direction] = [inbound]<br>
&gt;  [Caller-Profile-Created-Time] = [1291237326468855]<br>
</div></div>&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
--<br>
Sincerely,<br>
<br>
Giovanni Maruzzelli<br>
Cell : +39-347-2665618<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</blockquote></div><br></div></div>