SiriProxy with 4S and 4
Manage to grab the 4S keys with westbaer's port, getting the errors below with Siri saying that "I'm really sorry about this, but i can't take any requests right now. bla bla bla"
Create server for iPhone connection start conn #<SiriProxy::Connection::Iphone:0x8b56eb0 @signature=6, @processed_headers=false, @output_buffer="", @input_buffer="", @unzipped_input="", @unzipped_output="", @unzip_stream=#Zlib::Inflate:0x8b56c80, @zip_stream=#Zlib::Deflate:0x8b56c6c, @consumed_ace=false, @auth_data=nil, @faux=false, @name="iPhone", @ssled=false> [Info - Plugin Manager] Plugins laoded: [#<SiriProxy::Plugin::Example:0x8b562bc @manager=#<SiriProxy::PluginManager:0x8b567bc @plugins=[...]>>] {"speech_id"=>"-**_-**-_", "assistant_id"=>"**-_-__-__", "session_data"=>"__"} [Warning] Non-4S device connected. [Info - iPhone] Received Object: CreateAssistant [Info - iPhone] Received Object: SetAssistantData [Info - iPhone] Received Object: SetRestrictions [Info - iPhone] Received Object: ClearContext [Info - iPhone] Received Object: StartSpeechRequest [Info - iPhone] Received Object: SetRequestOrigin [Info - User Location] lat: , long: {"speech_id"=>"_-_-__-__", "assistant_id"=>"_-_-__-__", "session_data"=>"_**********************************"} [Info - iPhone] Received Object: CancelSpeech [Info - Guzzoni] Received Object: GetSessionCertificateResponse [Info - Guzzoni] Received Object: SessionValidationFailed [Info - Guzzoni] Received Object: CommandFailed [Info - Guzzoni] Received Object: CommandFailed [Info - Guzzoni] Received Object: CommandFailed [Info - Guzzoni] Received Object: CommandFailed [Info - Guzzoni] Received Object: CommandFailed [Info - iPhone] Received Object: StartSpeechRequest [Info - Guzzoni] Received Object: CommandFailed [Info - iPhone] Received Object: SpeechPacket [Info - iPhone] Received Object: CreateAssistant [Info - iPhone] Received Object: SetAssistantData [Info - Guzzoni] Received Object: CommandFailed [Info - Guzzoni] Received Object: CommandFailed [Info - Guzzoni] Received Object: GetSessionCertificateResponse [Info - Guzzoni] Received Object: SessionValidationFailed
Same here. No fix yet for me.
Same problem..............
Have you tried clearing the auth keys out of ~/.siriproxy and then re auth-ing the 4s?
@jayb1239 nop, i'll try that tomorrow
I think westbaer's port is missing Ace-Host in the "session caching" (though I'm sure I actually understand the authentication process). I've forked and added that and the session is properly validated but when a FinishSpeech packet is sent from the iPhone4, guzzoni never replies back (timing out)...
have you tried raising the loglevel in order to see what guzzoni replies?
@Eliminatrix may i know how to do that?
rvmsudo siriproxy -l [log level] server
i prefer 9 (as it is the maximum) to see the whole packet details from guzzoni....
you might get something like that:
[Info - Guzzoni] Received Object: CommandFailed (group: com.apple.ace.system, ref_id: fdfdsfdsfdsfds, ace_id: nxbxgxgfxgffgn)
{"class"=>"CommandFailed",
"properties"=>
{"reason"=>"Not authenticated", "errorCode"=>0, "callbacks"=>[]},
"aceId"=>"gfghfghghgh",
"refId"=>"hgfgdfgdyfgdyfgd",
"group"=>"com.apple.ace.system"}
The field 'reason' might be very important
@Eliminatrix if that was meant for me, I have raised the log level to the maximum (6) and I can actually see that nothing comes back from guzzoni after FinishSpeech. iPhone keeps pinging with no reply.
westbaer's fork does the caching fine here
[Warning] Non-4S device connected. [Info] Found cached session data. [Info] Found cached speech id. [Info] Found cached assistant id. [Info - iPhone] Received Object: LoadAssistant
are you sure that this is EVERYTHING guzzoni needs?
@Eliminatrix what is the full command for adjusting the log level as I have just been editing the command_line.rb file to change it
@Eliminatrix was that to me
"are you sure that this is EVERYTHING guzzoni needs?"
rvmsudo siriproxy -l [log level] server
This is the full command.
@jayb1239 but does Siri work? caching works fine as well here, but without X-Ace-Host header it will say "UnsupportedHardwareVersion" errorcode. With the header, it goes through authentication fine but then hangs after FInishSpeech packet:
[Info - Forwarding object to Guzzoni] FinishSpeech [Debug - iPhone] Forwarding 88 bytes of data to Guzzoni Ping - iPhone [Debug - iPhone] Forwarding 10 bytes of data to Guzzoni ========UNZIPPED DATA (from iPhone =========
03 00 00 00 08
Ping - iPhone
(and on until ping 16 and then error on Siri)
[Info - iPhone] Received Object: StartSpeechRequest [Info - iPhone] Received Object: SpeechPacket [Info - iPhone] Received Object: SpeechPacket [Info - iPhone] Received Object: SpeechPacket [Info - iPhone] Received Object: SpeechPacket [Info - iPhone] Received Object: SpeechPacket [Info - iPhone] Received Object: SpeechPacket [Info - iPhone] Received Object: SpeechPacket [Info - iPhone] Received Object: SpeechPacket [Info - iPhone] Received Object: SpeechPacket [Info - iPhone] Received Object: SpeechPacket [Info - iPhone] Received Object: SpeechPacket [Info - iPhone] Received Object: SpeechPacket [Info - iPhone] Received Object: SpeechPacket [Info - iPhone] Received Object: SpeechPacket [Info - iPhone] Received Object: SpeechPacket [Info - iPhone] Received Object: FinishSpeech [Info - Guzzoni] Received Object: SpeechRecognized [Info - Plugin Manager] Processing 'Test Siri proxy ' [Info - Plugin Manager] Processing plugin #SiriProxy::Plugin::Example:0x3a48b0 [Info - Plugin Manager] Matches (?i-mx:test siri proxy) [Info - Plugin Manager] Applicable states: [Info - Plugin Manager] Current state: [Info - Plugin Manager] Matches, executing block [Info - Plugin Manager] Say: Siri Proxy is up and running! [Info - Plugin Manager] Sending Request Completed
as above, thats what the iPhone 4 running spire on a different network responds
@fopina is your fork working although?
thanks @Eliminatrix