[Freeswitch-users] Invalid Chat Interface problem

Anthony Minessale anthony.minessale at gmail.com
Mon Sep 13 08:04:56 PDT 2010


Lab up 2 xlite both with presence agent mode for presence and make them
chat.
That is how you can find out the easiest.

I'm afraid I don't have the time to carefully explain it to you.

On Sep 10, 2010 7:05 PM, "Seven Du" <dujinfang at gmail.com> wrote:

Thank you Anthony, but I still unclear.

1)

If I send chat sip|sip+1000 at 192.168.7.2 <sip%2B1000 at 192.168.7.2>|
1002 at 192.168.7.2|hello

I get dp+sip+1000 on Xlite.

If that's because I'm sending from the cli, then I tried with Xlite,
by manually removed the dp+, I got

2010-09-11 07:42:39.356292 [ERR] sofia_presence.c:125 Chat proto [sip]
from [1002 at 192.168.7.2]
to [1000]
<font face="Arial" color=#000000 size=3>hello</font>
Invalid Profile NULL

Then I tried

sip+1000 at 192.168.7.2 <sip%2B1000 at 192.168.7.2>@192.168.7.2 from Xlite, but it
encoded @ into
%40, so, message like this

 MESSAGE sip:sip+1000%40192.168.7.2 at 192.168.7.2<sip%3Asip%2B1000%2540192.168.7.2 at 192.168.7.2>SIP/2.0
  To: "sip+1000 at 192.168.7.2 <sip%2B1000 at 192.168.7.2>"<
sip:sip+1000%40192.168.7.2 at 192.168.7.2<sip%3Asip%2B1000%2540192.168.7.2 at 192.168.7.2>
>

2) Event if it is one way with cli, when I get the message in FSComm
it should fire an event, right? I would like to make a patch if it
lacks this function.


3) And you might ignored my last question in a long mail. If cannot
use cli, how do I send chat from fscomm? via internal API? Here is my
fscomm:

freeswitch at internal> sofia status
                    Name          Type
      Data      State
=================================================================================================
               softphone       profile
sip:mod_sofia at 192.168.7.2:12345      RUNNING (0)
         softphone::1000       gateway
sip:1000 at 192.168.7.2 <sip%3A1000 at 192.168.7.2>      REGED
=================================================================================================
1 profile 0 aliases




Thank you.



Full message below for question 1):

  ------------------------------------------------------------------------
recv 544 bytes from udp/[192.168.7.2]:55678 at 23:42:39.356342:
  ------------------------------------------------------------------------
  MESSAGE sip:sip+1000 at 192.168.7.2 <sip%3Asip%2B1000 at 192.168.7.2> SIP/2.0

Via: SIP/2.0/UDP
192.168.7.2:55678;branch=z9hG4bK-d8754z-1957e2366e3bed09-1---d8754z-;rport
  Max-Forwards: 70
  To: "sip+1000"<sip:sip+1000 at 192.168.7.2 <sip%3Asip%2B1000 at 192.168.7.2>>
  From: "1002"<sip:1002 at 192.168.7.2 <sip%3A1002 at 192.168.7.2>>;tag=a5f1835f
  Call-ID: YjdiMDNkMGVkOGM5N2E0YzgyZWM0Y2EwYzlmZTgwMDI.

CSeq: 3 MESSAGE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, I...
  Content-Length: 52

  <font face="Arial" color=#000000 size=3>hello</font>
  ------------------------------------------------------------------------
send 557 bytes to udp/[192.168.7.2]:55678 at 23:42:39.356568:

------------------------------------------------------------------------
SIP/2.0 200 OK
Via...
192.168.7.2:55678
;branch=z9hG4bK-d8754z-1957e2366e3bed09-1---d8754z-;rport=55678
  From: "1002"<sip:1002 at 192.168.7.2 <sip%3A1002 at 192.168.7.2>>;tag=a5f1835f
  To: "sip+1000" <sip:sip+1000 at 192.168.7.2 <sip%3Asip%2B1000 at 192.168.7.2>
>;tag=DSKNNmcH6NrZc
  Call-ID: YjdiMDNkMGVkOGM5N2E0YzgyZWM0Y2EwYzlmZTgwMDI.

CSeq: 3 MESSAGE
User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-83aeda7 2010-09-09
23-40-14 -040...
2010-09-11 07:42:39.356292 [ERR] sofia_presence.c:125 Chat proto [sip]
from [1002 at 192.168.7.2]
to [1000]
<font face="Arial" color=#000000 size=3>hello</font>
Invalid Profile NULL




On Sat, Sep 11, 2010 at 12:30 AM, Anthony Minessale
<anthony.minessale at gmail.com> wrote:
> you ar...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100913/ee90a514/attachment-0001.html 


More information about the FreeSWITCH-users mailing list