使用CXEndCallAction请求事务时出错

时间:2016-08-05 16:16:26

标签: voip ios10 callkit

在使用CXEndCallAction请求CXTransaction时,事务失败并显示错误代码 错误域= com.apple.CallKit.error.requesttransaction Code = 4“(null)”

我能够成功制作CXStartCallAction。有谁知道这个错误意味着什么?

3 个答案:

答案 0 :(得分:8)

CallKit的错误代码在<CallKit/CXError.h>中定义,而在iOS 10 Seed 4中,域com.apple.CallKit.error.requesttransaction的错误代码4定义为:

CXErrorCodeRequestTransactionErrorUnknownCallUUID = 4,

这表示请求的CXEndCallAction的调用UUID与已知调用不对应。我建议确认CXEndCallAction上设置的UUID与现有呼叫匹配。

答案 1 :(得分:-1)

如果您使用

CXStartCallAction

使用CXCallUpdate更新action.uuid您必须使用action.callUUID,而不是unknownCallUUID

稍后在通话结束时导致func provider(_ provider: CXProvider, perform action: CXEndCallAction) 错误。在这种情况下

C:\Sites\bbb>heroku run rails console
This is the legacy Heroku CLI. Please install the new CLI from https://cli.herok
u.com
Running rails console on hidden-hollows-63773... up, run.4100 (Free)
/app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.2/lib/active_record/connecti
on_adapters/connection_specification.rb:176:in `rescue in spec': Specified 'sqli
te3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to you
r Gemfile (and ensure its version is at the minimum required by ActiveRecord). (
Gem::LoadError)
        from /app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.2/lib/active_re
cord/connection_adapters/connection_specification.rb:173:in `spec'
        from /app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.2/lib/active_re
cord/connection_handling.rb:53:in `establish_connection'
        from /app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.2/lib/active_re
cord/railtie.rb:125:in `block (2 levels) in <class:Railtie>'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/lazy_load_hooks.rb:43:in `instance_eval'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/lazy_load_hooks.rb:43:in `execute_hook'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/lazy_load_hooks.rb:50:in `block in run_load_hooks'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/lazy_load_hooks.rb:49:in `each'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/lazy_load_hooks.rb:49:in `run_load_hooks'
        from /app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.2/lib/active_re
cord/base.rb:324:in `<module:ActiveRecord>'
        from /app/vendor/bundle/ruby/2.3.0/gems/activerecord-5.0.2/lib/active_re
cord/base.rb:24:in `<top (required)>'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/dependencies.rb:293:in `require'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/dependencies.rb:293:in `block in require'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/dependencies.rb:259:in `load_dependency'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/dependencies.rb:293:in `require'
        from /app/app/models/application_record.rb:1:in `<top (required)>'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/dependencies.rb:293:in `require'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/dependencies.rb:293:in `block in require'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/dependencies.rb:259:in `load_dependency'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/dependencies.rb:293:in `require'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/dependencies.rb:380:in `block in require_or_load'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/dependencies.rb:37:in `block in load_interlock'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/dependencies/interlock.rb:12:in `block in loading'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/concurrency/share_lock.rb:150:in `exclusive'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/dependencies/interlock.rb:11:in `loading'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/dependencies.rb:37:in `load_interlock'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/dependencies.rb:358:in `require_or_load'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/dependencies.rb:336:in `depend_on'
        from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.0.2/lib/active_s
upport/dependencies.rb:252:in `require_dependency'
        from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/engine.
rb:476:in `block (2 levels) in eager_load!'
        from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/engine.
rb:475:in `each'
        from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/engine.
rb:475:in `block in eager_load!'
        from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/engine.
rb:473:in `each'
        from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/engine.
rb:473:in `eager_load!'
        from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/engine.
rb:354:in `eager_load!'
        from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/applica
tion/finisher.rb:59:in `each'
        from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/applica
tion/finisher.rb:59:in `block in <module:Finisher>'
        from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/initial
izable.rb:30:in `instance_exec'
        from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/initial
izable.rb:30:in `run'
        from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/initial
izable.rb:55:in `block in run_initializers'
        from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:228:in `block in tso
rt_each'
        from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:350:in `block (2 lev
els) in each_strongly_connected_component'
        from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:431:in `each_strongl
y_connected_component_from'
        from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:349:in `block in eac
h_strongly_connected_component'
        from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `each'
        from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `call'
        from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `each_strongl
y_connected_component'
        from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'
        from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'
        from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/initial
izable.rb:54:in `run_initializers'
        from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/applica
tion.rb:352:in `initialize!'
        from /app/config/environment.rb:5:in `<top (required)>'
        from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/applica
tion.rb:328:in `require'
        from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/applica
tion.rb:328:in `require_environment!'
        from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/command
s/commands_tasks.rb:157:in `require_application_and_environment!'
        from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/command
s/commands_tasks.rb:77:in `console'
        from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/command
s/commands_tasks.rb:49:in `run_command!'
        from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.0.2/lib/rails/command
s.rb:18:in `<top (required)>'
        from /app/bin/rails:4:in `require'
        from /app/bin/rails:4:in `<main>'

不会开火。

答案 2 :(得分:-2)

更新callUUID中的操作,而不是uuid