function getagent($httpagent='', $peer_id="") { return ($httpagent ? $httpagent : ($peer_id ? $peer_id : Unknown)); }