chan_mobile help for install

Joined
Dec 3, 2007
Messages
8,069
Points
88
i searched some solutions on the web by google, and i look at this here.

http://bugs.digium.com/view.php?id=12015

I see the problem - it looks like one of the unofficial patches that allows chan_mobile to work on 1.4 removes the link dependency on bluetooth (as you indicated).

The part of the patch that removes the:

<depend>bluetooth</depend>

from the MODULEINFO part of chan_mobile.c should NOT have been done.

That fixed it...should have seen it earlier.
I don't know where is resolving problem!
Somebody knowing?
 
Joined
Feb 25, 2008
Messages
111
Points
0
I am still obtaining the same error:

asterisk: symbol lookup error: /usr/lib/asterisk/modules/chan_mobile.so: undefined symbol: hci_get_route

I have applied the patches about previously installation.

I also saw the http://bugs.digium.com/view.php?id=12015 bug, but I can't find the solution.

Ciao.
 
Joined
Feb 25, 2008
Messages
111
Points
0
About this error, I suppose that the maintainer of the unofficial patch that allows chan_mobile work in asterisk 1.4 should add again the removed dependency, but I am worry because the bug in digium is about March month.

no solution?
 
Joined
Dec 3, 2007
Messages
8,069
Points
88
from asterisk french forum:
http://www.asterisk-france.net/communit ... 536&page=2

cd /usr/src
svn co http://svn.digium.com/svn/asterisk-addons/trunk asterisk-addons-trunk

cd /usr/src/asterisk-addons-trunk
cp /usr/src/asterisk-addons-trunk/chan_mobile.c /usr/src/asterisk-addons-trunk/chan_mobile.c.original
sed -i 's|ast_debug(1,|ast_log(LOG_DEBUG,|' /usr/src/asterisk-addons-trunk/chan_mobile.c
sed -i 's|, config_flags);|);|' /usr/src/asterisk-addons-trunk/chan_mobile.c
./configure
make clean
make menuselect
[ONLY ON SELECTED CHAN_MOBILE]
make && make install && make samples
but i don't find chan_mobile.so!

Curiously , from methode TB2.6 working is good.
I don't say than tb is good, but chan_mobile is ok.

if it's possible to take this exemple... !!

I try to copy chan_mobile from tb2.6 to Elastix i look at the result.
 
Joined
Dec 3, 2007
Messages
8,069
Points
88
ok!
I try to install these rpm files this nigth or tomorrow.

Thanks. ;)<br><br>Post edited by: danardf, at: 2008/06/16 10:27
 

Bob

Joined
Nov 4, 2007
Messages
2,400
Points
36
Good news,

Fresh box installed with 1.0-1 ISO image, yum updated to Elastix 1.0-17.

Loaded Chan_mobile, Asterisk did not die. Show modules shows the chan_mobile loaded. Have not had time to test all the way through, as I believe my Bluetooth adaptor is not compatible (have some new ones on their way which are CSR based)

But for those that need steps I have taken

rpm -Uvh http://www.elastix.org/downloads/asteri ... 1.i386.rpm

wget http://www.elastix.org/downloads/asteri ... 3.i386.rpm
wget http://www.elastix.org/downloads/asteri ... 3.i386.rpm

yum -y install bluez-utils bluez-libs bluez-hcidump

rpm -ivh asterisk-addons-1.4.7-3.i386.rpm
rpm -ivh asterisk-addons-chan_mobile-1.4.7-3.i386.rpm

Thanks Edgar,:) looking pretty good at the moment....

Regards

Bob<br><br>Post edited by: Bob, at: 2008/06/16 14:36
 
Joined
Dec 3, 2007
Messages
8,069
Points
88
ok.
It's a good news. :)

yes, befor installing addons & chan-mobile, we have to need absolutly to install bluez's package.
I think that by yum -y install bluez* is ok.
 

Bob

Joined
Nov 4, 2007
Messages
2,400
Points
36
I have made a change to my previous post regarding the bluez library in line with what Danardf mentioned. I just expanded what he mentioned. Not trying to split hairs, just prefer to spell out what we are loading.

You also need to get the mac address of your Bluetooth adaptor which is done by

[root@elastix asterisk]# hcitool dev
Devices:
hci0 00:11:67:21:1A:F4

Keep note of this address as you will need it for the following config file.

One other thing if you haven't been following so far is that you will need a etc/asterisk/mobile.conf file
like so

=====================================================
;
; mobile.conf
; configuration file for chan_mobile
;

[general]
interval=10 ; Number of seconds between trying to connect to devices.

; The following is a list of adapters we use.
; id must be unique and address is the bdaddr of the adapter from hciconfig.
; Each adapter may only have one device (headset or phone) connected at a time.
; Add an [adapter] entry for each adapter you have.

