 		 */
 		public function sendKeepAlive():void
 		{
-			var ping:IQ = new IQ( new EscapedJID( server ), IQ.TYPE_GET );
+			if( pingNotSupported ) return;
+
+			var ping:IQ = new IQ( new EscapedJID( server ), IQ.TYPE_GET, null, sendKeepAlive_response, sendKeepAlive_error );
 			ping.addExtension( new PingExtension() );
 			send( ping );
 		}


		/**
		 * @private
		 *
		 * @param	iq
		 */

		/**
		 * @private
		 */
		protected var pingNotSupported:Boolean;

		/**
		 * @private
		 */
		protected var presenceQueue:Array = [];

		/**
