[asterisk-bugs] [JIRA] (ASTERISK-28934) chan_mobile won't load without chan_alsa

Pete Kirkham (JIRA) noreply at issues.asterisk.org
Sat Jun 6 04:44:25 CDT 2020


    [ https://issues.asterisk.org/jira/browse/ASTERISK-28934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=251057#comment-251057 ] 

Pete Kirkham commented on ASTERISK-28934:
-----------------------------------------

Here are the error messages. I made chan_mobile a required in modules.conf so the load will abort.


[Jun  4 18:23:49] VERBOSE[29797] loader.c: Loading chan_mobile.so.
[Jun  4 18:23:49] ERROR[29797] chan_mobile.c: Unable to listen sco listener socket.
[Jun  4 18:23:49] ERROR[29797] chan_mobile.c: Skipping adapter blue. Error binding audio connection listerner socket.
[Jun  4 18:23:49] ERROR[29797] chan_mobile.c: ***********************************************************************
No adapters could be loaded from the configuration file.
Please review mobile.conf. See sample for details.
***********************************************************************
[Jun  4 18:23:49] ERROR[29797] chan_mobile.c: Errors reading config file chan_mobile.conf. Not loading module.
[Jun  4 18:23:49] ERROR[29797] loader.c: *** Failed to load required module chan_mobile.so
[Jun  4 18:23:49] ERROR[29797] asterisk.c: Module initialization failed.  ASTERISK EXITING!

Here is chan_mobile.conf
;
; chan_mobile.conf
; configuration file for chan_mobile
;

[general]
interval=30		; 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.

[adapter]
id=blue
address=5C:F3:70:75:26:08

;forcemaster=yes	; attempt to force adapter into master mode. default is no.
;alignmentdetection=yes  ; enable this if you sometimes get 'white noise' on asterisk side of the call
			; its a bug in the bluetooth adapter firmware, enabling this will compensate for it.
			; default is no.


; 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.....) or Dial(Mobile/gn/NNN......) in your dialplan.
; To call a headset use Dial(Mobile/[device]).

[galaxy]
address=64:89:F1:C5:FE:5E	; Galaxy A40
port=3				; the rfcomm port number (from mobile search)
context=KFONE-default		; dialplan context for incoming calls
adapter=blue			; adapter to use
group=1				; this phone is in channel group 1

when I built including chan_alsa, the problem disappeared.
Best regards,
Pete

> chan_mobile won't load without chan_alsa
> ----------------------------------------
>
>                 Key: ASTERISK-28934
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-28934
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Addons/chan_mobile
>    Affects Versions: 16.10.0
>         Environment: ubuntu 18.04 asterisk 16.10.0
>            Reporter: Pete Kirkham
>            Assignee: Pete Kirkham
>            Severity: Minor
>
> I didn't think I needed chan_alsa so I excluded it from the build but chan_mobile won't load without it.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list