; the following information is from the Bluetooth adaptor you have installed - leave name as Blue, just replace the mac address

[adapter]
id=blue
address=00:11:67:21:1A:F4


; The following is a list of the devices we deal with.
; Every device listed below will be available for calls in and out of Asterisk.
; Each device needs an adapter=xxxx entry which determines which bluetooth adapter is used.
; Use the CLI command 'mobile search' to discover devices.
; Use the CLI command 'mobile show devices' to see device status.
;
; To place a call out through a mobile phone use Dial(Mobile/[device]/NNN.....) in your dialplan.
; To call a headset use Dial(Mobile/[device]).

; the following information is your phone - change the name, and mac address for your phone,t leave the adapter as is - matches the above

[Motorola]
address=00:E0:91:7F:46:44 ; the address of the phone
port=4 ; the rfcomm port number (from mobile search)
context=from-pstn ; dialplan context for incoming calls
adapter=blue ; adapter to use
====================================================

Just one other word, reboot your Elastix system once everything is in place.

You then load your chan_mobile.so under the cli like so and you should see a response like

module load chan_mobile.so
== Parsing '/etc/asterisk/mobile.conf': Found
== Registered application 'MobileStatus'
== Registered application 'MobileSendSMS'
== Registered channel type 'Mobile' (Bluetooth Mobile Device Channel Driver)
Loaded chan_mobile.so => (Bluetooth Mobile Device Channel Driver)
elastix*CLI> mobile search
Address Name Usable Type Port
00:15:EB:13:9F:5C ZTE F156 No Headset 0

As you can see the phone I was testing with is no suitable....at least that is back in my control now...If this phone worked then this is the information that I would put into the phone part of the mobile.conf file....

Regards

Bob<br><br>Post edited by: Bob, at: 2008/06/16 14:50
 
Joined
Dec 3, 2007
Messages
8,069
Points
88
Will have to making a command like this:

dbus-send --system --type=method_call --print-reply --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:discoverable

this chain's command must be into executed file, "discovery", for exemple with chmod 777.

If i refer to this link: http://www.trixbox.org/wiki/chan-mobile

But, yes, it's the great solution.
I going to try this when it's possible.
 
Joined
Feb 22, 2008
Messages
38
Points
0
When I load chan_mobile.so from the CLI, I see only

Code:
pbx*CLI> module load chan_mobile.so
  == Parsing '/etc/asterisk/mobile.conf': Found
pbx*CLI>
and after that I can't do any "mobile search". Is it just because I'm trying to use a DBT-122 (which is flagged as NOT WORKING)?
I'll buy a new bluetooth dongle, by the way :p
 
Joined
Jun 16, 2008
Messages
20
Points
0
Fresh install, last rpm's used.

Ok i have managed to pair system&my phones 'nokia n95 and nokia 6605'

devices are reported as present and 'ok' in asterisk

But i ran into codec translation issue, during the call in: From another mobile>>N95>>SIP AND
out: From Sip device>>N95>> to any mobile

It crashes every time, so i give you the logs

