[Freeswitch-users] Invalid Chat Interface problem
Seven Du
dujinfang at gmail.com
Fri Sep 10 08:26:58 PDT 2010
Hi,
Sorry for the long mail, I also posted on postbin, but copied here for
maybe easy inline comment.
http://pastebin.freeswitch.org/13876
I'm testing chat on FreeSWITCH Version 1.0.head (git-83aeda7
2010-09-09 23-40-14 -0400)
I have registered:
1000 FSComm
1001 zoiper
1002 XLite
All on my local computer 192.168.7.2(including FS)
Registrations:
=================================================================================================
Call-ID: NjdmNTJiOWY0NTZkMjQ0M2I2YWEzYWMwYjdhY2Q4OTQ.
User: 1001 at 192.168.7.2
Contact: "user"
<sip:1001 at 192.168.7.2:1053;rinstance=2cda6919665d068e;transport=UDP>
Agent: Zoiper rev.6739
Status: Registered(UDP)(unknown) EXP(2010-09-11 00:53:42) EXPSECS(6309)
Host: seven-macpro.local
IP: 192.168.7.2
Port: 1053
Auth-User: 1001
Auth-Realm: 192.168.7.2
MWI-Account: 1001 at 192.168.7.2
Call-ID: 9cfb8071-7ad9-43fc-8001-1f966fd7f259
User: 1000 at 192.168.7.2
Contact: "user" <sip:gw+1000 at 123.130.141.183:12345;transport=udp;gw=1000>
Agent: FreeSWITCH/FSComm
Status: Registered(UDP)(unknown) EXP(2010-09-11 00:54:05) EXPSECS(6332)
Host: seven-macpro.local
IP: 192.168.7.2
Port: 12345
Auth-User: 1000
Auth-Realm: 192.168.7.2
MWI-Account: 1000 at 192.168.7.2
Call-ID: NWZiM2Y4MjJhMTA2MmQ3ODhmMTkzYjE5OWY5NjZlYTM.
User: 1002 at 192.168.7.2
Contact: "1002" <sip:1002 at 192.168.7.2:31276;rinstance=bdbc6c7e92315718>
Agent: X-Lite release 1014k stamp 56015
Status: Registered(UDP)(unknown) EXP(2010-09-11 00:56:10) EXPSECS(6457)
Host: seven-macpro.local
IP: 192.168.7.2
Port: 31276
Auth-User: 1002
Auth-Realm: 192.168.7.2
MWI-Account: 1002 at 192.168.7.2
Total items returned: 3
=================================================================================================
On FS with chat sip|1000 at 192.168.7.2|1002 at 192.168.7.2|Hello
I can receive "Hello" from Xlite, but when I replied in Xlite, FS
showed error: Invalid Chat Interface [dp]!
freeswitch at seven-macpro.local> recv 767 bytes from
udp/[192.168.7.2]:31276 at 15:13:55.918803:
------------------------------------------------------------------------
MESSAGE sip:dp+1000 at 192.168.7.2 SIP/2.0
Via: SIP/2.0/UDP
192.168.7.2:31276;branch=z9hG4bK-d8754z-9683fe2e1d14a316-1---d8754z-;rport
Max-Forwards: 70
To: "1000"<sip:dp+1000 at 192.168.7.2>
From: "1002"<sip:1002 at 192.168.7.2>;tag=63fe670d
Call-ID: YThkMTE1YTRjMTM5ZDgxYTkzMGY0ZTA1OGI5M2JhM2Q.
CSeq: 6 MESSAGE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO
Content-Type: application/im-iscomposing+xml
User-Agent: X-Lite release 1014k stamp 56015
Content-Length: 259
<?xml version='1.0' encoding='UTF-8'?>
<isComposing xmlns='urn:ietf:params:xml:ns:im-iscomposing'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'>
<state>active</state>
<contenttype>goober</contenttype>
<refresh>60</refresh>
</isComposing>
------------------------------------------------------------------------
send 552 bytes to udp/[192.168.7.2]:31276 at 15:13:55.919054:
------------------------------------------------------------------------
SIP/2.0 200 OK
Via: SIP/2.0/UDP
192.168.7.2:31276;branch=z9hG4bK-d8754z-9683fe2e1d14a316-1---d8754z-;rport=31276
From: "1002"<sip:1002 at 192.168.7.2>;tag=63fe670d
To: "1000" <sip:dp+1000 at 192.168.7.2>;tag=66NHv1DgNeg8Q
Call-ID: YThkMTE1YTRjMTM5ZDgxYTkzMGY0ZTA1OGI5M2JhM2Q.
CSeq: 6 MESSAGE
User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-83aeda7 2010-09-09
23-40-14 -0400
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, precondition, path, replaces
Content-Length: 0
------------------------------------------------------------------------
recv 535 bytes from udp/[192.168.7.2]:31276 at 15:13:56.320013:
------------------------------------------------------------------------
MESSAGE sip:dp+1000 at 192.168.7.2 SIP/2.0
Via: SIP/2.0/UDP
192.168.7.2:31276;branch=z9hG4bK-d8754z-00c462263422c301-1---d8754z-;rport
Max-Forwards: 70
To: "1000"<sip:dp+1000 at 192.168.7.2>
From: "1002"<sip:1002 at 192.168.7.2>;tag=63fe670d
Call-ID: YThkMTE1YTRjMTM5ZDgxYTkzMGY0ZTA1OGI5M2JhM2Q.
CSeq: 7 MESSAGE
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE,
SUBSCRIBE, INFO
Content-Type: text/html
User-Agent: X-Lite release 1014k stamp 56015
Content-Length: 49
<font face="Arial" color=#000000 size=3>hi</font>
------------------------------------------------------------------------
send 552 bytes to udp/[192.168.7.2]:31276 at 15:13:56.320259:
------------------------------------------------------------------------
SIP/2.0 200 OK
Via: SIP/2.0/UDP
192.168.7.2:31276;branch=z9hG4bK-d8754z-00c462263422c301-1---d8754z-;rport=31276
From: "1002"<sip:1002 at 192.168.7.2>;tag=63fe670d
To: "1000" <sip:dp+1000 at 192.168.7.2>;tag=7FFayvyKjQ6tK
Call-ID: YThkMTE1YTRjMTM5ZDgxYTkzMGY0ZTA1OGI5M2JhM2Q.
CSeq: 7 MESSAGE
User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-83aeda7 2010-09-09
23-40-14 -0400
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, precondition, path, replaces
Content-Length: 0
------------------------------------------------------------------------
2010-09-10 23:13:56.319637 [ERR] switch_core.c:1966 Invalid Chat Interface [dp]!
>From FS chat to FSComm
freeswitch at seven-macpro.local> chat sip|1002 at 192.168.7.2|1000 at 192.168.7.2|Hello
Sent
send 686 bytes to udp/[123.130.141.183]:12345 at 15:18:55.741105:
------------------------------------------------------------------------
MESSAGE sip:gw+1000 at 123.130.141.183:12345;transport=udp;gw=1000 SIP/2.0
Via: SIP/2.0/UDP 192.168.7.2;rport;branch=z9hG4bKj2g6SyU2mH5gr
Max-Forwards: 70
From: "1002" <sip:dp+1002 at 192.168.7.2>;tag=911U1j0tc9j0a
To: "user" <sip:gw+1000 at 123.130.141.183:12345;transport=udp;gw=1000>
Call-ID: 919e6bf1-3791-122e-87b7-59ff4bd3df5a
CSeq: 1729185 MESSAGE
Contact: <sip:mod_sofia at 192.168.7.2:5060>
User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-83aeda7 2010-09-09
23-40-14 -0400
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
freeswitch at seven-macpro.local> Supported: timer, precondition, path, replaces
Content-Type: text/html
Content-Length: 5
Hello
------------------------------------------------------------------------
recv 507 bytes from udp/[123.130.141.183]:12345 at 15:18:55.744778:
------------------------------------------------------------------------
SIP/2.0 200 OK
Via: SIP/2.0/UDP
192.168.7.2;rport=55016;branch=z9hG4bKj2g6SyU2mH5gr;received=123.130.141.183
From: "1002" <sip:dp+1002 at 192.168.7.2>;tag=911U1j0tc9j0a
To: "user" <sip:gw+1000 at 123.130.141.183:12345;transport=udp;gw=1000>;tag=j2rmFj0jcK6ZH
Call-ID: 919e6bf1-3791-122e-87b7-59ff4bd3df5a
CSeq: 1729185 MESSAGE
User-Agent: FreeSWITCH/FSComm
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
REFER, NOTIFY
Supported: timer, precondition, path, replaces
Content-Length: 0
------------------------------------------------------------------------
Received Invalid Chat Interface [gw]! on FSComm:
freeswitch at internal> recv 686 bytes from udp/[123.130.141.183]:55016
at 15:17:43.873436:
------------------------------------------------------------------------
MESSAGE sip:gw+1000 at 123.130.141.183:12345;transport=udp;gw=1000 SIP/2.0
Via: SIP/2.0/UDP 192.168.7.2;rport;branch=z9hG4bKF74UmD9QXp2rN
Max-Forwards: 70
From: "1002" <sip:dp+1002 at 192.168.7.2>;tag=8r82ZQFQF0vDF
To: "user" <sip:gw+1000 at 123.130.141.183:12345;transport=udp;gw=1000>
Call-ID: 66c7e6ec-3791-122e-87b7-59ff4bd3df5a
CSeq: 1729184 MESSAGE
Contact: <sip:mod_sofia at 192.168.7.2:5060>
User-Agent: FreeSWITCH-mod_sofia/1.0.head-git-83aeda7 2010-09-09
23-40-14 -0400
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
REGISTER, REFER, NOTIFY, PUBLISH, SUBSCRIBE
Supported: timer, precondition, path, replaces
Content-Type: text/html
Content-Length: 5
Hello
------------------------------------------------------------------------
send 507 bytes to udp/[123.130.141.183]:55016 at 15:17:43.873704:
------------------------------------------------------------------------
SIP/2.0 200 OK
Via: SIP/2.0/UDP
192.168.7.2;rport=55016;branch=z9hG4bKF74UmD9QXp2rN;received=123.130.141.183
From: "1002" <sip:dp+1002 at 192.168.7.2>;tag=8r82ZQFQF0vDF
To: "user" <sip:gw+1000 at 123.130.141.183:12345;transport=udp;gw=1000>;tag=HSZUDQFFFagDp
Call-ID: 66c7e6ec-3791-122e-87b7-59ff4bd3df5a
CSeq: 1729184 MESSAGE
User-Agent: FreeSWITCH/FSComm
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, UPDATE, INFO,
REFER, NOTIFY
Supported: timer, precondition, path, replaces
Content-Length: 0
------------------------------------------------------------------------
2010-09-10 23:17:43.874485 [ERR] switch_core.c:1966 Invalid Chat Interface [gw]!
Also how to I chat back to XLite on FSComm?
freeswitch at internal> chat sip|1000 at 192.168.7.2|1002 at 192.168.7.2|hi
Error! Message Not Sent
freeswitch at internal> 2010-09-10 23:21:59.227334 [ERR]
sofia_presence.c:125 Chat proto [dp]
from [1000 at 192.168.7.2]
to [1002 at 192.168.7.2]
hi
Invalid Profile 192.168.7.2
Thanks.
--
Blog: http://www.dujinfang.com
Proj: http://www.freeswitch.org.cn
More information about the FreeSWITCH-users
mailing list