[Asterisk-Dev] iChat
John Todd
jtodd at loligo.com
Wed Jul 2 21:42:51 MST 2003
Interesting. I didn't realize why there was a sudden interest in SIP and H.263 (Quicktime) video support in Asterisk until a friend of mine got one of the new Apple cameras and I snooped on the ethernet during a session. I found, to my surprise, that they're using SIP for video transactions. I tried setting up a static peer on my Asterisk box, and bounced it a few calls - wow, they even got status messages back! However, ultimately I got a "603 Declined" reply from my iChat client. Close, but no cigar.
A bit of Google searching found this about SIP and AIM and iChat: http://www.instantmessagingplanet.com/public/article.php/2226921
It seems that there is a bit of "magic" that happens via an AIM channel mechanism before SIP will work on accepting a new call.
Here's a summary of a one-way video INVITE from a friend with to my computer. (note: IP addresses are fictional)
My IP address: 207.87.42.3 (no camera)
Remote IP address of person with video camera: 208.223.19.222 (with camera)
Frame 8 (723 on wire, 723 captured)
Arrival Time: Jul 2, 2003 06:48:13.632902000
Time delta from previous packet: 1.511171000 seconds
Time relative to first packet: 28.062013000 seconds
Frame Number: 8
Packet Length: 723 bytes
Capture Length: 723 bytes
Ethernet II
Destination: 00:03:93:c4:50:3c (Apple_c4:50:3c)
Source: 00:00:0c:5c:f4:2c (Cisco_5c:f4:2c)
Type: IP (0x0800)
Internet Protocol, Src Addr: 208.223.19.222 (208.223.19.222), Dst Addr: jts-apple.fox-den.com (207.87.42.3)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 709
Identification: 0xe04b
Flags: 0x00
.0.. = Don't fragment: Not set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 45
Protocol: UDP (0x11)
Header checksum: 0x75d1 (correct)
Source: 208.223.19.222 (208.223.19.222)
Destination: jts-apple.fox-den.com (207.87.42.3)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Source port: sip (5060)
Destination port: sip (5060)
Length: 689
Checksum: 0x7f6e (correct)
Session Initiation Protocol
Request line: INVITE sip:user at 207.87.42.3 SIP/2.0
Message Header
Via: SIP/2.0/UDP 208.223.19.222;branch=z9hG4bK42b84dc42304ec48
Max-Forwards: 70
To: "iChat User" <sip:user at 207.87.42.3>
From: "Joe Smith at 208.223.19.222" <sip:user at 208.223.19.222>;tag=309062389
Call-ID: 67306132-ac59-11d7-87d1-c364f6ae13c4 at 208.223.19.222
CSeq: 1 INVITE
Contact: <sip:user at 208.223.19.222>
Content-Type: application/sdp
Content-Length: 270
Session Description Protocol
Session Description Protocol Version (v): 0
Owner/Creator, Session Id (o): JoeSmith at 208.223.19.222 1 0 IN IP4 208.223.19.222
Owner Username: JoeSmith at 208.223.19.222
Session ID: 1
Session Version: 0
Owner Network Type: IN
Owner Address Type: IP4
Owner Address: 208.223.19.222
Session Name (s): JoeSmith at 208.223.19.222
Connection Information (c): IN IP4 208.223.19.222
Connection Network Type: IN
Connection Address Type: IP4
Connection Address: 208.223.19.222
Time Description, active time (t): 0 0
Session Start Time: 0
Session Start Time: 0
Media Description, name and address (m): audio 16386 RTP/AVP 12
Media Type: audio
Media Port: 16386
Media Proto: RTP/AVP
Media Format: 12
Media Description, name and address (m): video 16384 RTP/AVP 34
Media Type: video
Media Port: 16384
Media Proto: RTP/AVP
Media Format: 34
Bandwidth Information (b): AS:100
Bandwidth Modifier: AS
Bandwidth Value: 100
Media Attribute (a): fmtp:34 imagesize 1
Media Attribute Fieldname: fmtp
Media Attribute Value: 34 imagesize 1
Media Attribute (a): framerate:30
Media Attribute Fieldname: framerate
Media Attribute Value: 30
Media Attribute (a): RTCP:AUDIO 16387 VIDEO 16385
Media Attribute Fieldname: RTCP
Media Attribute Value: AUDIO 16387 VIDEO 16385
Media Attribute (a): pogo:
Media Attribute Fieldname: pogo
Media Attribute Value:
Frame 9 (347 on wire, 347 captured)
Arrival Time: Jul 2, 2003 06:48:13.633883000
Time delta from previous packet: 0.000981000 seconds
Time relative to first packet: 28.062994000 seconds
Frame Number: 9
Packet Length: 347 bytes
Capture Length: 347 bytes
Ethernet II
Destination: 00:00:0c:5c:f4:2c (Cisco_5c:f4:2c)
Source: 00:03:93:c4:50:3c (Apple_c4:50:3c)
Type: IP (0x0800)
Internet Protocol, Src Addr: jts-apple.fox-den.com (207.87.42.3), Dst Addr: 208.223.19.222 (208.223.19.222)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 333
Identification: 0xf0f7
Flags: 0x00
.0.. = Don't fragment: Not set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 64
Protocol: UDP (0x11)
Header checksum: 0x539d (correct)
Source: jts-apple.fox-den.com (207.87.42.3)
Destination: 208.223.19.222 (208.223.19.222)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Source port: sip (5060)
Destination port: sip (5060)
Length: 313
Checksum: 0x229a (correct)
Session Initiation Protocol
Status line: SIP/2.0 100 Trying
Message Header
Via: SIP/2.0/UDP 208.223.19.222;branch=z9hG4bK42b84dc42304ec48
To: "iChat User" <sip:user at 207.87.42.3>
From: "Joe Smith at 208.223.19.222" <sip:user at 208.223.19.222>;tag=309062389
Call-ID: 67306132-ac59-11d7-87d1-c364f6ae13c4 at 208.223.19.222
CSeq: 1 INVITE
Content-Length: 0
Frame 10 (396 on wire, 396 captured)
Arrival Time: Jul 2, 2003 06:48:13.634116000
Time delta from previous packet: 0.000233000 seconds
Time relative to first packet: 28.063227000 seconds
Frame Number: 10
Packet Length: 396 bytes
Capture Length: 396 bytes
Ethernet II
Destination: 00:00:0c:5c:f4:2c (Cisco_5c:f4:2c)
Source: 00:03:93:c4:50:3c (Apple_c4:50:3c)
Type: IP (0x0800)
Internet Protocol, Src Addr: jts-apple.fox-den.com (207.87.42.3), Dst Addr: 208.223.19.222 (208.223.19.222)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 382
Identification: 0xf0f8
Flags: 0x00
.0.. = Don't fragment: Not set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 64
Protocol: UDP (0x11)
Header checksum: 0x536b (correct)
Source: jts-apple.fox-den.com (207.87.42.3)
Destination: 208.223.19.222 (208.223.19.222)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Source port: sip (5060)
Destination port: sip (5060)
Length: 362
Checksum: 0x4a82 (correct)
Session Initiation Protocol
Status line: SIP/2.0 180 Ringing
Message Header
Via: SIP/2.0/UDP 208.223.19.222;branch=z9hG4bK42b84dc42304ec48
To: "iChat User" <sip:user at 207.87.42.3>;tag=848280187
From: "Joe Smith at 208.223.19.222" <sip:user at 208.223.19.222>;tag=309062389
Call-ID: 67306132-ac59-11d7-87d1-c364f6ae13c4 at 208.223.19.222
CSeq: 1 INVITE
Contact: <sip:user at 207.87.42.3>
Content-Length: 0
Frame 11 (654 on wire, 654 captured)
Arrival Time: Jul 2, 2003 06:48:14.411277000
Time delta from previous packet: 0.777161000 seconds
Time relative to first packet: 28.840388000 seconds
Frame Number: 11
Packet Length: 654 bytes
Capture Length: 654 bytes
Ethernet II
Destination: 00:00:0c:5c:f4:2c (Cisco_5c:f4:2c)
Source: 00:03:93:c4:50:3c (Apple_c4:50:3c)
Type: IP (0x0800)
Internet Protocol, Src Addr: jts-apple.fox-den.com (207.87.42.3), Dst Addr: 208.223.19.222 (208.223.19.222)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 640
Identification: 0xf0fe
Flags: 0x00
.0.. = Don't fragment: Not set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 64
Protocol: UDP (0x11)
Header checksum: 0x5263 (correct)
Source: jts-apple.fox-den.com (207.87.42.3)
Destination: 208.223.19.222 (208.223.19.222)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Source port: sip (5060)
Destination port: sip (5060)
Length: 620
Checksum: 0xb8a6 (correct)
Session Initiation Protocol
Status line: SIP/2.0 200 OK
Message Header
Via: SIP/2.0/UDP 208.223.19.222;branch=z9hG4bK42b84dc42304ec48
To: "iChat User" <sip:user at 207.87.42.3>;tag=848280187
From: "Joe Smith at 208.223.19.222" <sip:user at 208.223.19.222>;tag=309062389
Call-ID: 67306132-ac59-11d7-87d1-c364f6ae13c4 at 208.223.19.222
CSeq: 1 INVITE
Contact: <sip:user at 207.87.42.3>
Content-Length: 261
Session Description Protocol
Session Description Protocol Version (v): 0
Owner/Creator, Session Id (o): JohnTodd at 207.87.42.3 1 0 IN IP4 207.87.42.3
Owner Username: JohnTodd at 207.87.42.3
Session ID: 1
Session Version: 0
Owner Network Type: IN
Owner Address Type: IP4
Owner Address: 207.87.42.3
Session Name (s): JohnTodd at 207.87.42.3
Connection Information (c): IN IP4 207.87.42.3
Connection Network Type: IN
Connection Address Type: IP4
Connection Address: 207.87.42.3
Time Description, active time (t): 0 0
Session Start Time: 0
Session Start Time: 0
Media Description, name and address (m): audio 16386 RTP/AVP 12
Media Type: audio
Media Port: 16386
Media Proto: RTP/AVP
Media Format: 12
Media Description, name and address (m): video 16384 RTP/AVP 34
Media Type: video
Media Port: 16384
Media Proto: RTP/AVP
Media Format: 34
Bandwidth Information (b): AS:2147483647
Bandwidth Modifier: AS
Bandwidth Value: 2147483647
Media Attribute (a): fmtp:34 imagesize 0
Media Attribute Fieldname: fmtp
Media Attribute Value: 34 imagesize 0
Media Attribute (a): framerate:20
Media Attribute Fieldname: framerate
Media Attribute Value: 20
Media Attribute (a): RTCP:AUDIO 16387 VIDEO 16385
Media Attribute Fieldname: RTCP
Media Attribute Value: AUDIO 16387 VIDEO 16385
Media Attribute (a): pogo:
Media Attribute Fieldname: pogo
Media Attribute Value:
Frame 12 (391 on wire, 391 captured)
Arrival Time: Jul 2, 2003 06:48:14.741634000
Time delta from previous packet: 0.330357000 seconds
Time relative to first packet: 29.170745000 seconds
Frame Number: 12
Packet Length: 391 bytes
Capture Length: 391 bytes
Ethernet II
Destination: 00:03:93:c4:50:3c (Apple_c4:50:3c)
Source: 00:00:0c:5c:f4:2c (Cisco_5c:f4:2c)
Type: IP (0x0800)
Internet Protocol, Src Addr: 208.223.19.222 (208.223.19.222), Dst Addr: jts-apple.fox-den.com (207.87.42.3)
Version: 4
Header length: 20 bytes
Differentiated Services Field: 0x00 (DSCP 0x00: Default; ECN: 0x00)
0000 00.. = Differentiated Services Codepoint: Default (0x00)
.... ..0. = ECN-Capable Transport (ECT): 0
.... ...0 = ECN-CE: 0
Total Length: 377
Identification: 0xe04e
Flags: 0x00
.0.. = Don't fragment: Not set
..0. = More fragments: Not set
Fragment offset: 0
Time to live: 45
Protocol: UDP (0x11)
Header checksum: 0x771a (correct)
Source: 208.223.19.222 (208.223.19.222)
Destination: jts-apple.fox-den.com (207.87.42.3)
User Datagram Protocol, Src Port: sip (5060), Dst Port: sip (5060)
Source port: sip (5060)
Destination port: sip (5060)
Length: 357
Checksum: 0xfa0d (correct)
Session Initiation Protocol
Request line: ACK sip:user at 207.87.42.3 SIP/2.0
Message Header
Via: SIP/2.0/UDP 208.223.19.222;branch=z9hG4bK65348538351cc2f8
Max-Forwards: 70
To: "iChat User" <sip:user at 207.87.42.3>;tag=848280187
From: "Joe Smith at 208.223.19.222" <sip:user at 208.223.19.222>;tag=309062389
Call-ID: 67306132-ac59-11d7-87d1-c364f6ae13c4 at 208.223.19.222
CSeq: 1 ACK
Content-Length: 0
More information about the asterisk-dev
mailing list