SIP>>>OUTSIDE
[Jun 16 22:12:31] DEBUG[3724] chan_mobile.c: Calling N95/XXXXXXXXXX on Mobile/N95-8e15
[Jun 16 22:12:31] VERBOSE[3724] logger.c: -- Called N95/XXXXXXXXXX
[Jun 16 22:12:31] WARNING[3724] channel.c: No path to translate from Mobile/N95-8e15(0) to SIP/30-09b077f0(4)
[Jun 16 22:12:31] DEBUG[3719] chan_mobile.c: rfcomm_write() (N95) [ATDXXXXXXXXXX;
]
[Jun 16 22:12:32] DEBUG[3720] chan_mobile.c: accept()ed socket.
[Jun 16 22:12:32] DEBUG[3720] chan_mobile.c: Incoming Audio Connection from device 00:1C:9A:2C:75:DB MTU is 16
[Jun 16 22:12:32] DEBUG[3720] chan_mobile.c: About to accept() socket.
[Jun 16 22:12:32] DEBUG[3719] chan_mobile.c: rfcomm_read() (N95) [OK]
[Jun 16 22:12:32] DEBUG[3693] chan_mobile.c: Checking device state for device N95-8e15
[Jun 16 22:12:32] DEBUG[3693] chan_mobile.c: Checking device state for device N95
[Jun 16 22:12:32] DEBUG[3719] chan_mobile.c: rfcomm_read() (N95) [+CIEV: 3,2]
[Jun 16 22:12:32] DEBUG[3719] chan_mobile.c: rfcomm_read() (N95) [+CIEV: 4,2]
[Jun 16 22:12:36] DEBUG[3719] chan_mobile.c: rfcomm_read() (N95) [+CIEV: 2,1]
[Jun 16 22:12:36] VERBOSE[3724] logger.c: -- Mobile/N95-8e15 answered SIP/30-09b077f0
[Jun 16 22:12:36] WARNING[3724] channel.c: No path to translate from SIP/30-09b077f0(4) to Mobile/N95-8e15(0)
[Jun 16 22:12:36] WARNING[3724] app_dial.c: Had to drop call because I couldn't make SIP/30-09b077f0 compatible with Mobile/N95-8e15
NOKIA 6605
[Jun 16 22:31:01] VERBOSE[4005] logger.c: -- Executing [s-CHANUNAVAIL@macro-exten-vm:1] PlayTones("Mobile/N6605-71ff", "congestion") in new stack
[Jun 16 22:31:01] WARNING[4005] channel.c: Unable to find a codec translation path from unknown to slin
[Jun 16 22:31:01] WARNING[4005] indications.c: Unable to set 'Mobile/N6605-71ff' to signed linear format (write)
[Jun 16 22:31:01] NOTICE[4005] res_indications.c: Unable to start playtones
[Jun 16 22:31:01] VERBOSE[4005] logger.c: == Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 1) exited non-zero on 'Mobile/N6605-71ff' in macro 'exten-vm'
[Jun 16 22:31:01] VERBOSE[4005] logger.c: == Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 1) exited non-zero on 'Mobile/N6605-71ff'
 
Joined
Dec 3, 2007
Messages
8,069
Points
88
hi :)

i trying to install the news rpm files and i have not error when i reload asterisk (amportal restart)

but, i can't detect my bluetooth device because i use VMWARE :(

good, now, i go waiting Elastix 1.1 (stable version), for migrate TB2.6 to Elastix.

i hope that the chan_mobile would included to news version's elastix ;)

Thanks for this great work B)<br><br>Post edited by: danardf, at: 2008/06/17 09:00
 
Joined
Jun 16, 2008
Messages
20
Points
0
So,is there anyone else who has managed to install chan_mobile and did some test besides me ? I still have segmentation fault every time when i try to use paired devices.
 
Joined
Dec 3, 2007
Messages
8,069
Points
88
your mobile is there on the list's compatibility ?
And your bluetooth device also?
 
Joined
Feb 25, 2008
Messages
111
Points
0
I have tried to run chan_mobile this night following the before posts.

Asterisk does not die, but the 'mobile search' command not found.

hcitool scan, can to detect my phone Nokia N80, but when I try to pairing with dongle, I introduce the passkey "1234" but does not pair.

It seems to be the bluez-utils 3.7 in CentOS have not "passkey-agent" built in.

Any solution for this?

Thanks.
 
Joined
Dec 3, 2007
Messages
8,069
Points
88
have you make this command befor?

dbus-send --system --type=method_call --print-reply --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:discoverable

this chain's command must be into executed file, "discovery", for exemple with chmod 777.
after, make a >hcitool scan, and in a same time perform a scan bluetooth device from your mobile/(bluetooth/devices/search)...something like that

like me, the device is not very well detecting. But, after several trying, is good.

After detect the mobile, you must to modify mobile.conf and restart amportal (>amportal restart)
go to asterisk CLI and write mobile sreach.
Look the module by following command:> show module like chan_ [Enter]
you must have to a module list beguining by chan_, so chan_mobile.
Chan_mobile must to appear if bluetooth device is detect.!!!

i have just use the following instruction on this link :
http://www.trixbox.org/wiki/chan-mobile<br><br>Post edited by: danardf, at: 2008/06/21 09:50
 
Joined
Jun 16, 2008
Messages
20
Points
0
go to /etc/bluetooth/configfiledontrememberthename

set the pin it is BlueZ by defualt
 
Joined
Feb 25, 2008
Messages
111
Points
0
Hello danardf, I have followed the instruction of previous posts and http://www.trixbox.org/wiki/chan-mobile but there was no luck.

I have executed:
Code:
dbus-send --system --type=method_call --print-reply --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:discoverable
The answer is something like that:
method return sender=:1.5 -> dest=:1.6

My config files are:
Code:
hcid.conf:
-------------------
options {
        autoinit yes;
        security user;
        pairing multi;
        passkey "1234";
}
device {
        name "Elastix";
        class 0x000100;
        iscan enable; pscan enable;
        lm accept;
        lp rswitch,hold,sniff,park;
}
-------------------------
I have tested using a diferent class parameters.

My mobile.conf is:
Code:
[general]
interval=60 

