OK. I will try to make it clear.<div>In general, my test case is to forward skype call to a extention such as 5655. And then in the dialplan for 5655, continuously play some sound. During playing, you can send skype chat messages from the caller and check what esl events has been generated from it. According to my test, the raw type event is not generated for most of chat messages.</div>
<div><br></div><div>In details,</div><div><br></div><div>this is my skypeopen.conf.xml:</div><div><div><configuration name="skypopen.conf" description="Skypopen Configuration"></div><div> <global_settings></div>
<div> <param name="debug" value="8"/></div><div> <param name="dialplan" value="XML"/></div><div> <param name="context" value="default"/></div>
<div> <param name="destination" value="1000"/></div><div> <param name="skype_user" value="user1"/></div><div> <param name="report_incoming_chatmessages" value="true"/></div>
<div> <param name="silent_mode" value="false"/></div><div> <param name="write_silence_when_idle" value="true"/></div><div> </global_settings></div><div> <!-- one entry here per each skypopen interface --></div>
<div> <per_interface_settings></div><div> <interface id="1" name="interface1"></div><div> <param name="X11-display" value=":0.0"/></div><div> <param name="skype_user" value="xxxxxxxxx"/></div>
<div> <param name="destination" value="5655"/></div><div> </interface></div><div><br></div><div> </per_interface_settings></div><div></configuration></div></div><div>
<br></div><div><br></div><div><br></div><div>in dialplan for default context, add the following to describe extention 5655:</div><div><br></div><div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
<span style="white-space: pre-wrap; ">        </span><extension name="skype" break="on-false"></div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; "><span style="white-space: pre-wrap; ">                </span><condition field="destination_number" expression="^5655$"></div>
<div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; "> <action application="answer"/> </div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
<action application="sleep" data="1000"/></div><div><font class="Apple-style-span" face="arial, sans-serif"><span class="Apple-style-span" style="border-collapse: collapse; white-space: pre-wrap;">                                <action application="playback" data="ivr/ivr-sample_submenu.wav"/>
                                <action application="playback" data="ivr/ivr-sample_submenu.wav"/>
                                <action application="playback" data="ivr/ivr-sample_submenu.wav"/>
                                <action application="playback" data="ivr/ivr-sample_submenu.wav"/>
                                <action application="playback" data="ivr/ivr-sample_submenu.wav"/>
                                <action application="playback" data="ivr/ivr-sample_submenu.wav"/>
                                <action application="playback" data="ivr/ivr-sample_submenu.wav"/>
                                <action application="playback" data="ivr/ivr-sample_submenu.wav"/>
                                <action application="playback" data="ivr/ivr-sample_submenu.wav"/>
                                <action application="playback" data="ivr/ivr-sample_submenu.wav"/>
                                <action application="playback" data="ivr/ivr-sample_submenu.wav"/>
                                <action application="playback" data="ivr/ivr-sample_submenu.wav"/>
                                <action application="playback" data="ivr/ivr-sample_submenu.wav"/>
                                <action application="playback" data="ivr/ivr-sample_submenu.wav"/>
                                <action application="playback" data="ivr/ivr-sample_submenu.wav"/>
                                <action application="playback" data="ivr/ivr-sample_submenu.wav"/>
                                <action application="playback" data="ivr/ivr-sample_submenu.wav"/>
                                <action application="playback" data="ivr/ivr-sample_submenu.wav"/> </span></font></div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; "> <span style="white-space: pre-wrap; ">        </span></condition></div>
<div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; "><span style="white-space: pre-wrap; ">        </span></extension></div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; ">
<br></div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; "><span class="Apple-style-span" style="font-size: small; white-space: pre-wrap; ">ivr-sample_submenu.wav is a sound file in en/us/callie/ivr/8000, but it can be replaced by any other wav files.</span></div>
</div><div style="border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px; "><span class="Apple-style-span" style="font-size: small; white-space: pre-wrap; "><br></span></div><div style="border-collapse: collapse; font-family: arial, sans-serif; ">
<span class="Apple-style-span" style="white-space: pre-wrap;">after setup, make a call to your skype user xxxxxxxxx. </span></div><div style="border-collapse: collapse; font-family: arial, sans-serif; "><span class="Apple-style-span" style="white-space: pre-wrap;">in the mean time use fs_cli to connect FS and execute /event plain MESSAGE to listen esl events.</span></div>
<div style="border-collapse: collapse; font-family: arial, sans-serif; "><span class="Apple-style-span" style="white-space: pre-wrap;">sent any chat messages from caller, then you are very likely to find only the short version events.</span></div>
<div><br></div><div><br><br><div class="gmail_quote">On Thu, Dec 2, 2010 at 8:50 AM, Giovanni Maruzzelli <span dir="ltr"><<a href="mailto:gmaruzz@celliax.org">gmaruzz@celliax.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Xuyan,<br>
<br>
please.<br>
<br>
Can you give a clear defined procedure to reproduce the problem?<br>
<br>
Please, take the time to write it, complete of all relevant info<br>
(dialplan, script, etc etc) so I can reproduce it from a freshly<br>
installed FreeSWITCH.<br>
<br>
If you don't give this information I cannot fix the problem. And I<br>
cannot neither read your mind, nor finding the time to try every<br>
possible combination.<br>
<br>
Please, post something someone can cut and paste and a clear step by<br>
step procedure to replicate.<br>
<font color="#888888"><br>
-giovanni<br>
</font><div><div></div><div class="h5"><br>
On Thu, Dec 2, 2010 at 4:45 AM, xuyan yang <<a href="mailto:xyangni@gmail.com">xyangni@gmail.com</a>> wrote:<br>
> I tried it again. When the line is parked and idle. the raw events can<br>
> always be generated.<br>
> but if the line is kept busy such as the following case this events is trend<br>
> to have problem<br>
> <extension name="skype-in" break="on-false"><br>
> <condition field="destination_number" expression="^5655$"><br>
> <action application="answer"/><br>
> <action application="sleep" data="1000"/><br>
> <!--<action application="park"/> --><br>
> <action application="playback" data="test.wav"/><br>
> <action application="playback" data="test.wav"/><br>
> <action application="playback" data="test.wav"/><br>
> <action application="playback"<br>
> data="test.wav"/><br>
> <action application="playback" data="test.wav"/><br>
> <action application="playback" data="test.wav"/><br>
> <action application="playback"<br>
> data="test.wav"/><br>
> <action application="playback" data="test.wav"/><br>
> <action application="playback" data="test.wav"/><br>
> </condition><br>
> </extension><br>
><br>
><br>
> On Thu, Dec 2, 2010 at 2:01 AM, Giovanni Maruzzelli <<a href="mailto:gmaruzz@celliax.org">gmaruzz@celliax.org</a>><br>
> wrote:<br>
>><br>
>> I repeat, if you subscribe to "message" events you get only those.<br>
>> Also, how I can replicate your problem?<br>
>> I've tested events and I had no problem at all with spurious or<br>
>> unreliable events in mod-skypopen.<br>
>> Please, can you indicate a detailed way to reproduce your problem?<br>
>> -giovanni<br>
>><br>
>> On 12/2/10, xuyan yang <<a href="mailto:xyangni@gmail.com">xyangni@gmail.com</a>> wrote:<br>
>> > I got it. Then the problem should be the unstable behavior of raw events<br>
>> > which has about 25% chances of being missed.<br>
>> ><br>
>> > Fortunately, I have found a way to avoid this issue. Ignore all message<br>
>> > events which contains Unique-ID field.<br>
>> ><br>
>> > On Wed, Dec 1, 2010 at 11:18 PM, Giovanni Maruzzelli<br>
>> > <<a href="mailto:gmaruzz@celliax.org">gmaruzz@celliax.org</a>>wrote:<br>
>> ><br>
>> >> On Thu, Dec 2, 2010 at 12:15 AM, Giovanni Maruzzelli<br>
>> >> <<a href="mailto:gmaruzz@celliax.org">gmaruzz@celliax.org</a>> wrote:<br>
>> >> > If you subscribe only to "MESSAGE" kind of events, you'll get only<br>
>> >> > those.<br>
>> >> ><br>
>> >> > The other events are "raw" events, that other users have requested<br>
>> >> > for<br>
>> >> > other purposes.<br>
>> >><br>
>> >> or at least that is the expected behavior, please let me know if I<br>
>> >> introduced some regression in integrating that "raw event" thingy.<br>
>> >><br>
>> >> -giovanni<br>
>> >><br>
>> >> ><br>
>> >> > -giovanni<br>
>> >> ><br>
>> >> > On Wed, Dec 1, 2010 at 11:35 PM, xuyan yang <<a href="mailto:xyangni@gmail.com">xyangni@gmail.com</a>><br>
>> >> > wrote:<br>
>> >> >> Thanks for your reply. I have read this page before. but the random<br>
>> >> emerging<br>
>> >> >> of the second verbose esl events is causing trouble. And I guess it<br>
>> >> >> may<br>
>> >> be a<br>
>> >> >> bug, or it should be predictable.<br>
>> >> >> Before reporting to jira, I just want to check whether I have made<br>
>> >> >> any<br>
>> >> >> mistake.<br>
>> >> >><br>
>> >> >><br>
>> >> >> On Wed, Dec 1, 2010 at 9:35 PM, Giovanni Maruzzelli<br>
>> >> >> <<a href="mailto:gmaruzz@gmail.com">gmaruzz@gmail.com</a>><br>
>> >> >> wrote:<br>
>> >> >>><br>
>> >> >>><br>
>> >> >>><br>
>> >><br>
>> >> <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>
>> >> >>><br>
>> >> >>> On Wed, Dec 1, 2010 at 10:23 PM, xuyan yang <<a href="mailto:xyangni@gmail.com">xyangni@gmail.com</a>><br>
>> >> >>> wrote:<br>
>> >> >>> > hi,<br>
>> >> >>> > I am writing ESL program on FreeSWITCH Version 1.0.head<br>
>> >> >>> > (git-8825b6e<br>
>> >> >>> > 2010-11-28 17-15-39 -0500)<br>
>> >> >>> > I need to handle skype chat message with a inbound ESL<br>
>> >> >>> > connection.<br>
>> >> But<br>
>> >> >>> > there<br>
>> >> >>> > are 1 or 2 esl events received randomly for each message.<br>
>> >> >>> > the first short one is alway generated, but the second one is<br>
>> >> >>> > random.<br>
>> >> So<br>
>> >> >>> > when trying to filter according to UUID, nothing is caught in<br>
>> >> >>> > many<br>
>> >> >>> > cases.<br>
>> >> >>> > If I make filter based on skype ID, duplicated messages are often<br>
>> >> heard.<br>
>> >> >>> > I do not why the behavior of the second event is random.<br>
>> >> >>> > How should I setup the filter to get 1 and only 1 event for each<br>
>> >> >>> > chat<br>
>> >> >>> > message? Thanks.<br>
>> >> >>> ><br>
>> >> >>> > the first is a short one with the following header:<br>
>> >> >>> > [Event-Name] = [MESSAGE]<br>
>> >> >>> > [Event-Calling-Function] = [incoming_chatmessage]<br>
>> >> >>> > [Event-Date-GMT] = [Wed, 01 Dec 2010 21:02:37 GMT]<br>
>> >> >>> > [Core-UUID] = [7d858a18-fcb8-11df-8f82-835ae03a7500]<br>
>> >> >>> > [Content-Length] = [1]<br>
>> >> >>> > [subject] = [SIMPLE MESSAGE]<br>
>> >> >>> > [FreeSWITCH-IPv4] = [192.168.0.3]<br>
>> >> >>> > [hint] = [niqizhi]<br>
>> >> >>> > [from] = [niqizhi]<br>
>> >> >>> > [Event-Date-Local] = [2010-12-01 21:02:37]<br>
>> >> >>> > [proto] = [skype]<br>
>> >> >>> > [FreeSWITCH-IPv6] = [::1]<br>
>> >> >>> > [id] = [5334]<br>
>> >> >>> > [Event-Calling-File] = [mod_skypopen.c]<br>
>> >> >>> > [Event-Date-Timestamp] = [1291237357051788]<br>
>> >> >>> > [FreeSWITCH-Hostname] = [EYSRV]<br>
>> >> >>> > [login] = [interface1]<br>
>> >> >>> > [during-call] = [true]<br>
>> >> >>> > [Event-Calling-Line-Number] = [2915]<br>
>> >> >>> > [chatname] = [#niqizhi/$abcdericunion;631dd843d9b3eb1a]<br>
>> >> >>> > the second is much longer:<br>
>> >> >>> > [Caller-Source] = [mod_skypopen]<br>
>> >> >>> > [Event-Calling-Function] = [incoming_chatmessage]<br>
>> >> >>> > [Event-Date-GMT] = [Wed, 01 Dec 2010 21:02:37 GMT]<br>
>> >> >>> > [Answer-State] = [answered]<br>
>> >> >>> > [FreeSWITCH-IPv4] = [192.168.0.3]<br>
>> >> >>> > [Channel-State] = [CS_EXECUTE]<br>
>> >> >>> > [Channel-Read-Codec-Bit-Rate] = [256000]<br>
>> >> >>> > [FreeSWITCH-IPv6] = [::1]<br>
>> >> >>> > [Unique-ID] = [412764c0-fd8e-11df-9019-835ae03a7500]<br>
>> >> >>> > [Channel-Read-Codec-Rate] = [16000]<br>
>> >> >>> > [Caller-Destination-Number] = [5655]<br>
>> >> >>> > [Caller-Channel-Transfer-Time] = [0]<br>
>> >> >>> > [Channel-Call-State] = [ACTIVE]<br>
>> >> >>> > [Caller-Channel-Progress-Media-Time] = [0]<br>
>> >> >>> > [FreeSWITCH-Hostname] = [EYSRV]<br>
>> >> >>> > [Caller-Channel-Answered-Time] = [1291237326697085]<br>
>> >> >>> > [login] = [interface1]<br>
>> >> >>> > [during-call] = [true]<br>
>> >> >>> > [Channel-Name] = [skypopen/interface1]<br>
>> >> >>> > [Caller-Unique-ID] = [412764c0-fd8e-11df-9019-835ae03a7500]<br>
>> >> >>> > [Core-UUID] = [7d858a18-fcb8-11df-8f82-835ae03a7500]<br>
>> >> >>> > [Channel-Read-Codec-Name] = [L16]<br>
>> >> >>> > [Caller-Channel-Name] = [skypopen/interface1]<br>
>> >> >>> > [Caller-Caller-ID-Number] = [niqizhi]<br>
>> >> >>> > [Event-Date-Timestamp] = [1291237357051788]<br>
>> >> >>> > [Channel-State-Number] = [4]<br>
>> >> >>> > [Event-Calling-Line-Number] = [2888]<br>
>> >> >>> > [chatname] = [#niqizhi/$abcdericunion;631dd843d9b3eb1a]<br>
>> >> >>> > [Event-Name] = [MESSAGE]<br>
>> >> >>> > [Content-Length] = [1]<br>
>> >> >>> > [subject] = [SIMPLE MESSAGE]<br>
>> >> >>> > [Caller-Caller-ID-Name] = [niqizhi]<br>
>> >> >>> > [from] = [niqizhi]<br>
>> >> >>> > [Caller-Dialplan] = [XML]<br>
>> >> >>> > [Caller-Channel-Hangup-Time] = [0]<br>
>> >> >>> > [id] = [5334]<br>
>> >> >>> > [Caller-Profile-Index] = [1]<br>
>> >> >>> > [Caller-Direction] = [inbound]<br>
>> >> >>> > [Caller-Username] = [skypopen]<br>
>> >> >>> > [Channel-Write-Codec-Name] = [L16]<br>
>> >> >>> > [Call-Direction] = [inbound]<br>
>> >> >>> > [Caller-Screen-Bit] = [true]<br>
>> >> >>> > [hint] = [niqizhi]<br>
>> >> >>> > [Caller-Privacy-Hide-Number] = [false]<br>
>> >> >>> > [Event-Date-Local] = [2010-12-01 21:02:37]<br>
>> >> >>> > [proto] = [skype]<br>
>> >> >>> > [Caller-Channel-Created-Time] = [1291237326468855]<br>
>> >> >>> > [Event-Calling-File] = [mod_skypopen.c]<br>
>> >> >>> > [Caller-Channel-Progress-Time] = [0]<br>
>> >> >>> > [Caller-Privacy-Hide-Name] = [false]<br>
>> >> >>> > [Channel-Write-Codec-Rate] = [16000]<br>
>> >> >>> > [Caller-Context] = [default]<br>
>> >> >>> > [Channel-Write-Codec-Bit-Rate] = [256000]<br>
>> >> >>> > [Presence-Call-Direction] = [inbound]<br>
>> >> >>> > [Caller-Profile-Created-Time] = [1291237326468855]<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:<br>
>> >> <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>
>> >> >>> ><br>
>> >> >>> ><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:<br>
>> >> <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>
>> >> >><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:<br>
>> >> <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>
>> >> >><br>
>> >> >><br>
>> >> ><br>
>> >> ><br>
>> >> ><br>
>> >> > --<br>
>> >> > Sincerely,<br>
>> >> ><br>
>> >> > Giovanni Maruzzelli<br>
>> >> > Cell : +39-347-2665618<br>
>> >> ><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>
>> >><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>
>> >><br>
>> ><br>
>><br>
>> --<br>
>> Sent from my mobile device<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>
><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>
><br>
><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>
</div></div></blockquote></div><br></div>