SIP (Session Initiation Protocol)
Eliminating Problem Areas
Part 2
Actually original page 4 contained so much and needed clarity regarding the New Error logs for iChat 3.1.5
Part 2 deals with the areas covered by the links listed below which are in fact Intra-page links
Jump to The Text in A Box (SIP Issues)
Jump to Connection Problems
SIP Protocol
- This is a protocol that iChat uses to instigate Video and Audio chats and needs to be able to do this on port 5060. If you use any form of SIP phone or Voice over IP software you may also need to look into it causing problems as well as checking if the router is SIP aware.
- The device is SIP aware. SIP is a text based protocol to enable IP phones to connect and use the internet. This protocol uses port 5060. iChat also uses this Protocol within the UDP data on port 5060.
- The ISP offers SIP as a separate paid for Service. (They Block port 5060 until you pay). Unfortunately as Apple's market share is still relatively small (and iChat's is relistically smaller still) ISP are reluctant to do mauch about this or at least seem not to care they block other Applications by doing this
Link to more info on SIP
Symptoms of ISP Port Blocking
If this is the cause you will not be able to Video or Audio only chat.
The solution is to speak to your ISP and find out if they are blocking any ports at their level. Negociate to get the port(s) open.
The Utilities on a Mac can not Port Scan on the UDP protocol. Download IPNetMonitorX from this link (The icon is the download button) It will run as a trial fro a few days. Long enough for you to test. The process is:-
Find a friendly Buddy who will tell you their Public IP
Select UDP Port Scan after opening the Utility.
Type in the IP to test against.
Scan port 5060
If you get the message " No Response" then the port is blocked somewhere between the two of you.
Check the scan to the IP of your Modem and any router you have to check it is not your end.
Try other Buddies to eliminate further
If you know the ISP server IP that gives you your IP test against that as well
You should now have enough information to say to the ISP you know they are Blocking the 5060 port.
Symptoms of SIP Binding on the Modem.
Unfortunately this appears as an intermittent problem affecting some Buddies that you contact.
- Some, a small group, you can contact all the time.
- Another small group you can connect to now and then.
- The largest group of your Buddies you can not connect to at all.
The most known about modems that it effects are the Thomson Alcatel Series 500 modems that have Version 3 and 4 firmware. Later Version 5 and 6 firmware also has a similar problem but has no work around. Some Drayteks are also effected. Alcatel also produce firmware for other devices particularly some Branded ones for specific ISP "free" modems.
This can/could be checked to some extent in iChat 2.x by the Connection Doctor (pull down from the Video menu). An interpretation of the messages listed here at the Apple Discussions/iChat FAQs may help.
This was the general format of the iChat failed chat message
- 2005-03-08 18:34:32 +0000: xxx did not respond. Tried to send UDP SIP "invite" to the following IP addresses and ports:
136.xxx.xxx.xxx:5060 192.168.0.2:5060
In iChat 3 in OS 10.4.7 and above you will get an Error 8 log
This shows a time stamp and then the User involved ("x"ed out here) and the the Public IP with Port and then the LAN IP and it's port
You are looking for one (if you are in iChat 2) that looks like this:
- 136.xxx.xxx.xxx:5060
This shows that only the Public IP and the port as open/available. There is no LAN IP listed.
NOTE: This can also mean:
- The Buddy is on Dial-up and either is suffering from speed problems or has not got port 5060 and the last group of 20 ports open (16384-16403)
- The Buddy is on DSL and has not got the last group of 20 ports open.
| iChat 3 The Connection Doctor in iChat 3 is not so forth coming with any information about failed contacts (until the 10.4.7 OS Update) and the ports and IP addresses involved like iChat 2 was. Therefore it is of little help here. So your options in iChat 3 are to check the manufactures web site for Spec details on the modem in question or jump in and try the Telnet command below. At the 10.4.7 Update Apple added the creation of a log file and an option to send it to Apple. It has a "Details" reveal triangle that will reveal the log itself. Dragging the window wider helps with viewing the Log. The log can be very long. Posting part of it on the Apple Discussion Boards in Chat 3's forum can be the best way to get an answer. The bit you need to post is from the second listing of the error Number to the first three lines of the Binar Images that start the bottom section. I am not going into all of the options here but it may be one of the reasons you are getting Error -8. Consider SIP if the Log only has titles between the Error -8 and Binary Images. |
Back to ISP and VoIP related stuff for a moment
If your ISP offers such a service or you have an application that can dial other internet or landline phones (Skype for instance) you may need to check if this is the cause of your problem. Try turning off any such applications.
Vonage and similar adapters.
These are used to make landline phones work over the internet. Often the adpater is placed between the modem and the computer and handles SIP traffic (Directed to the Phone hence the problem).
A solution is to move the adapter to the same level as the computer.
- Modem < - > Router <: - > Computer and adapter
This may mean buyng another device to achieve this.
If this fails you will need to find out if your router has the protocol SIP "bound" to port 5060.
Unbinding SIP
Starting with Version 4 or less firmware
Scroll up the page if you are not sure why you might need to do this.This may not be an option you can change in the browser interface with your modem. It is possible to Telnet them some from Terminal (or other Command Line Interface).
Only do this if you do not have an IP phone.
Only a few modems will have this as a setting you can change in the set up pages accessed from your Browser. There are in fact other ways you can access your modem. One of these is with a Telnet command. This has to be done from an application or Utility that can issue Command Line Interface (CLI) instructions. Your ever helpful Mac has such a Utility. It is called Terminal. It is found in Applications/Utilities on your Harddrive.
So open Terminal. It will look like this:-
Welcome to Darwin! Ralph:~ Ralph$ |
It will show your (short) name instead of mine obviously !
You need to enter the instructions I have laid out in the Text Box below. Scroll down until you can see the purple box below the White one. This shows all the entries made on my Alcatel with the entries Bolded. The "picture" only showsa like this if the window is dragged big enough to see all of it. You may only see a few lines just above where you are making entries if the window is small.
Oh yes !! It is also case sensitive !! Everything in lower case except for SIP when it is input.
|
Like this: (you need to type in the bold bits only) Where you see [Return] use the Return/Enter Key. Open Terminal Type in - telnet (your routers IP) after the Welcome to Darwin message and names at the $ point [return] (may need password if you set one). Hit enter if you didn't or after you have typed in the password. (Mine has a Unix drawing in this space) Then type =>nat unbind [return] (the 'arrow'(=>) should already there) application = SIP [return] port = 5060 [return] Quit Terminal. |
Like this
Welcome to Darwin! Ralph:~ Ralph$ telnet 10.0.0.138 Trying 10.0.0.138... Connected to speedtouch.lan. Escape character is '^]'. Username : ( hit enter here if no Password ) ------------------------------------------------------------------------ * * ______ SpeedTouch 510 * ___/_____/\ * / /\\ Version 4.2.5.0.0 * _____/__ / \\ * _/ /\_____/___ \ Copyright (c) 1999-2003, * // / \ /\ \ THOMSON * _______//_______/ \ / _\/______ * / / \ \ / / / /\ * __/ / \ \ / / / / _\__ * / / / \_______\/ / / / / /\ * /_/______/___________________/ /________/ /___/ \ * \ \ \ ___________ \ \ \ \ \ / * \_\ \ / /\ \ \ \ \___\/ * \ \/ / \ \ \ \ / * \_____/ / \ \ \________\/ * /__________/ \ \ / * \ _____ \ /_____\/ * \ / /\ \ /___\/ * /____/ \ \ / * \ \ /___\/ * \____\/ * ------------------------------------------------------------------------ =>nat unbind application = SIP port = 5060 [port_end] = 5060 :nat unbind application=SIP port=sip port_end=sip Failed to delete NAT binding on port 5060 : the binding doesn't exist. |
If this has not been done before then the last two lines will not appear.
Quitting Terminal is at least one way of ending the Terminal Session.
Variation for a Version 5 Firmware device according to Speedtouch.co.uk
From this Apple Discussion Thread posted by AwolAdam
(0906 3022114 - is the advertised number on their web page - http://www.speedtouch.co.uk/ - though SAYNOTO0870.com help with a non premium rate 02073090226) They sent back the following text For your firmware version: (EDIT: The Terminal bit) Start the telnet session (telnet 192.168.1.254) Username: admin password : ???? On the command prompt enter: ------------------------------------------------------------- connection unbind application=SIP port=5060 <enter> saveall <enter> ------------------------------------------------------------- Or with the menu: (EDIT: Like the above Version 4 Firmware but menus |
The BT HOME HUB
This seems to follow the same telnet command as for the Version 5 firmware listed in the above text box.If you are still having problems it may pay to start from fairly near the begining again. Don't presume that you got it right. Double check. One of the things I often go through on the Apple Discussions about iChat is asking those simple questions again.
"Have you done the Quicktime Setting ?"
"Is the Bandwidth Limit drop down set to NONE ?"
"Is the Mac Firewall On and have you set the Ports there ?"
"Have you opened the ports in your modem and any separate router ?"
Sometimes I am convinced some people need to hear the question phrased differently or sometimes you just have to "tell them three times".
Care should be taken to ensure the ports are open to the correct protocols. See the requirements in the Apple Doc 93208. Whatever means you use - these ports have to open. The style shown in the Apple Doc lends itself mainly towards to Port Forwarding. If you use Port Triggering these same ports will need to appear somewhere in your set up. Not all devices will require the protocols to be set, in Port Forwarding or in some cases Port Triggering.
| iChat 3 This document (93208) has been updated for Tiger/iChat 3 and therefore Jabber. In Note 1, under the tables, it also lists two TCP ports, 5220 and 5222. These are for Jabber. Not mentioned in this Apple Doc is the fact that some Jabber servers, including the GoogleTalk one require port 5223 as well. |
Firmware
As these two pages (4 and 4a) deal with problems with connecting it is worth considering whether you have an older device with it's original Firmware. This Firmware is the software that makes your Modem or router work. An older device can get a whole new lease of life and solve some issues if the Firmware is updated.
Finding links for your device may be difficult via a manufactures web pages if your device is out of manufucture. I found a link on ADSL Guide link when I couldn't see one on the Alcatel site.
This is fairly broad brush information which I have tried to keep fairly simple. Or rather have tried to explain simply which is not the same thing.
This is not a step by step approach as there are just too many routers and modems. You will have to read around the information about your device.
Soem of the more popular ones are found at these links.
For Linksys
For Netgear
For Speedstream
For help with Port Forwarding and Trigger port settings; Port Forwarding.com The Port Triggering list (Of capable devices) is accessed form this page as one of the options near the top. I would only recommend this site for Instruction to access the Device and the method of setting the ports as the actual ports are listed incorrectly.
Connection problems
Why is this bit here and in this format ?
Well it partly because of the way the pages grew out of the original info I put up here. I also beleive in the "Tell them three ways/times" method of passing information. Some pages are particularly wordy, some have more pictures to help, most fit somewhere in-between. However It never hurts to rephrase things now and then. So here goes with this sort of follow-up-review of things if pages 4 and 4a have not helped so far.
Start Here
If you can not Audio or Video chat to someone in your Buddy list who you can text to it is likely that the problem falls into one of three areas. (presuming you/they fit the criteria of camera or mic)
- Firstly that your uplink DSL speed is not suffient. A basic option of DSL should have an uplink speed of 128kbps at least. In some countries this is described as the lower limit of "Broadband". (Internationally "Broadband" does not really start until a 256k speed is reached) Anything lower can produce blocky pics and unsynched sound with Video connections. iChat will report an unsustainable connection if the speed drops below 50kbps.
Solution
- Upgrade your link.
- Go to iChat Preferences and in the Video section select NONE as the Bandwidth limit in the Bandwidth drop down. The iChat appliction will balance the Video and Audio parts of the ouptput. You need to have the Connection Doctor open (from the Video menu), to see the results in the Bit rate. Make sure it does not drop below 100.
- Go to System Preferences > Quicktime > Connection speed or Streaming Tab (depending on Quicktime version). Set the speed in the drop down to matych your Download speed
- Test your Connection Speed to see if you are getting what you paid for
Secondly
That your computer is a G3/500 or less. Apple state G3/600 is minimum. This is around the later models of the Bubble shapped Orignal iMac design. A Firewire Port is Quoted as a requirment, but read the Solution area.
Apple Doc 301050 descibes the new needs of Tiger and iChat 3.xSolution
- Download this utility: iChatUSBCam that enables slower machine and USB cameras to be used.
It comes with a 7 day free trial version.
iChat 3
Please note there is a now a combined version on that page that works for Panther/iChat2.x and Tiger/iChat 3.x
Some people on the Apple iChat Discussion area have reported that it also improves the functioning of G3 Macs in the range 600 - 900 Mghz - High usage of processor by other apps. (don't forget USB devices)
- High usage of Network savvy apps (don't forget iTunes and iPhoto in certain countries).
- Low levels of RAM.
- Upgrade your Computer :-)
Sub issues around this USB problem appear to be:
- Download this utility: iChatUSBCam that enables slower machine and USB cameras to be used.
Thirdly
Somewhat related to both, is the fact that you could be running more than one computer on your Internet link, using up bandwidth.Solution
- Shut down other computers.
(NOTE: I have managed to run two computers, using different AIM screen names, over the same DSL link. I.E. Out of the house > AIM server > back to other computer without bandwidth problems. I then had a 1Mb download but only 256kbps Uplink.) - Try Audio first to see if you can connect. This eliminates most bandwidth and computer usage problems. If this doesn't work then the router/modem or ports in the Mac Firewall if On are the likely areas to concentrate on.
- Make sure both computers have done the Quicktime setting and have the Bandwidth set to NONE
- Upgrade your connection if you can.
- Shut down other computers.
From reading around it would appear that routers list that they can either "NAT" or "NAPT" or "PAT". These will essentially be the same thing, or variations used with Port Forwarding, DMZ or Port Triggering but it does appear for iChat that there can be problems for this area.
My knowledge of things Networking are vague (but improving) and you may want to read elsewhere for more detail. Having said that, it appears that not all routers perform Network Address Translation the same way and in some cases the two devices involved do not communicate properly, which I tend to refer to on the Apple Discussion pages as 'not playing nicely together'. This can lead to the situation where 1 out of a group of 3 people finds that they can not Video or Audio chat to other memebers of the group. The only 2 practical solutions I found are:-
- Change to using UPnP where you can
- Try a different router/Modem at one of the locations, after trying without Port Forwarding/NAT (include DMZ And Port Triggering).
See this in The Trouble shooting page
In brief.
Routers pass information (data) in the form of packets. These packets can be sent using different protocols. Basically router are hardware firewalls and the doors (ports) have to be open to let information pass). TCP and UDP are the main ones but iChat AV also uses SIP (within the data on port 5060). SIP is also used with Voice over IP applications. See note 4 in the document list in the first link of this section. It's near the bottom of that Apple Doc.
Error Messages in 10.4.7
As you probably came to this page or page 4 looking for something about the Error logs of 10.4.7 and above. This bit below is from a longer section on page 16a.
I have given a great deal of thought to whether to include it due to the complexity of trying to explain it.... But here goes....
In it's usual manner of not actually saying they are aware of a problem, Apple have added a "Feature" to iChat at the 10.4.7 update that produces a Log file that can then be sent to Apple. It is specific to A/V chats.
What happens is the chat fails and a slide out window appears with a message about improving iChat with the info. There are two buttons at the bottom for Sending to Apple or not. Once the message is dealt with the window appears and you are left with just the Video Chat window (I say Video because that is where it is most reported) with the same message it always had. The actual message varies depending on the cause.
On the Log window there is a "Details" reveal triangle. Clicking on this will show you the actual log and the eror code. They are made up of three parts as coloured here.
Date/Time: 2006-07-05 21:11:03.403 +0100 OS Version: 10.4.7 (Build 8J135) Report Version: 4 iChat Connection Log: AVChat started with ID 485234091. ralphjohnsuk1: State change from AVChatNoState to AVChatStateWaiting. 0x157a780: State change from AVChatNoState to AVChatStateInvited. 0x157a780: State change from AVChatStateInvited to AVChatStateConnecting. [Edit Name]: State change from AVChatStateWaiting to AVChatStateConnecting. [Edit Name]: State change from AVChatStateConnecting to AVChatStateEnded. Chat ended with error -8 0x157a780: State change from AVChatStateConnecting to AVChatStateEnded. Chat ended with error -8 Video Conference Error Report: Video Conference Support Report: Video Conference User Report: Binary Images Description for "iChat": 0x1000 - 0x170fff com.apple.iChat 3.1.5 (436) /applications/iChat.app/Contents/MacOS/iChat [EDIT]... At this point the log goes on with all the bits loaded into action currently running the OS and iChat.
As you can see this one ends in Error -8 (
Chat ended with error -8 ) The above Log was also a failure where nothing but the invite got through, so just the titles got listed.
Video Conference Error Report: Video Conference Support Report: Video Conference User Report:Often the Log report will show much more in each title area. See below.
There are four common error code numbers and these relate to the actual message on the failed Video Chat window.
| Error Number | Message on Chat Window | Cause and Solution |
| Error -8 | (User) Did not Respond | Generally a Port Problem somewhere. Can be a NAT related issue. Check the middle part of the Log for port Numbers (See below). This will tell you if the ports are the "Right" ones. Use Page 3 and Page 4 to help. Try to avoid NAT if you can. |
| Error -22 | Not Enough Bandwidth | Generally this is caused by iChat being capped somewhere as to the Internet speed it has or can see. Check the Quicktime setting first. Then the Bandwidth Limit in iChat. Test the Internet speed you are getting. |
| Error-7 | No Data Received for 10 Secs | Anything that ends the call other than the Red close button Make sure you are still on line and restart the call. |
| Error -21 | Can not Get Video From Camera | Despite what it says this generally is a catchall for chats failing at the last stage of connection. You get the noise and the change to the Picture in Picture Video chat window but then nothing. It normally points to not enough Bandwidth just at the point of Connection Treat it as a Bandwidth Problem. Check that other apps or computers are not using up your Bandwidth. Some starting a download or Mail asking for new mail from the servers are likely causes. See Also this Apple Discussions Thread |
Realistically it is better to look at the page 16a stuff for a full run down on this.
In short Error Log -8 is about iChat not getting through. Where it is not getting through can, to a small extent, be gained from the Log. If, like the excerpt above, it has no details in between the titles listed then start with looking at page 4 and 4a about making sure port 5060 is open. If it has info in between the titles then it is more likely to be the way your LAN is set up. (Two DHCP servers or two lots of NAT or both). See Page 4 Sorting
Error - 22 is fairly well clear in the table above to sort the Quicktime Setting out or the iChat Bandwidth Limit
Error - 7 can happen just as the Chat connects. You tend to hear the connection tone that you have selected in the iChat Preferences but then your picture does not become the Pic-in-Pic and then the Log pop-up appears. Make the same checks as for an Error - 22. ALos check another or yoru computer is not doing a download and using up Bandwidth.
Error - 21 Is also related to some extent. If the camera also does not appear in the System Profiler (Apple Menu > About This Mac > More Info button) under the USB for In-built cameras - then you may need to take the battery out and put it back in again. Or Reset the PMU (Start at this Apple Doc 93240 )
Make sure you know how you LAN is set up and how the IP are issued.
Make sure the ports are opened in each device using one method or another. Use UPnP where you can. If you have to use Port Forward or Port Triggering then try to set Static IPs between the devices.
Check with your ISP if they block Port 5060 if you get nothing in your Error log. This is providing of course that you do not have a peice of VoIP equipment or an SIP aware mode.
If you wish to post your Log on the Apple Discussions please post the bits from the last reference to Error 8 (or your number) to the line I have shown in Blue in the fuller example above (Binary Images). The Binary Imgaes info tells us nothing about why the chat failed.
Top of Page - Text in Box (SIP) - Connection Problems (this page) - Page 5(next) - Page 16a
© 2005 Ralph Johns: Edited 24/9/2005, 5/5/2006
Updated September 2006. Moved to Gargoyles and edited Mar 2007