Search code examples
bluetoothasteriskvoip

Incoming calls dialplan with asterisk and chan_mobile


I managed (with very much joy :D) to configure chan_mobile with asterisk 1.8 and my iPhone 4 and outgoing calls work nicely. I have issues with automatic answering incoming calls.

This is what my chan_mobile.conf looks like:

[adapter]
address = 11:11:11:11:11:11
id = box-1

[iphone]
address = 22:22:22:22:22:22
port = 8
context = from-test-phone
adapter = box-1

and in /etc/asterisk/extensions.conf I added

[from-test-phone]
exten => s,1,Answer()
exten => s,n,Wait(1)
exten => s,n,Hangup()

But when I call my mobile phone there is no answer.

The bluetooth device is paired and active

# rasterisk
> mobile show devices

ID              Address           Group Adapter         Connected State      SMS
iphone      22:22:22:22:22:22      0     box-1            Yes     Free       No 

Am I missing something?


Solution

  • Apparently it was enough to type

    rasterisk
    > core set verbose 4
    > core set debug 4
    

    thanks user1938742!