thank you Michael ! i attach complete trace text, see below, if you look at trace text with care, then you will find out first UAC1 sends MESSAGE packet(text/plain) to UAS, then UAC1 receives 200 OK packet from UAS, and next UAS sends MESSAGE packet(text/html) to UAC2, but UAC2 send to UAS "415 Unsupported Media Type" packet. recv 499 bytes from udp/[192.168.1.101]:5060 at 04:27:55.343750: ------------------------------------------------------------------------ REGISTER sip:192.168.1.100:5060;transport=udp SIP/2.0 Max-Forwards: 70 Content-Length: 0 Via: SIP/2.0/UDP 192.168.1.101:5060;branch=z9hG4bKb529a8fc8;rport Call-ID: 9539e4f3fce85e532890d3459d9011df@192.168.1.101 From: <sip:1001@192.168.1.100:5060>;tag=311bf177b247002 To: <sip:1001@192.168.1.100:5060> CSeq: 2 REGISTER Contact: <sip:1001@192.168.1.101:5060;transport=udp>;expires=3600 Expires: 3600 User-Agent: Stonehenge IP255-S 1.30.191 ------------------------------------------------------------------------ send 633 bytes to udp/[192.168.1.101]:5060 at 04:27:55.359375: ------------------------------------------------------------------------ SIP/2.0 200 OK Via: SIP/2.0/UDP 192.168.1.101:5060;branch=z9hG4bKb529a8fc8;rport=5060 From: <sip:1001@192.168.1.100:5060>;tag=311bf177b247002 To: <sip:1001@192.168.1.100:5060>;tag=BK32BSZ1BQajg Call-ID: 9539e4f3fce85e532890d3459d9011df@192.168.1.101 CSeq: 2 REGISTER Contact: <sip:1001@192.168.1.101:5060;transport=udp>;expires=3600 User-Agent: FreeSWITCH-mod_sofia/1.0.rc1-7946 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Supported: 100rel, precondition, timer Content-Length: 0 ------------------------------------------------------------------------ send 748 bytes to udp/[192.168.1.101]:5060 at 04:27:55.437500: ------------------------------------------------------------------------ NOTIFY sip:1001@192.168.1.101:5060;transport=udp SIP/2.0 Via: SIP/2.0/UDP 192.168.1.100;rport;branch=z9hG4bKBK32BSBrDmrrr Max-Forwards: 70 From: <sip:1001@192.168.1.100 <sip%3A1001@192.168.1.100>
;tag=cvvUDmg58Z04B To: <sip:1001@192.168.1.100 <sip%3A1001@192.168.1.100>> Call-ID: 53965958-8610-122b-2780-39a48cb53b8d CSeq: 98041701 NOTIFY Contact: <sip:mod_sofia@192.168.1.100:5060> User-Agent: FreeSWITCH-mod_sofia/1.0.rc1-7946 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Supported: 100rel, precondition, timer Event: message-summary Subscription-State: terminated;timeout Content-Type: application/simple-message-summary Content-Length: 66
Messages-Waiting: no Message-Account: sip:1001@192.168.1.100 <sip%3A1001@192.168.1.100> ------------------------------------------------------------------------ recv 332 bytes from udp/[192.168.1.101]:5060 at 04:27:55.468750: ------------------------------------------------------------------------ SIP/2.0 200 OK Call-ID: 53965958-8610-122b-2780-39a48cb53b8d CSeq: 98041701 NOTIFY From: <sip:1001@192.168.1.100 <sip%3A1001@192.168.1.100>
;tag=cvvUDmg58Z04B To: <sip:1001@192.168.1.100 <sip%3A1001@192.168.1.100> ;tag=2409b95c1ad0c8b Via: SIP/2.0/UDP 192.168.1.100;branch=z9hG4bKBK32BSBrDmrrr Content-Length: 0 Supported: replaces User-Agent: Stonehenge IP255-S 1.30.191
------------------------------------------------------------------------ recv 442 bytes from udp/[192.168.1.100]:5090 at 04:28:05.062500: ------------------------------------------------------------------------ REGISTER sip:1000@192.168.1.100 <sip%3A1000@192.168.1.100> SIP/2.0 Via: SIP/2.0/UDP 192.168.1.100:5090 ;rport;branch=z9hG4bKPj074ae6c153be4da99648866cb14c7f35 Max-Forwards: 70 From: <sip:1000@192.168.1.100 <sip%3A1000@192.168.1.100>
;tag=104d147469344fd587b5b4c5fdd3b988 To: <sip:1000@192.168.1.100 <sip%3A1000@192.168.1.100>> Call-ID: 1804425e44b44ae28568716bef287f67 CSeq: 18509 REGISTER User-Agent: PJSUA v0.8.0/win32 Contact: <sip:1000@192.168.1.100:5090;transport=UDP> Expires: 300 Content-Length: 0
------------------------------------------------------------------------ send 597 bytes to udp/[192.168.1.100]:5090 at 04:28:05.078125: ------------------------------------------------------------------------ SIP/2.0 200 OK Via: SIP/2.0/UDP 192.168.1.100:5090 ;rport=5090;branch=z9hG4bKPj074ae6c153be4da99648866cb14c7f35 From: <sip:1000@192.168.1.100 <sip%3A1000@192.168.1.100>
;tag=104d147469344fd587b5b4c5fdd3b988 To: <sip:1000@192.168.1.100 <sip%3A1000@192.168.1.100>>;tag=D5NmFF1858pQQ Call-ID: 1804425e44b44ae28568716bef287f67 CSeq: 18509 REGISTER Contact: "user" <sip:1000@192.168.1.100:5090;transport=UDP>;expires=300 User-Agent: FreeSWITCH-mod_sofia/1.0.rc1-7946 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Supported: 100rel, precondition, timer Content-Length: 0
------------------------------------------------------------------------ recv 791 bytes from udp/[192.168.1.100]:5090 at 04:28:12.453125: ------------------------------------------------------------------------ MESSAGE sip:1001@192.168.1.100 <sip%3A1001@192.168.1.100> SIP/2.0 Via: SIP/2.0/UDP 192.168.1.100:5090 ;rport;branch=z9hG4bKPjee6b583cd8a64cbcb22764b2545a25d5 Max-Forwards: 70 From: <sip:1000@192.168.1.100 <sip%3A1000@192.168.1.100>
;tag=1cce6dad50064d8b8068abbf4991df8d To: <sip:1001@192.168.1.100 <sip%3A1001@192.168.1.100>> Call-ID: e315ed84ada2488c8752a2156fdfe340 CSeq: 26500 MESSAGE Accept: text/plain, application/im-iscomposing+xml Contact: <sip:1000@192.168.1.100:5090;transport=UDP> User-Agent: PJSUA v0.8.0/win32 Content-Type: application/im-iscomposing+xml Content-Length: 264
<?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" xsi:schemaLocation="urn:ietf:params:xml:ns:im-composing iscomposing.xsd"> <state>active</state> </isComposing> ------------------------------------------------------------------------ send 522 bytes to udp/[192.168.1.100]:5090 at 04:28:12.453125: ------------------------------------------------------------------------ SIP/2.0 200 OK Via: SIP/2.0/UDP 192.168.1.100:5090 ;rport=5090;branch=z9hG4bKPjee6b583cd8a64cbcb22764b2545a25d5 From: <sip:1000@192.168.1.100 <sip%3A1000@192.168.1.100>
;tag=1cce6dad50064d8b8068abbf4991df8d To: <sip:1001@192.168.1.100 <sip%3A1001@192.168.1.100>>;tag=FQ85j52F0t3ve Call-ID: e315ed84ada2488c8752a2156fdfe340 CSeq: 26500 MESSAGE User-Agent: FreeSWITCH-mod_sofia/1.0.rc1-7946 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Supported: 100rel, precondition, timer Content-Length: 0
------------------------------------------------------------------------ recv 512 bytes from udp/[192.168.1.100]:5090 at 04:28:14.234375: ------------------------------------------------------------------------ MESSAGE sip:1001@192.168.1.100 <sip%3A1001@192.168.1.100> SIP/2.0 Via: SIP/2.0/UDP 192.168.1.100:5090 ;rport;branch=z9hG4bKPje4a904727e014dd8ae1923a0a5f49234 Max-Forwards: 70 From: <sip:1000@192.168.1.100 <sip%3A1000@192.168.1.100>
;tag=fecebd85567b475b9c77e2ce8fc9ed0f To: <sip:1001@192.168.1.100 <sip%3A1001@192.168.1.100>> Call-ID: 392bfe46cfbd49189fffda7059b8f6af CSeq: 15724 MESSAGE Accept: text/plain, application/im-iscomposing+xml Contact: <sip:1000@192.168.1.100:5090;transport=UDP> User-Agent: PJSUA v0.8.0/win32 Content-Type: text/plain Content-Length: 5
re hi ------------------------------------------------------------------------ send 522 bytes to udp/[192.168.1.100]:5090 at 04:28:14.250000: ------------------------------------------------------------------------ SIP/2.0 200 OK Via: SIP/2.0/UDP 192.168.1.100:5090 ;rport=5090;branch=z9hG4bKPje4a904727e014dd8ae1923a0a5f49234 From: <sip:1000@192.168.1.100 <sip%3A1000@192.168.1.100>
;tag=fecebd85567b475b9c77e2ce8fc9ed0f To: <sip:1001@192.168.1.100 <sip%3A1001@192.168.1.100>>;tag=g01ym0KKX3SFa Call-ID: 392bfe46cfbd49189fffda7059b8f6af CSeq: 15724 MESSAGE User-Agent: FreeSWITCH-mod_sofia/1.0.rc1-7946 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Supported: 100rel, precondition, timer Content-Length: 0
------------------------------------------------------------------------ send 658 bytes to udp/[192.168.1.101]:5060 at 04:28:14.250000: ------------------------------------------------------------------------ MESSAGE sip:1001@192.168.1.101:5060;transport=udp SIP/2.0 Via: SIP/2.0/UDP 192.168.1.100;rport;branch=z9hG4bKD5NmFFDZ754XF Max-Forwards: 70 From: <sip:1000@192.168.1.100 <sip%3A1000@192.168.1.100>
;tag=fecebd85567b475b9c77e2ce8fc9ed0f To: <sip:1001@192.168.1.101:5060;transport=udp> Call-ID: 5ecce8a0-8610-122b-2780-39a48cb53b8d CSeq: 98041711 MESSAGE Contact: <sip:mod_sofia@192.168.1.100:5060> User-Agent: FreeSWITCH-mod_sofia/1.0.rc1-7946 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Supported: 100rel, precondition, timer Content-Type: text/html Content-Length: 5
re hi ------------------------------------------------------------------------ recv 377 bytes from udp/[192.168.1.101]:5060 at 04:28:14.265625: ------------------------------------------------------------------------ SIP/2.0 415 Unsupported Media Type Call-ID: 5ecce8a0-8610-122b-2780-39a48cb53b8d CSeq: 98041711 MESSAGE From: <sip:1000@192.168.1.100 <sip%3A1000@192.168.1.100>
;tag=fecebd85567b475b9c77e2ce8fc9ed0f To: <sip:1001@192.168.1.101:5060>;tag=ba9dbe411387bd7 Via: SIP/2.0/UDP 192.168.1.100;branch=z9hG4bKD5NmFFDZ754XF Content-Length: 0 User-Agent: Stonehenge IP255-S 1.30.191
2008/4/16, Michael Jerris <mike@jerris.com>:
It appears this is getting rejected because we are sending as HTML and it only accepts plain text. Do you have the rest of the sip trace with these 2 uac's so we can see if they ever specify what they support for message content type. I am surprised they dont include the header in the 415.
On Apr 15, 2008, at 10:42 PM, "이성훈" <loveoflife74@gmail.com> wrote:
Hi freeSwitch users !
I was installed freeSwitch window version on my notebook, all functionality features are doing desirable. but RFC 3428(instant message) feature is not.
see below, i describe my setting.
UAS - freeSwitch window version, in my notebook (ip:192.168.1.100) UAC1 - just simple voip phone, in my notebook (ip:192.168.1.100) UAC2 - hardware voip phone (ip:192.168.1.101)
both UACs are the same setting that sip server (freeSwitch UAS).
UAC1 <-> UAC2 call, take answer, talk are doing good.
but UAC1 <-> UAC2 instant message send, receive are not.
UAC1 sends message to UAC2, UAC1 receives 200 ok message from UAS, but UAC2 receives nothing, reverse actions too.
anyone help me please ! is it support RFC 3428 feature in freeSwitch ?
(denotes: UAC - user agent client, in this case voip phone UAS - user agent server, in this case sip server(freeSwitch))
(example sip packets)
------------------------------------------------------------------------ recv 791 bytes from udp/[localaddress]:5090 at 01:57:15.187500:
------------------------------------------------------------------------ MESSAGE sip:1001@localaddress SIP/2.0 Via: SIP/2.0/UDP localaddress:5090;rport;branch=z9hG4bKPj4f841d9b229c4353957a63f44b097214 Max-Forwards: 70 From: <sip:1000@localaddress>;tag=7c5eab80dedb4d7c8fc2cc5b44a53b70 To: <sip:1001@localaddress> Call-ID: 97e135971d86481ca15dae3acc0272d0 CSeq: 26500 MESSAGE Accept: text/plain, application/im-iscomposing+xml Contact: <sip:1000@localaddress:5090;transport=UDP> User-Agent: PJSUA v0.8.0/win32 Content-Type: application/im-iscomposing+xml Content-Length: 264
<?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" xsi:schemaLocation="urn:ietf:params:xml:ns:im-composing iscomposing.xsd"> <state>active</state> </isComposing>
------------------------------------------------------------------------ send 522 bytes to udp/[localaddress]:5090 at 01:57:15.187500:
------------------------------------------------------------------------ SIP/2.0 200 OK Via: SIP/2.0/UDP localaddress:5090;rport=5090;branch=z9hG4bKPj4f841d9b229c4353957a63f44b097214 From: <sip:1000@localaddress>;tag=7c5eab80dedb4d7c8fc2cc5b44a53b70 To: <sip:1001@localaddress>;tag=m461UjHUm02yN Call-ID: 97e135971d86481ca15dae3acc0272d0 CSeq: 26500 MESSAGE User-Agent: FreeSWITCH-mod_sofia/1.0.rc1-7946 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,REFER, UPDATE, REGISTER, INFO, PUBLISH Supported: 100rel, precondition, timer Content-Length: 0
------------------------------------------------------------------------ recv 509 bytes from udp/[localaddress]:5090 at 01:57:17.953125:
------------------------------------------------------------------------ MESSAGE sip:1001@localaddress SIP/2.0 Via: SIP/2.0/UDP localaddress:5090;rport;branch=z9hG4bKPj770d2b3e6a5248b5bf0aca1abc976b9c Max-Forwards: 70 From: <sip:1000@localaddress>;tag=8eb10cec2ced420fbee0a3f1c004a82c To: <sip:1001@localaddress> Call-ID: 9a795b147818437d8b0cb4e11c9e6e6a CSeq: 15724 MESSAGE Accept: text/plain, application/im-iscomposing+xml Contact: <sip:1000@localaddress:5090;transport=UDP> User-Agent: PJSUA v0.8.0/win32 Content-Type: text/plain Content-Length: 2
HI
------------------------------------------------------------------------ send 522 bytes to udp/[localaddress]:5090 at 01:57:17.953125:
------------------------------------------------------------------------ SIP/2.0 200 OK Via: SIP/2.0/UDP localaddress:5090;rport=5090;branch=z9hG4bKPj770d2b3e6a528b5bf0aca1abc976b9c From: <sip:1000@localaddress>;tag=8eb10cec2ced420fbee0a3f1c004a82c To: <sip:1001@localaddress>;tag=ND0tXD2yH9rHH Call-ID: 9a795b147818437d8b0cb4e11c9e6e6a CSeq: 15724 MESSAGE User-Agent: FreeSWITCH-mod_sofia/1.0.rc1-7946 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY, REFER, UPDATE, REGISTER, INFO, PUBLISH Supported: 100rel, precondition, timer Content-Length: 0
------------------------------------------------------------------------ send 655 bytes to udp/[221.132.67.173]:5060 at 01:57:17.968750:
------------------------------------------------------------------------ MESSAGE sip:1001@221.132.67.173:5060;transport=udp SIP/2.0 Via: SIP/2.0/UDP localaddress;rport;branch=z9hG4bKFQ85jBK4v24mg Max-Forwards: 70 From: <sip:1000@localaddress>;tag=8eb10cec2ced420fbee0a3f1c004a82c To: "UAS2" <sip:1001@221.132.67.173:5060;transport=udp> Call-ID: 48d60e4c-85fb-122b-2780-39a48cb53b8d CSeq: 98037182 MESSAGE Contact: <sip:mod_sofia@localaddress:5060> User-Agent: FreeSWITCH-mod_sofia/1.0.rc1-7946 Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, PRACK, MESSAGE, SUBSCRIBE, NOTIFY,REFER, UPDATE, REGISTER, INFO, PUBLISH Supported: 100rel, precondition, timer Content-Type: text/html Content-Length: 2
HI
------------------------------------------------------------------------ recv 377 bytes from udp/[221.132.67.173]:5060 at 01:57:18.015625:
------------------------------------------------------------------------ SIP/2.0 415 Unsupported Media Type Call-ID: 48d60e4c-85fb-122b-2780-39a48cb53b8d CSeq: 98037182 MESSAGE From: <sip:1000@localaddress>;tag=8eb10cec2ced420fbee0a3f1c004a82c To: "UAS2" <sip:1001@221.132.67.173:5060<http://sip:1001@221.132.67.173:5060>
;tag=205e2a1a5f55968 Via: SIP/2.0/UDP localaddress;branch=z9hG4bKFQ85jBK4v24mg Content-Length: 0 User-Agent: Stonehenge IP255-S 1.30.191
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org