SiriProxy icon indicating copy to clipboard operation
SiriProxy copied to clipboard

SiriProxy with 4S and 4

Open aerosox opened this issue 14 years ago • 160 comments

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

aerosox avatar Dec 29 '11 15:12 aerosox

Same here. No fix yet for me.

alexzielenski avatar Dec 29 '11 16:12 alexzielenski

Same problem..............

bexel avatar Dec 29 '11 16:12 bexel

Have you tried clearing the auth keys out of ~/.siriproxy and then re auth-ing the 4s?

jayb1239 avatar Dec 29 '11 16:12 jayb1239

@jayb1239 nop, i'll try that tomorrow

aerosox avatar Dec 29 '11 16:12 aerosox

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)...

fopina avatar Dec 29 '11 17:12 fopina

have you tried raising the loglevel in order to see what guzzoni replies?

ghost avatar Dec 29 '11 17:12 ghost

@Eliminatrix may i know how to do that?

aerosox avatar Dec 29 '11 17:12 aerosox

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

ghost avatar Dec 29 '11 17:12 ghost

@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.

fopina avatar Dec 29 '11 17:12 fopina

westbaer's fork does the caching fine here

jayb1239 avatar Dec 29 '11 17:12 jayb1239

[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

jayb1239 avatar Dec 29 '11 17:12 jayb1239

are you sure that this is EVERYTHING guzzoni needs?

ghost avatar Dec 29 '11 17:12 ghost

@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

jayb1239 avatar Dec 29 '11 17:12 jayb1239

@Eliminatrix was that to me

"are you sure that this is EVERYTHING guzzoni needs?"

jayb1239 avatar Dec 29 '11 17:12 jayb1239

rvmsudo siriproxy -l [log level] server 

This is the full command.

ghost avatar Dec 29 '11 17:12 ghost

@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)

fopina avatar Dec 29 '11 17:12 fopina

[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

jayb1239 avatar Dec 29 '11 17:12 jayb1239

as above, thats what the iPhone 4 running spire on a different network responds

jayb1239 avatar Dec 29 '11 17:12 jayb1239

@fopina is your fork working although?

ghost avatar Dec 29 '11 17:12 ghost

thanks @Eliminatrix

jayb1239 avatar Dec 29 '11 17:12 jayb1239