Board logo

標題: Chan_mobile and asterisk [打印本頁]

作者: ckleea    時間: 2011-4-30 09:51     標題: 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
作者: 角色    時間: 2011-4-30 10:34

Thank cleea for letting us know the most updated information. I believe that some of us will play with this mobile channel since we have used a lot of GSM mobile in Hong Kong.

Is there any approved list of 3G modems that is allowed to be used in Asterisk?

YH
作者: ckleea    時間: 2011-4-30 12:01

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
作者: ckleea    時間: 2011-4-30 12:03

I have not tested SMS with chan_mobile
Also not tested the headset
作者: ckleea    時間: 2011-4-30 12:19

本帖最後由 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
作者: ckleea    時間: 2011-4-30 14:13

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
作者: 角色    時間: 2011-4-30 22:23

You meant the integration of mobile phone is very easy and without too much modification?, right?

How is the performance after entering your IVR?

YH
作者: ckleea    時間: 2011-4-30 23:04

Very good,和Bubblestar 兄試,基本上冇問題。
作者: alang    時間: 2011-5-2 13:14

最近也剛完成這個的實做,硬體使用的是
淘汰的舊PC + IVT BlueSoleil USB Dongle + Nokia E65

http://www.osslab.org.tw/index.p ... %E6%A9%9F#section_1
作者: ckleea    時間: 2011-5-3 10:20

回復 9# alang

你有否出現bluetooth connection的問題?
作者: bubblestar    時間: 2011-5-3 10:43

Alang 師兄在他的網站有提到,可以執行一句指令,讓bluetooth dongle 及手機 被discoverable及連接。
作者: alang    時間: 2011-5-3 12:47

沒錯,那個指令很容易忽略。
作者: ckleea    時間: 2011-5-3 21:59

回復 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
作者: alang    時間: 2011-5-4 15:58

我只有試過兩支手機
Nokia E65 -> 通話正常
HTC Magic -> 透過藍芽,只能撥號,但無法傳遞聲音, 撥號後,手機自動切換成 hands-free mode
作者: Qnewbie    時間: 2011-5-4 16:32

回復 14# alang


    Wondering if 3-way calling works seamless with chan_mobile?
作者: bubblestar    時間: 2011-5-4 17:09

看來以藍芽撥打電話,並不一定能支援所有手機,可能要視乎手機機種是否與藍芽相配合。此外,據知也不是每個藍芽Adapter/Dongle也可以順利安裝呢。
作者: ckleea    時間: 2011-5-4 17:43

回復 14# alang


    Your HTC uses Windows mobile? I encounter same problem
作者: alang    時間: 2011-5-4 17:54

回復 17# ckleea

HTC Magic 是 Android platform
作者: alang    時間: 2011-5-4 18:05

回復 16# bubblestar

這兩個硬體的相容性可以參考這兩個連結
http://www.stanchina.net/~flavio ... etooth_devices.html
http://www.voip-info.org/wiki/view/chan_mobile

其實我對於這樣的組合,玩玩可以,但想不出它有什麼應用的價值,如果有人有想到可作啥應用,請分享。
作者: alang    時間: 2011-5-4 18:14

本帖最後由 alang 於 2011-5-4 18:16 編輯

回復 15# Qnewbie

我原本要幫你作這個測試,不過後來仔細想了一下,據我瞭解,三方通話是終端電話的功能,與 Asterisk 並無關係,以這個實驗來說,如果 SIP Client 使用 X-Lite/SJphone, 這兩個軟體都有支援三方通話,不過對於手機那端應該是不行,我不曾使用過手機作三方通話,或許其他人有不同的經驗。

這個實驗還有什麼項目需要作測試,請儘管說,結果我都會公佈在 OSSLab 方便大家搜尋。
作者: ckleea    時間: 2011-5-4 18:29

回復 19# alang


    謝謝,同意你的見解,只是作後備用途,不過有時電話plan 有多餘資源,可以物盡其用。
作者: Qnewbie    時間: 2011-5-4 21:55

回復 20# alang


    Yes, you are right! 3-way calling is a function of mobile phone, not a function of Asterisk. Sorry for mixed-up.
作者: ckleea    時間: 2011-5-14 15:59

回復 22# Qnewbie

我想nokia的應用最理想。
作者: ckleea    時間: 2011-7-9 22:24

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




歡迎光臨 電訊茶室 (http://telecom-cafe.com/forum/) Powered by Discuz! 7.2