How to select chan_mobile in Menuselect?

I have my mobile phone paired with the OS (centos 9) but still I can’t select the chan_mobile channel in Menuselect? How to do that. Please help. Thanks for reading.

./configure --with-pjproject-bundled --with-jansson-bundled --with-bluetooth

Especially the last parameter “–with-bluetooth”

type: ./configure --help (two hyphens)
It will show you a list of options. Read it. If you find --with-bluetooth in the list then it is valid, if you don’t find it then it is not.

There are two possible interpretations of “valid” here. It is valid in the sense that it is recognized by configure, assuming that the configure is the one from Asterisk. However it is possible that the the code that this is intended to enable no longer exists in Asterisk, so one can’t tell if it is a useful option just from configure, itself.

I don’t know if it is a useful option to select.

If it’s not possible. Then what is the right way to enable chan_mobile in menuselect while installing asterisk.

It will only be selectable if all the dependencies to build it are met.

Any documentation available on the list of dependencies to be resolved…

If you open menuselect and select the module, it will state the dependencies that aren’t met at the bottom of the screen. There is also the install_prereq script in contrib/scripts which will attempt to install all dependencies, including for chan_mobile.

Dear Members,
Kindly Help me. I have done everything perfectly. But still I don’t know why I am not able to take the incoming calls to my mobile from Asterisk. I am getting the below message. Please Help. Thanks.

*CLI> [Sep 1 19:59:49] WARNING[3050][C-00000001]: pbx.c:4506 __ast_pbx_run: Channel ‘Mobile/vivo-96e6’ sent to invalid extension but no invalid handler: context,exten,priority=mobile,s,1

Please find the configs:
chan_mobile:
;
; 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=E8:48:B8:C8:40:00
;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]).

[vivo]
address=74:33:57:7A:A4:DA ; the address of the phone
;[iqoo]
;address=FC:1D:2A:50:53:AD
port=3 ; the rfcomm port number (from mobile search)
context=mobile ; dialplan context for incoming calls
adapter=blue ; adapter to use
group=1 ; this phone is in channel group 1
;sms=no ; support SMS, defaults to yes
;nocallsetup=yes ; set this only if your phone reports that it supports call progress notification, but does not do it. Motorola L6 for example.

On Sunday 01 September 2024 at 16:46:15, shafty via Asterisk Community wrote:

*CLI> [Sep 1 19:59:49] WARNING[3050][C-00000001]: pbx.c:4506
__ast_pbx_run: Channel ‘Mobile/vivo-96e6’ sent to invalid extension but no
invalid handler: context,exten,priority=mobile,s,1

Please show us the section of your extensions.conf file where the “mobile”
context is defined, with an extension “s”.

Antony.


“It is easy to be blinded to the essential uselessness of them by the sense of
achievement you get from getting them to work at all. In other words - and
this is the rock solid principle on which the whole of the Corporation’s
Galaxy-wide success is founded - their fundamental design flaws are completely
hidden by their superficial design flaws.”

  • Douglas Noel Adams

                                                Please reply to the list;
                                                      please *don't* CC me.
    

Thanks. Thing is working now. But How to make asterisk to say something:
[general]
ttsengine=festival

[mobile]
exten => s,1,Playback(hello-world)
same => n,Say(“Welcome to Prabhakarans Interactive Portal”)

I am getting the below message in CLI:
*CLI> – Executing [s@mobile:1] Playback(“Mobile/vivo-c434”, “hello-world”) in new stack
– <Mobile/vivo-c434> Playing ‘hello-world.gsm’ (language ‘en’)
[Sep 2 13:30:52] WARNING[2707][C-00000003]: pbx.c:2927 pbx_extension_helper: No application ‘Say’ for extension (mobile, s, 2)
== Spawn extension (mobile, s, 2) exited non-zero on ‘Mobile/vivo-c434’

On Monday 02 September 2024 at 10:14:32, shafty via Asterisk Community wrote:

WARNING[2707][C-00000003]: pbx.c:2927 pbx_extension_helper: No application
‘Say’ for extension (mobile, s, 2) == Spawn extension (mobile, s, 2)

https://docs.asterisk.org/Asterisk_21_Documentation/API_Documentation/Dialplan_Applications/Festival/

Antony.


“The future is already here. It’s just not evenly distributed yet.”

  • William Gibson

                                                Please reply to the list;
                                                      please *don't* CC me.
    

[Sep 2 15:25:46] WARNING[4004][C-00000001]: pbx.c:2927 pbx_extension_helper: No application ‘Festival’ for extension (mobile, s, 2)
== Spawn extension (mobile, s, 2) exited non-zero on ‘Mobile/vivo-b4a4’

On Monday 02 September 2024 at 12:07:23, shafty via Asterisk Community wrote:

[Sep 2 15:25:46] WARNING[4004][C-00000001]: pbx.c:2927
pbx_extension_helper: No application ‘Festival’ for extension (mobile, s,
2) == Spawn extension (mobile, s, 2) exited non-zero on ‘Mobile/vivo-b4a4’

Since this is an Asterisk system you have compiled from source, please check
whether you selected the Festival module to be built.

Antony.


All generalisations are inaccurate.

                                               Please reply to the list;
                                                     please *don't* CC me.

Yes. app_Festival was “Selected” but the module name was also different. I think it is “Speech_Dialplan”

It’s not. The dialplan application for app_festival is indeed “Festival”. If that’s what you want to use, then you have to see why it is not loading.

festival is working. I am looking for some logic through which I can merge all incoming calls automatically. Possible?

Everything is fine. Currently I want to try the same on a dual-sim mobile. Is it possible to program for each sim card differently? Please confirm. Thanks :slight_smile:

I have no knowledge or experience of chan_mobile, it is a module used by few people. Responses here will reflect that.

1 Like

Hi. Thanks for the reply. I never have altered another person’s code so far. But I want to add the functionality of identifying the sim slot status (engaged or free) to the chan_mobile.c

Where to start? Please guide me. I have 15 years of knowledge in programming. I believe I can add this feature to it. Thanks :slight_smile: