我解压编译移植了wxvoipsdk-0xD5000088-linux-arm-release.zip
生成了 sdkdemo 可执行文件。
然后执行:./sdkdemo 提示:
更具提示然后执行:./sdkdemo product_id device_id device_sig model_id appid host_appid sn_ticket openid
[root@RV1126_RV1109:~]#
[root@RV1126_RV1109:~]# ./sdkdemo product_id device_id device_sig model_id appid host_appid sn_ticket openid
[01:49:03.007][I][WMPF][1572:1572][components/net/curl/curl_net_context.c:30][net_context_new]: CURL Version: 7.84.0
[01:49:03.011][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:261][InitEnv]: ClientVersion 0xd5000088
[01:49:03.011][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:262][InitEnv]: ClientRevision 1a0126f379f59164bc520cc899277d60cfaa3086
[01:49:03.011][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:263][InitEnv]: ClientABI arm
[01:49:03.012][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:264][InitEnv]: LogDir
[01:49:03.012][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:265][InitEnv]: DataDir /data
[01:49:03.012][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:266][InitEnv]: ProductID 0
[01:49:03.012][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:267][InitEnv]: HostAppID host_appid
[01:49:03.012][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:268][InitEnv]: DeviceID device_id
[01:49:03.012][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:269][InitEnv]: DeviceSignature device_sig
[01:49:03.012][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:271][InitEnv]: DeviceSignatureVersion 1
[01:49:03.012][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:272][InitEnv]: WxaAppID appid
[01:49:03.012][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:273][InitEnv]: ModelID model_id
[01:49:03.012][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:274][InitEnv]: WxaFlavor 0
[V][NativeCrash]Alternative stack installed.
[V][NativeCrash]Signal handler installed.
[01:49:03.012][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:290][InitEnv]: AudioManager Init Start
[01:49:03.012][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:299][InitEnv]: AudioManager Init End
[01:49:03.012][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:301][InitEnv]: CameraManager Init Start
[01:49:03.012][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:312][InitEnv]: CameraManager Init End
[01:49:03.013][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:314][InitEnv]: CryptoModule Init Start
[01:49:03.013][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:325][InitEnv]: CryptoModule Init End
[01:49:03.013][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:330][InitEnv]: Display Init Start
[01:49:03.013][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:332][InitEnv]: Display Init End
[01:49:03.013][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:334][InitEnv]: ConfService New Start
[01:49:03.013][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:340][InitEnv]: ConfService New End
[01:49:03.013][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:342][InitEnv]: Ticket Init Start
[01:49:03.014][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:354][InitEnv]: Ticket Init End
[01:49:03.014][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:119][InitDeviceToken]: InitDeviceToken Start
[01:49:03.014][W][WMPF][1572:1572][components/voip/veridev/file/device_token_file.c:338][get_device_id]: /data/device_key not readable
[01:49:03.014][I][WMPF][1572:1572][components/voip/veridev/file/device_token_file.c:415][is_registered]: device id not found, maybe not registered.
[01:49:03.015][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:124][InitDeviceToken]: This device is not registered. If you want to create voip session for school scene, now it is OK. But if you want to create voip session for IoT scene, you should call wx_device_register.
[01:49:03.015][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:170][Init]: VoipManager Init Start
[01:49:03.015][I][WMPF][1572:1572][components/voip/voip_manager.cc:112][Init]: InitRing Start
[01:49:03.015][I][WMPF][1572:1572][components/voip/voip_manager.cc:114][Init]: InitRing End
[01:49:03.015][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:172][Init]: VoipManager Init End
[01:49:03.015][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:836][operator()]: wxvoipsdk inititialization succeeded
op = 0x2d430
[01:49:03.015][W][WMPF][1572:1572][components/voip/veridev/file/device_token_file.c:338][get_device_id]: /data/device_key not readable
[01:49:03.015][I][WMPF][1572:1572][components/voip/veridev/file/device_token_file.c:415][is_registered]: device id not found, maybe not registered.
Device is not registered. Do registration now.
[01:49:03.015][W][WMPF][1572:1572][components/voip/veridev/file/device_token_file.c:338][get_device_id]: /data/device_key not readable
[01:49:03.016][I][WMPF][1572:1572][components/voip/veridev/file/device_token_file.c:415][is_registered]: device id not found, maybe not registered.
[01:49:03.016][I][WMPF][1572:1572][components/voip/standalone/wmpf.cc:391][RegisterDevice]: Trying to register this device for IoT scene
[01:49:03.016][I][WMPF][1572:1572][components/voip/veridev/file/device_token_file.c:141][do_register]: GetDeviceToken Start
[01:49:03.190][E][WMPF][1572:1575][components/net/http_json_interceptor.c:49][net_http_response_get_error]: device/key/get: errcode=10008 errmsg=
[01:49:03.190][E][WMPF][1572:1575][components/voip/veridev/file/device_token_file.c:161][do_register]: Invalid or outdated SNTicket
wx_device_register fail, 3
[V][NativeCrash]Entered signal handler 11.
[V][NativeCrash]SP: 0xaeabd530
[V][NativeCrash]Allocated child stack at 0xa6f8a000
[V][NativeCrash]Allocated child stack at 0xaeabe000
[V][NativeCrash]Opening dump file: /data/crash-1572.dmp
[V][NativeCrash]shortFlags: 0xffffffff, fullFlags: 0x00000000
[V][NativeCrash]Preset custom: [app]
linux_voip
[os]
linux
[version]
0xd5000088
[revision]
1a0126f379f59164bc520cc899277d60cfaa3086
[V][NativeCrash]Default signal handler installed.
[V][NativeCrash]Signal handler mutex released.
Segmentation fault
请问遇到当前报错,应该如何解决?
./sdkdemo product_id device_id device_sig model_id appid host_appid sn_ticket openid sdkdemo 后面的参数含义是什么??是否有说明文档?
参数的含义就是字面意思呢,或者你看看代码?
我想表达的意思是:product_id device_id device_sig model_id appid host_appid sn_ticket openid
这些参数,应该是从哪里获取的呢?
https://developers.weixin.qq.com/miniprogram/dev/framework/device/voip/voip-sdk.html