[adapter]
id=blue
address=00:14:85.90.3A.08

[NokiaN80]
address=00:17:E4:E3:16:63 
port=10 
context=from-pstn
--------------------

Executing:
[root@elastix i386]# hcitool scan
Scanning ...
00:17:E4:E3:16:63 Amigo

--------------------
My dongle is:
Code:
[root@elastix i386]# hciconfig -a
hci0:   Type: USB
        BD Address: 00:14:85:90:3A:08 ACL MTU: 192:8 SCO MTU: 64:8
        UP RUNNING PSCAN
        RX bytes:4853 acl:10 sco:0 events:201 errors:0
        TX bytes:1478 acl:10 sco:0 commands:92 errors:0
        Features: 0xff 0xff 0x8f 0xf8 0x18 0x18 0x00 0x80
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH HOLD SNIFF PARK
        Link mode: SLAVE ACCEPT
        Name: 'Elastix'
        Class: 0x000100
        Service Classes: Unspecified
        Device Class: Computer, Uncategorized
        HCI Ver: 1.2 (0x2) HCI Rev: 0x639 LMP Ver: 1.2 (0x2) LMP Subver: 0x639
        Manufacturer: Cambridge Silicon Radio (10)

It seems to be the chip is the correct (Cambridge).
---------------------

When I scan from my phone device, I see the "Elastix" dongle device, the phone ask me for a password then I introduce the passkey "1234" and I obtain a message saying impossible to pair.

I have executing while in elastix hcidump I say the next message when I try to pair from my phone:

Code:
[root@elastix i386]# hcidump
HCI sniffer - Bluetooth packet analyzer ver 1.32
device: hci0 snap_len: 1028 filter: 0xffffffff
> HCI Event: Connect Request (0x04) plen 10
< HCI Command: Accept Connection Request (0x01|0x0009) plen 7
> HCI Event: Command Status (0x0f) plen 4
> HCI Event: Connect Complete (0x03) plen 11
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
> ACL data: handle 42 flags 0x02 dlen 12
    L2CAP(s): Connect req: psm 1 scid 0x0040
< ACL data: handle 42 flags 0x02 dlen 16
    L2CAP(s): Connect rsp: dcid 0x0040 scid 0x0040 result 0 status 0
      Connection successful
> HCI Event: Page Scan Repetition Mode Change (0x20) plen 7
> HCI Event: Number of Completed Packets (0x13) plen 5
> HCI Event: Max Slots Change (0x1b) plen 3
> HCI Event: Command Status (0x0f) plen 4
< HCI Command: Write Link Policy Settings (0x02|0x000d) plen 4
> HCI Event: Read Remote Supported Features (0x0b) plen 11
> HCI Event: Command Complete (0x0e) plen 6
< HCI Command: Change Connection Packet Type (0x01|0x000f) plen 4
> HCI Event: Command Status (0x0f) plen 4
< HCI Command: Remote Name Request (0x01|0x0019) plen 10
> HCI Event: Connection Packet Type Changed (0x1d) plen 5
> HCI Event: Command Status (0x0f) plen 4
> HCI Event: Remote Name Req Complete (0x07) plen 255
> HCI Event: PIN Code Request (0x16) plen 6
< HCI Command: PIN Code Request Negative Reply (0x01|0x000e) plen 6
> ACL data: handle 42 flags 0x02 dlen 12
    L2CAP(s): Disconn req: dcid 0x0040 scid 0x0040
< ACL data: handle 42 flags 0x02 dlen 12
    L2CAP(s): Disconn rsp: dcid 0x0040 scid 0x0040
> HCI Event: Command Complete (0x0e) plen 10
> HCI Event: Number of Completed Packets (0x13) plen 5
> HCI Event: Disconn Complete (0x05) plen 4
The lines with the problem are:

> HCI Event: PIN Code Request (0x16) plen 6
< HCI Command: PIN Code Request Negative Reply (0x01|0x000e) plen 6


Surfing by google I found the next message:
http://www.centos.org/modules/newbb/vie ... c_id=14082

The message talks about the missing app "passkey-agent" from a user obtaining the same problem.

------------------

So, finaly, I execute:
amportal stop
amportal start
asterisk -r
elastix*CLI>module load chan_mobile
== Parsing '/etc/asterisk/mobile.conf': Found
elastix*CLI>mobile search
No such command 'mobile search' (type 'help' for help)

Conclussion, there is no luck for me!

Thanks
 
Joined
Jun 16, 2008
Messages
20
Points
0
Stupid question have you restarted you bt service?
Agent is not missing coz i HAVE managed to pair my 2 phone with elastix.
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,994
Messages
131,110
Members
17,716
Latest member
Orbit114
Top