[Freeswitch-users] Invalid Chat Interface problem

Seven Du dujinfang at gmail.com
Wed Sep 15 16:04:36 PDT 2010


Thank you. I tried 2 Xlites and understood how it works, will try to
get FSComm working someday.

On Mon, Sep 13, 2010 at 11:04 PM, Anthony Minessale
<anthony.minessale at gmail.com> wrote:
> 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|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@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/2.0
>   To: "sip+1000 at 192.168.7.2"<sip:sip+1000%40192.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      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/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>
>   From: "1002"<sip:1002 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>;tag=a5f1835f
>   To: "sip+1000" <sip:sip+1000 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...
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>



-- 
Blog: http://www.dujinfang.com
Proj:  http://www.freeswitch.org.cn



More information about the FreeSWITCH-users mailing list