hi,<div><br></div><div>I am writing ESL program on FreeSWITCH Version 1.0.head (git-8825b6e 2010-11-28 17-15-39 -0500)</div><div>I need to handle skype chat message with a inbound ESL connection. But there are 1 or 2 esl events received randomly for each message.</div>
<div>the first short one is alway generated, but the second one is random. So when trying to filter according to UUID, nothing is caught in many cases.</div><div>If I make filter based on skype ID, duplicated messages are often heard.</div>
<div>I do not why the behavior of the second event is random.</div><div>How should I setup the filter to get 1 and only 1 event for each chat message? Thanks.</div><div><br></div><div><br></div><div>the first is a short one with the following header:</div>
<div><br></div><div><div> [Event-Name] = [MESSAGE]</div><div> [Event-Calling-Function] = [incoming_chatmessage]</div><div> [Event-Date-GMT] = [Wed, 01 Dec 2010 21:02:37 GMT]</div><div> [Core-UUID] = [7d858a18-fcb8-11df-8f82-835ae03a7500]</div>
<div> [Content-Length] = [1]</div><div> [subject] = [SIMPLE MESSAGE]</div><div> [FreeSWITCH-IPv4] = [192.168.0.3]</div><div> [hint] = [niqizhi]</div><div> [from] = [niqizhi]</div><div> [Event-Date-Local] = [2010-12-01 21:02:37]</div>
<div> [proto] = [skype]</div><div> [FreeSWITCH-IPv6] = [::1]</div><div> [id] = [5334]</div><div> [Event-Calling-File] = [mod_skypopen.c]</div><div> [Event-Date-Timestamp] = [1291237357051788]</div><div> [FreeSWITCH-Hostname] = [EYSRV]</div>
<div> [login] = [interface1]</div><div> [during-call] = [true]</div><div> [Event-Calling-Line-Number] = [2915]</div><div> [chatname] = [#niqizhi/$abcdericunion;631dd843d9b3eb1a]</div></div><div><br></div><div>the second is much longer:</div>
<div><br></div><div><div> [Caller-Source] = [mod_skypopen]</div><div> [Event-Calling-Function] = [incoming_chatmessage]</div><div> [Event-Date-GMT] = [Wed, 01 Dec 2010 21:02:37 GMT]</div><div> [Answer-State] = [answered]</div>
<div> [FreeSWITCH-IPv4] = [192.168.0.3]</div><div> [Channel-State] = [CS_EXECUTE]</div><div> [Channel-Read-Codec-Bit-Rate] = [256000]</div><div> [FreeSWITCH-IPv6] = [::1]</div><div> [Unique-ID] = [412764c0-fd8e-11df-9019-835ae03a7500]</div>
<div> [Channel-Read-Codec-Rate] = [16000]</div><div> [Caller-Destination-Number] = [5655]</div><div> [Caller-Channel-Transfer-Time] = [0]</div><div> [Channel-Call-State] = [ACTIVE]</div><div> [Caller-Channel-Progress-Media-Time] = [0]</div>
<div> [FreeSWITCH-Hostname] = [EYSRV]</div><div> [Caller-Channel-Answered-Time] = [1291237326697085]</div><div> [login] = [interface1]</div><div> [during-call] = [true]</div><div> [Channel-Name] = [skypopen/interface1]</div>
<div> [Caller-Unique-ID] = [412764c0-fd8e-11df-9019-835ae03a7500]</div><div> [Core-UUID] = [7d858a18-fcb8-11df-8f82-835ae03a7500]</div><div> [Channel-Read-Codec-Name] = [L16]</div><div> [Caller-Channel-Name] = [skypopen/interface1]</div>
<div> [Caller-Caller-ID-Number] = [niqizhi]</div><div> [Event-Date-Timestamp] = [1291237357051788]</div><div> [Channel-State-Number] = [4]</div><div> [Event-Calling-Line-Number] = [2888]</div><div> [chatname] = [#niqizhi/$abcdericunion;631dd843d9b3eb1a]</div>
<div> [Event-Name] = [MESSAGE]</div><div> [Content-Length] = [1]</div><div> [subject] = [SIMPLE MESSAGE]</div><div> [Caller-Caller-ID-Name] = [niqizhi]</div><div> [from] = [niqizhi]</div><div> [Caller-Dialplan] = [XML]</div>
<div> [Caller-Channel-Hangup-Time] = [0]</div><div> [id] = [5334]</div><div> [Caller-Profile-Index] = [1]</div><div> [Caller-Direction] = [inbound]</div><div> [Caller-Username] = [skypopen]</div><div> [Channel-Write-Codec-Name] = [L16]</div>
<div> [Call-Direction] = [inbound]</div><div> [Caller-Screen-Bit] = [true]</div><div> [hint] = [niqizhi]</div><div> [Caller-Privacy-Hide-Number] = [false]</div><div> [Event-Date-Local] = [2010-12-01 21:02:37]</div><div> [proto] = [skype]</div>
<div> [Caller-Channel-Created-Time] = [1291237326468855]</div><div> [Event-Calling-File] = [mod_skypopen.c]</div><div> [Caller-Channel-Progress-Time] = [0]</div><div> [Caller-Privacy-Hide-Name] = [false]</div><div> [Channel-Write-Codec-Rate] = [16000]</div>
<div> [Caller-Context] = [default]</div><div> [Channel-Write-Codec-Bit-Rate] = [256000]</div><div> [Presence-Call-Direction] = [inbound]</div><div> [Caller-Profile-Created-Time] = [1291237326468855]</div></div>