Configuring module chan_mobile using Asterisk 13 and FreePBX 12 - mobile

I have just installed Asterisk 13 + FreePBX 12.0.71. I installed, also, module chan_mobile and Bluetooth drivers on my Ubuntu 14.04.2LTS Server. I've connected my Nokia C7-00 to my machine, but I have errors when loading module chan_mobile:
server*CLI> module load chan_mobile.so
[2015-07-12 15:26:54] ERROR[14478]: chan_mobile.c:4725 load_module: Errors reading config file chan_mobile.conf. Not loading module.
I tried to restart amportal and check if module is loaded
amportal restart
asterisk -rx "module show" | grep chan_mobile
And the result is:
chan_mobile.so Bluetooth Mobile Device Channel Driver 0 Not Running extended
Also, I see that file chan_mobile.conf doesn't exist.
Can someone guide me? What should I do?

I found how to find port... For others: Type in asterisk CLI:
mobile search
And if your mobile is connected you will get some info about that, also the port. For me was port 2.

Related

WSL rviz display error when launching application (qt.qpa.screen)

I am using ROS Melodic on Ubuntu 18.04 with gazebo9 and Xlaunch. I have been able to launch an empty workspace of gazebo but for some reason when I run rosrun rviz rviz, I get this error message:
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.
I have roscore running with no errors, so I dont believe its that which is causing the problem
This is the full script:
Gazebo
root#DESKTOP-GFT05HU:/mnt/c/Users/Frank# export GAZEBO_IP=127.0.0.1
root#DESKTOP-GFT05HU:/mnt/c/Users/Frank# export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2}'):0
root#DESKTOP-GFT05HU:/mnt/c/Users/Frank# export LIBGL_ALWAYS_INDIRECT=0
root#DESKTOP-GFT05HU:/mnt/c/Users/Frank# gazebo
ALSA lib confmisc.c:767:(parse_card) cannot find card '0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function
snd_func_card_driver returned error: No such file or
directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4528:(_snd_config_evaluate) function
snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name
ALSA lib conf.c:4528:(_snd_config_evaluate) function
snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM default
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory
[Err] [REST.cc:205] Error in REST request
libcurl: (51) SSL: no alternative certificate subject name matches target host name 'api.ignitionfuel.org'
Rviz:
root#DESKTOP-GFT05HU:/mnt/c/Users/Frank# rosrun rviz rviz
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root'
qt.qpa.screen: QXcbConnection: Could not connect to display
Could not connect to any X display.
Since WSL runs on top of the windows hypervisor you should treat the terminal like it has no direct knowledge of your display. To get this to work you need to do 2 things.
You need to download a windows X Server client. I personally use XMing.
Set your environment variable DISPLAY. Such as export DISPLAY=localhost:0.0
Edit: After doing some digging this issue is caused by how libGL interacts with the specific x server you're running. You have two options to fix this:
You run XMing instead of of XLaunch
If you want to keep using XLaunch under the "Additional Parameters for VcXsrv" add -nowgl
For me the solution was as simple as updating my WSL2 (Run Linux GUI apps on the Windows Subsystem for Linux)

iOS 11 - iOSDeviceManager unable to install DeviceAgent on the device

Test execution stops after 2-3 hours on iOS 11 devices. The same setup works fine for iOS 10 devices.
gems being used -
run_loop - 2.6.1/2.6.0/2.5.4
calabash-cucumber - 0.21.1/0.20.5
cucumber - 3.0.0.pre.2
Xcode - 9
iOS - 11.0/11.0.1/11.0.2
Below is the error message -
Could not install /Users/raenug001c/.rvm/gems/ruby-2.3.1#ios11test/gems/run_loop-2.6.1/lib/run_loop/device_agent/ipa/DeviceAgent-Runner.app. iOSDeviceManager says:
Error getting device with ID 630826b68345ba162bc2494709ff39657dd3c122: Error Domain=com.facebook.FBControlCore Code=0 “Failed to load device console entries” UserInfo={NSLocalizedDescription=Failed to load device console entries}
install <app-path>
-d,--device-id <device-identifier> iOS Simulator GUID or 40-digit physical device ID
-u,--update-app <should-update-app> [OPTIONAL] When true, will reinstall the app if the device contains an older version than the bundle specified DEFAULT=1
-p,--profile-path <profile-path> [OPTIONAL] Path to provisioning profile
-c,--codesign-identity <codesign-identifier> [OPTIONAL] Identity used to codesign app bundle [device only]. Deprecated - should use profile path. DEFAULT=
-i,--resources-path <resources-path> [OPTIONAL] Path to resources (executables) to inject into app directory. A list of colon separated files may be specified.
(RuntimeError)
/Users/raenug001c/Documents/testios11/tvx-mobile-automation/iOS/common/support/01_launch.rb:49:in `Before’
Only after the restarting the device, the tests can be executed further.
After further debugging the issue, seems like iOSDeviceManager is unable to install/launch device agent app on the device. Unable to view the source code for iOSDeviceManager, hence not able to debug further.

How do you debug react-native when it is running on device?

How do you debug react-native when it is running on device ?
Figured our React Native debugging for Android. Steps to for someone struggling with this -
Launch your RN App
Shake device
Select "Dev Settings"
Select "Debug server host & port for device" Put in your system's IP address.
Shake device
Select "Debug JS remotely"
Chrome will open a new tab with the address "http://localhost:8081/debugger-ui"
If this doesn't happen, check your port and open a new tab and enter the above address with your port number.
Open #Chrome DevTools (Cmd+Alt+I on #MacOSX)
Select the Console Tab
Shake Device
Select "Reload"
View all your console logs or use "debugger;" in your JS for breakpoint debugging.
You have two options:
Debug remotely
iOS: Cmd + ctrl + z to open menu and select "Debug remotely"
Android: Cmd + M to open menu and select "Debug remotely"
Or run one of these commands:
react-native log-ios
react-native log-android
There are little hack in here for IOS.
In XCode open AppDelegate.m from project folder, comment the line with jsCodeLocation declaration and add near it something like this:
jsCodeLocation = [NSURL URLWithString:#"http://%YOUR_PC_IP%:8081/index.ios.bundle?platform=ios&dev=true"];
, where %YOUR_PC_IP% is IP of your dev machine on local net.
Then open project named RCTWebSocket wich located in Libraries folder and then open from this project file RCTWebSocketProjectExecutor.m. Next, comment the line with host declaration, then add near it something like that:
host = #"%YOUR_PC_IP%";
Almost done. Run app on your device with XCode and make sure that your IPhone can see your develop machin via internet.
After it launches make sure that node server is running (command "react-native -- --start" in root project folder) and open via chrome this page: http://localhost:8081/debugger-ui . Plus, option Debug JS Remotely must be enabled in your app on your IPhone. (Shake action, then tap in opened menu Debug JS Remotely, that is it.)
Now open dev console and have happy debugging.
2 options exist:
Remote debug: this would go over network, so it can be laggy.
Run app on device (install it whilst its plugged in)
Shake device (Android devices need to be vigorously shaken)
Press settings on the dev menu, and under Debugging, press Debug server host and port for device
Enter your debug server's IP address and port (usually 8081 unless you changed your settings of the debug server), e.g. 255.255.255.255:8081. Your ip address is the local IP address that your computer has. Ensure the device is on the same network. For mac users, open System Preferences → Network → Wifi → Under Status: connected, there is an IP address, use that.
You can unplug the device
Ensure debug mode is on (Shake device vigorously again, press Debug)
Wired debug: relatively better for slow connections
Install app on phone
If android, set up port forwarding with adb reverse tcp:8081 tcp:8081 and if iOS, follow the steps from RN docs)
Enable debug on device
If you are working on Visual Studio Code then you can install React Native Tools extension (provided by Microsoft) and debug your app like any other IDE.
Read all steps in detail in my this answer.

Error : DEP6100 : The following unexpected error occurred during bootstrapping stage 'Connecting to the device '

Error : DEP6100 : The following unexpected error occurred during bootstrapping stage 'Connecting to the device '30F105C9-681E-420b-A277-7C086EAD8A4E'.':
DeviceException - Windows Phone IP over USB Transport (IpOverUsbSvc) is not running. Retry after starting Windows Phone IP over USB Transport (IpOverUsbSvc) from the services management console. ParkeerplaatsenApp
Severity Code Description Project File Line
Error Error : DEP6200 : Bootstrapping 'Device' failed. Device cannot be found. Windows Phone IP over USB Transport (IpOverUsbSvc) is not running. Retry after starting Windows Phone IP over USB Transport (IpOverUsbSvc) from the services management console. ParkeerplaatsenApp
These are the errors I get when trying to run my Project on my Windows 10 pc.
It's a application about parking spots if this should matter.
I recently had that problem and found that this can have several fixes.
First try check if you have that service installed, open PowerShell window and type:
Get-Service -Name *USB*
Status Name DisplayName
Stopped IpOverUsbSvc Windows Phone IP over USB Transport...
If you get answer that service is installed but stopped restart it.
Start-Service IpOverUsbSvc
If no answer try to install windows phone 8 SDK, restart computer try to check again if service is installed then if it is you can continue with debug.
If no try to input this registry values to your system registry.
Copy paste this below and save as a 'reg' file. Then double click and add, restart computer, check if you have service.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\IpOverUsbSvc]
"DisplayName"="Windows Phone IP over USB Transport (IpOverUsbSvc)"
"Description"="Enables communication between Windows Phone SDK and Windows Phone device. If the service is stopped, application deployment and debugging will fail on device."
"Type"=dword:00000010
"Start"=dword:00000002
"ErrorControl"=dword:00000000
"ImagePath"=hex(2):22,00,43,00,3a,00,5c,00,50,00,72,00,6f,00,67,00,72,00,61,00,\
6d,00,20,00,46,00,69,00,6c,00,65,00,73,00,20,00,28,00,78,00,38,00,36,00,29,\
00,5c,00,43,00,6f,00,6d,00,6d,00,6f,00,6e,00,20,00,46,00,69,00,6c,00,65,00,\
73,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,00,74,00,20,00,53,\
00,68,00,61,00,72,00,65,00,64,00,5c,00,50,00,68,00,6f,00,6e,00,65,00,20,00,\
54,00,6f,00,6f,00,6c,00,73,00,5c,00,43,00,6f,00,72,00,65,00,43,00,6f,00,6e,\
00,5c,00,31,00,31,00,2e,00,30,00,5c,00,62,00,69,00,6e,00,5c,00,49,00,70,00,\
4f,00,76,00,65,00,72,00,55,00,73,00,62,00,53,00,76,00,63,00,2e,00,65,00,78,\
00,65,00,22,00,00,00
"ObjectName"="LocalSystem"
If this also didn't help yuu check if you have executable under directory:
C:\Program Files (x86)\Common Files\Microsoft Shared\Phone Tools\CoreCon\11.0\bin\IpOverUsbSvc.exe
Try to install service from normal command prompt using installutil program like this.
installutil IpOverUsbSvc.exe
Hope that helps.

Blackberry 10 developers device "Error:device"

I am getting error "Error:device" on blackberry 10 developers device. I get this error when I am installing the unsigned .bar file to the device.
It was working fine earlier but suddenly it started showing this error.
I tried to reboot the device, but still getting same error.
Which development environment/SDK are you using to get this error? Native/WebWorks/Air/Android.
Please tag your question according to the SDK to ensure you get a prompt response. Example (blackberry-webworks)
had to disable Automatic in USB mode to deploy from a linux host ...

Resources