chan_mobile /usr/sbin/safe_asterisk: line 117: 118

paguira

Joined
Jan 17, 2008
Messages
127
Likes
0
Points
0
#1
I install chan_mobile like this:

Code:
rpm -Uvh http://www.elastix.org/downloads/ast...4.7-1.i386.rpm
wget http://www.elastix.org/downloads/ast...4.7-3.i386.rpm
wget http://www.elastix.org/downloads/ast...4.7-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

service bluetooth restart
amportal restart
We configure our bluetooth dongle:

Code:
# dbus-send --system --type=method_call --print-reply --dest=org.bluez /org/bluez/hci0 org.bluez.Adapter.SetMode string:discoverable
/etc/bluetooth/hcid.conf

Code:
options {
	autoinit yes
	security auto ;
	pairing multi ;
	passkey "1234" ; 
}

device {
       name "Elastix-default";
       class 0x000100;
       iscan enable; pscan enable;
       lm accept;
       lp rswitch,hold,sniff,park;
}

device hci0{
      name "Elastix1";
      class 0x000100;
      iscan enable; pscan enable;
      lm accept;
      lp rswitch,hold,sniff,park;
}
We restart the Bluetooth:

Code:
# service bluetooth restart
We are looking for the MAC address of the Bluetooth Dongle:

Code:
# hcitool dev
Devices:
        hci0    00:02:72:xx:xx:xx
We are looking for the MAC address of the phone (making the phone visible):

Code:
# hcitool scan
Scanning ...
        00:17:E3::xx:xx:xx       Nokia 6125
It seeks the port with asterisk:

Code:
# asterisk -r
CLI> mobile search
Setting /etc/asterisk/mobile.conf:

Code:
[general]
Interval=60 ;
[adapter]
Id=blue;
Address=00:02:72:xx:xx:xx;

[Nokia 6125]
address=00:16:BC:xx:xx:xx ; the address of the phone
port=8 ; the rfcomm port number (from mobile search)
context=from-pstn ; dialplan context for incoming calls
adapter=blue ; adapter to use
On stop Asterisk:

Code:
# amportal stop

We are looking for our server asterisk with our phone, in my case is Elastix1.

Reload Asterisk:
Code:
# amportal start
Unfortunately I have a problem:

Figure

Tel A <- Mobile <- chan_mobile <- asterisk <- Tel B

The phone A rings, but when I won, I have the following message and restart asterisk:

Code:
/usr/sbin/safe_asterisk: line 117: 11840 Segmentation fault      (core dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} >&/dev/${TTY} </dev/${TTY}
Asterisk ended with exit status 139
Asterisk exited on signal 11.
Automatically restarting Asterisk.
mpg123: no process killed
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,915
Messages
130,920
Members
17,595
Latest member
feparra121
Top