<p>Lab up 2 xlite both with presence agent mode for presence and make them chat.<br>
That is how you can find out the easiest.</p>
<p>I'm afraid I don't have the time to carefully explain it to you.<br>
</p>
<p><blockquote type="cite">On Sep 10, 2010 7:05 PM, "Seven Du" <<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>> wrote:<br><br>Thank you Anthony, but I still unclear.<br>
<br>
1)<br>
<br>
If I send chat sip|<a href="mailto:sip%2B1000@192.168.7.2">sip+1000@192.168.7.2</a>|<a href="mailto:1002@192.168.7.2">1002@192.168.7.2</a>|hello<br>
<br>
I get dp+sip+1000 on Xlite.<br>
<br>
If that's because I'm sending from the cli, then I tried with Xlite,<br>
by manually removed the dp+, I got<br>
<br>
2010-09-11 07:42:39.356292 [ERR] sofia_presence.c:125 Chat proto [sip]<br>
from [<a href="mailto:1002@192.168.7.2">1002@192.168.7.2</a>]<br>
to [1000]<br>
<font face="Arial" color=#000000 size=3>hello</font><br>
Invalid Profile NULL<br>
<br>
Then I tried<br>
<br>
<a href="mailto:sip%2B1000@192.168.7.2">sip+1000@192.168.7.2</a>@<a href="http://192.168.7.2" target="_blank">192.168.7.2</a> from Xlite, but it encoded @ into<br>
%40, so, message like this<br>
<br>
MESSAGE <a href="mailto:sip%3Asip%2B1000%2540192.168.7.2@192.168.7.2">sip:sip+1000%40192.168.7.2@192.168.7.2</a> SIP/2.0<br>
To: "<a href="mailto:sip%2B1000@192.168.7.2">sip+1000@192.168.7.2</a>"<<a href="mailto:sip%3Asip%2B1000%2540192.168.7.2@192.168.7.2">sip:sip+1000%40192.168.7.2@192.168.7.2</a>><br>
<br>
2) Event if it is one way with cli, when I get the message in FSComm<br>
it should fire an event, right? I would like to make a patch if it<br>
lacks this function.<br>
<br>
<br>
3) And you might ignored my last question in a long mail. If cannot<br>
use cli, how do I send chat from fscomm? via internal API? Here is my<br>
fscomm:<br>
<br>
freeswitch@internal> sofia status<br>
Name Type<br>
Data State<br>
=================================================================================================<br>
softphone profile<br>
<a href="http://sip:mod_sofia@192.168.7.2:12345" target="_blank">sip:mod_sofia@192.168.7.2:12345</a> RUNNING (0)<br>
softphone::1000 gateway<br>
<a href="mailto:sip%3A1000@192.168.7.2">sip:1000@192.168.7.2</a> REGED<br>
=================================================================================================<br>
1 profile 0 aliases<br>
<br>
<br>
<br>
<br>
Thank you.<br>
<br>
<br>
<br>
Full message below for question 1):<br>
<br>
------------------------------------------------------------------------<br>
recv 544 bytes from udp/[192.168.7.2]:55678 at 23:42:39.356342:<br>
------------------------------------------------------------------------<br>
MESSAGE <a href="mailto:sip%3Asip%2B1000@192.168.7.2">sip:sip+1000@192.168.7.2</a> SIP/2.0<br>
<p><font color="#500050"> Via: SIP/2.0/UDP</font></p>192.168.7.2:55678;branch=z9hG4bK-d8754z-1957e2366e3bed09-1---d8754z-;rport<br>
Max-Forwards: 70<br>
To: "sip+1000"<<a href="mailto:sip%3Asip%2B1000@192.168.7.2">sip:sip+1000@192.168.7.2</a>><br>
From: "1002"<<a href="mailto:sip%3A1002@192.168.7.2">sip:1002@192.168.7.2</a>>;tag=a5f1835f<br>
Call-ID: YjdiMDNkMGVkOGM5N2E0YzgyZWM0Y2EwYzlmZTgwMDI.<br>
<p><font color="#500050"> CSeq: 3 MESSAGE<br> Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,<br>SUBSCRIBE, I...</font></p> Content-Length: 52<br>
<br>
<font face="Arial" color=#000000 size=3>hello</font><br>
------------------------------------------------------------------------<br>
send 557 bytes to udp/[192.168.7.2]:55678 at 23:42:39.356568:<br>
<p><font color="#500050"> ------------------------------------------------------------------------<br> SIP/2.0 200 OK<br> Via...</font></p>192.168.7.2:55678;branch=z9hG4bK-d8754z-1957e2366e3bed09-1---d8754z-;rport=55678<br>
From: "1002"<<a href="mailto:sip%3A1002@192.168.7.2">sip:1002@192.168.7.2</a>>;tag=a5f1835f<br>
To: "sip+1000" <<a href="mailto:sip%3Asip%2B1000@192.168.7.2">sip:sip+1000@192.168.7.2</a>>;tag=DSKNNmcH6NrZc<br>
Call-ID: YjdiMDNkMGVkOGM5N2E0YzgyZWM0Y2EwYzlmZTgwMDI.<br>
<p><font color="#500050"> CSeq: 3 MESSAGE<br> User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-83aeda7 2010-09-09<br>23-40-14 -040...</font></p>2010-09-11 07:42:39.356292 [ERR] sofia_presence.c:125 Chat proto [sip]<br>
from [<a href="mailto:1002@192.168.7.2">1002@192.168.7.2</a>]<br>
to [1000]<br>
<font face="Arial" color=#000000 size=3>hello</font><br>
Invalid Profile NULL<br>
<p><font color="#500050"><br><br><br>On Sat, Sep 11, 2010 at 12:30 AM, Anthony Minessale<br><<a href="mailto:anthony.minessale@gmail.com">anthony.minessale@gmail.com</a>> wrote:<br>> you ar...</font></p></blockquote>
</p>