返回列表 發帖

Chan_mobile and asterisk

It turns out to be very easy to use our mobile phone as a FXO device for asterisk

Just set up the bluetooth connection with the linux and then configure two files for asterisk
chan_mobile.conf
extension.conf

Then you can dial out to your friend using your mobile phone plan

https://wiki.asterisk.org/wiki/display/AST/Mobile+Channel

I am sure many of us have spare minutes for your mobile phone plan

This is different from the USB 3G stick I mention in the other threads. It is just simple asterisk built insupport of mobile device. What you need are
Compiled asterisk with chan_mobile enable
A Bluetooth dongle which first pair your mobile phone with the Bluetooth dongle
After that, load chan_mobile.so at asterisk CLI.
Update your chan_mobile.conf and extensions.conf
Unload and load chan_mobile.so again
Then enjoy incoming or outgoing call using your 2G or 3G mobile phone bridge to asterisk.

For the USB stick, it needs to use different driver chan_datacard

Both achieve same result, voice and SMS

TOP

I have not tested SMS with chan_mobile
Also not tested the headset

TOP

本帖最後由 ckleea 於 2011-4-30 14:29 編輯

回復 2# 角色


For USB stick that works with asterisk, e180 by pccw or k3715 by smartone vodafone works very well.

Information can be found here
http://www.telecom-cafe.com/foru ... &extra=page%3D1

TOP

To show you more output, when dial in
  1. Verbosity is at least 3
  2.   == Starting Mobile/Nokia C5-03-7bde at incoming-mobile,s,1 failed so falling back to exten 's'
  3.   == Starting Mobile/Nokia C5-03-7bde at incoming-mobile,s,1 still failed so falling back to context 'default'
  4.     -- Sent into invalid extension 's' in context 'default' on Mobile/Nokia C5-03-7bde
  5.     -- Executing [i@default:1] BackGround("Mobile/Nokia C5-03-7bde", "pbx-invalid") in new stack
  6.     -- <Mobile/Nokia C5-03-7bde> Playing 'pbx-invalid.slin' (language 'en')
  7.     -- Executing [i@default:2] Goto("Mobile/Nokia C5-03-7bde", "1001,1") in new stack
  8.     -- Goto (default,1001,1)
  9.     -- Executing [1001@default:1] Answer("Mobile/Nokia C5-03-7bde", "") in new stack
  10.     -- Executing [1001@default:2] Wait("Mobile/Nokia C5-03-7bde", "2") in new stack
  11.     -- Executing [1001@default:3] BackGround("Mobile/Nokia C5-03-7bde", "thank-you-for-calling") in new stack
  12.     -- <Mobile/Nokia C5-03-7bde> Playing 'thank-you-for-calling.slin' (language 'en')
  13.     -- Executing [1001@default:4] BackGround("Mobile/Nokia C5-03-7bde", "vm-enter-num-to-call") in new stack
  14.     -- <Mobile/Nokia C5-03-7bde> Playing 'vm-enter-num-to-call.slin' (language 'en')
  15.     -- Executing [1001@default:5] WaitExten("Mobile/Nokia C5-03-7bde", "") in new stack
  16.   == CDR updated on Mobile/Nokia C5-03-7bde
  17.     -- Executing [300@default:1] Playback("Mobile/Nokia C5-03-7bde", "demo-echotest") in new stack
  18.     -- <Mobile/Nokia C5-03-7bde> Playing 'demo-echotest.slin' (language 'en')
複製代碼
I have not touched my dialplan so it goes into my IVR

TOP

Very good,和Bubblestar 兄試,基本上冇問題。

TOP

回復 9# alang

你有否出現bluetooth connection的問題?

TOP

回復 12# alang


    Your advice is very good. Did you encounter problem that has one way audio or no audio. I try two mobile phones, one has perfect voice quality but other has one way audio

TOP

回復 14# alang


    Your HTC uses Windows mobile? I encounter same problem

TOP

回復 19# alang


    謝謝,同意你的見解,只是作後備用途,不過有時電話plan 有多餘資源,可以物盡其用。

TOP

回復 22# Qnewbie

我想nokia的應用最理想。

TOP

There have been some problems in the latest asterisk chan_mobile. I found similar connect and disconnect problem as Bubblestar Ching described to me.

TOP

返回列表