cristyan
(Chriss G)
July 12, 2015, 12:44pm
1
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 ?
cristyan
(Chriss G)
July 12, 2015, 1:20pm
2
I’ve created a chan_mobile.conf file in /etc/asterisk/ and now it looks like it is running… But i dont know if i am doing things the right way.
asterisk -rx "module show" | grep chan_mobile
result:
chan_mobile.so Bluetooth Mobile Device Channel Driver 0 Running extended
Here is my chan_mobile.conf
[general]
interval=30 ; Number of seconds between trying to connect to devices.
;;;;;;;;;MyConfig
[adapter]
id=bt3
address=00:1A:XX:XX:XX:XX ;just hidden real MAC
[nokia]
address=AC:81:ZZ:ZZ:ZZ:ZZ ;just hidden real MAC
port=1
group=1
sms=no
adapter=bt3
;;;;;;;;;;;;;;;;;;;
I dont know where i can get the port number ???
cristyan
(Chriss G)
July 12, 2015, 1:42pm
3
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.
cristyan
(Chriss G)
July 12, 2015, 6:27pm
4
[2015-07-12 21:15:54] VERBOSE[14032] config.c: Parsing '/etc/asterisk/chan_mobile.conf': Found
[2015-07-12 21:15:54] VERBOSE[14032] channel.c: Registered channel type 'Mobile' (Bluetooth Mobile Device Channel Driver)
[2015-07-12 21:15:54] VERBOSE[14032] pbx.c: Registered application 'MobileStatus'
[2015-07-12 21:15:54] VERBOSE[14032] pbx.c: Registered application 'MobileSendSMS'
[2015-07-12 21:15:54] VERBOSE[14032] loader.c: Loaded chan_mobile.so => (Bluetooth Mobile Device Channel Driver)
[2015-07-12 21:16:51] VERBOSE[14069] chan_mobile.c: Bluetooth Device iPhone4s has connected, initializing...
[2015-07-12 21:16:51] VERBOSE[14106] chan_mobile.c: Bluetooth Device iPhone4s initialized and ready.
[2015-07-12 21:17:18] VERBOSE[14145][C-00000000] pbx.c: Executing [[email protected] :1] Dial("Mobile/iPhone4s-5563", "SIP/200") in new stack
[2015-07-12 21:17:18] WARNING[14145][C-00000000] app_dial.c: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
[2015-07-12 21:17:18] VERBOSE[14145][C-00000000] app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
[2015-07-12 21:17:18] VERBOSE[14145][C-00000000] pbx.c: Auto fallthrough, channel 'Mobile/iPhone4s-5563' status is 'CHANUNAVAIL'
[2015-07-12 21:17:46] VERBOSE[14146][C-00000001] pbx.c: Executing [[email protected] :1] Dial("Mobile/iPhone4s-aaab", "SIP/200") in new stack
[2015-07-12 21:17:46] WARNING[14146][C-00000001] app_dial.c: Unable to create channel of type 'SIP' (cause 20 - Subscriber absent)
[2015-07-12 21:17:46] VERBOSE[14146][C-00000001] app_dial.c: Everyone is busy/congested at this time (1:0/0/1)
[2015-07-12 21:17:46] VERBOSE[14146][C-00000001] pbx.c: Auto fallthrough, channel 'Mobile/iPhone4s-aaab' status is 'CHANUNAVAIL'
When calling to mobile it gives me an error…
Unable to create channel of type ‘SIP’ (cause 20 - Subscriber absent)
But i have registred successfully this number…
What is the problem ? Any ideas?