Board logo

標題: 能否在Asterisk Server使用USB 3G手指的打電話功能? [打印本頁]

作者: 雯雯    時間: 2011-2-1 22:38     標題: 能否在Asterisk Server使用USB 3G手指的打電話功能?

最近我根據了以下教學開啟了我隻華為E180 USB 3G手指的功能, 我在想能否在Asterisk Server使用USB 3G手指的打電話功能? 這樣便不用買GSM Gateway了!

http://www.hkepc.com/forum/viewt ... &extra=page%3D1
作者: 角色    時間: 2011-2-1 23:17

应该可以,因为从Asterisk往外看,能上网和能resolve IP就可以。

角色
作者: kannet    時間: 2011-2-2 02:07

如果係咁~咪分分鐘可以平過2b?

不過又唔係無限分鐘會唔會有問題?
作者: 角色    時間: 2011-2-2 07:40

但是不能用USB 手指的打电话的SIM卡,而是上网的SIM卡。

Asterisk能接上Internet,然后就可以拨打VoIP电话,如果你要拨打香港电话,一定要接上有HK PSTN落地的Asterisk Server,如我和ckleea都有HK PSTN落地线路,而我更加去澳门的PSTN落地。

角色
作者: ckleea    時間: 2011-2-2 09:06

回復 4# 角色

有D Ching 有多個一條 PSTN 落地。所有佢地買咗TDM400P。

如果用GSM,我相信要駁GSM gateway,幾貴!

我用PSTN analog 同2b account
作者: 角色    時間: 2011-2-2 09:38

GSM Gateway不贵,大约是300元搞定,听说效果不错,这里有member用过。

角色
作者: 雯雯    時間: 2011-2-3 21:46

回復 6# 角色

我的意思是將USB 3G手指接上電腦當GSM Gateway/GSM ATA用, 這樣便不用浪費我們手上有的資源, 而且適合有些可能會將Asterisk Server放在DC的member用!
作者: ckleea    時間: 2011-2-3 21:50

回復 6# 角色


    在那裡買到?
作者: 角色    時間: 2011-2-3 23:57

我没有买入,但是我们member里有人买入过。他在淘宝买入的,听说效果也不错。

角色
作者: 電腦超人    時間: 2011-2-4 02:05

我大概明白雯雯的意思...她是想在asterisk的PC上插上一隻有voice功能的USB modem...
找了一下好像外國也有人在嘗試(而且好像連SMS也可以)...可以參考一下...

http://forge.asterisk.org/gf/pro ... wse&forum_id=74
http://www.gsmopen.org/node/77

PS:現在好像是華為的USB modem才有voice功能...
作者: ckleea    時間: 2011-2-4 07:51

回復 10# 電腦超人

Look interesting subject. I look at GSMopen.org, it is for asterisk 1.4 and 1.6 only. It seems to work with spandsp from the source code filenames,
作者: 雯雯    時間: 2011-2-4 12:46

回復 11# ckleea

是1個有趣的課題! 而且買二手的華為USB 3G手指比GSM Gateway便宜, 又不用像GSM Gateway那樣要另外接電源! 如果join香港的3G上網plan更會免費獲得USB 3G手指.
作者: ckleea    時間: 2011-2-4 16:19

I have one 二手的華為USB 3G手指 from my previous 3G plan.
作者: ckleea    時間: 2011-2-5 07:14

Anyone tried the chan_mobile to dial in and out via bluetooth of mobile phone?

http://snapvoip.blogspot.com/200 ... -and-debugging.html
作者: 雯雯    時間: 2011-2-5 10:03

回復 14# ckleea

用藍牙不能收發sms.
作者: 電腦超人    時間: 2011-2-6 02:48

回復  ckleea

用藍牙不能收發sms.
雯雯 發表於 2011-2-5 10:03

雯雯是想用SMS來做callback的媒介?
作者: 雯雯    時間: 2011-2-6 11:30

本帖最後由 雯雯 於 2011-2-6 11:40 編輯

回復 16# 電腦超人

暫時未有計劃! 不過用藍牙的話還要用1部手機, 而且手機還要連接着電源, 否則沒電的話手機自動關機就麻煩了! 而且這方法還可以不用買GSM Module PCI板卡!
作者: 仁杰    時間: 2011-2-6 12:56

现在很多手机可以usb口充电
也就是充电的同时也可以做连接,直接通过usb连接控制SMS收发,但蓝牙就没用了,因为已经有线连接
作者: ckleea    時間: 2011-2-7 16:10

本帖最後由 ckleea 於 2011-2-7 16:33 編輯

Did you look at this?

http://code.google.com/p/datacard/

http://wiki.e1550.mobi/doku.php
作者: ckleea    時間: 2011-2-7 16:21

I have some success here after plugging in my old E169G USB 3G modem from 3HK

again (Attempt #1011)
    -- [datacard0] Trying to connect on /dev/ttyUSB2...
    -- [datacard0] Datacard has connected, initializing...
[Feb  7 16:46:09] WARNING[4513]: at_response.c:392 at_response_error: [datacard0] Error checking subscriber phone number
    -- [datacard0] Datacard needs to be reinitialized. The SIM card is not ready yet
    -- [datacard0] Error initializing Datacard
    -- [datacard0] Datacard has disconnected

    -- [datacard0] Trying to connect on /dev/ttyUSB2...
    -- [datacard0] Datacard has connected, initializing...
    -- [datacard0] Datacard initialized and ready
作者: ckleea    時間: 2011-2-7 16:30

Further update


ns*CLI> datacard show device statistics datacard0
-------------- Statistics -------------
  Device                      : datacard0
  Queue tasks                 : 55
  Queue commands              : 76
  Responses                   : 109
  Bytes of readed responces   : 1233
  Bytes of wrote commands     : 383
  Bytes of readed audio       : 0
  Bytes of wrote audio        : 0
  Readed frames               : 0
  Readed short frames         : 0
  Wrote frames                : 0
  Wrote short frames          : 0
  Wrote silence frames        : 0
  Write buffer overflow bytes : 0
  Write buffer overflow times : 0
  Incoming calls              : 0
  Waiting calls               : 0
  Handled input calls         : 0
  Fails to PBX run            : 0
  Attempts to outgoing calls  : 0
  Answered outgoing calls     : 0
  Answered incoming calls     : 0
  Seconds of outgoing calls   : 0
  Seconds of incoming calls   : 0
  ACD for incoming calls      : -1
  ACD for outgoing calls      : -1
  ASR for incoming calls      : -1
  ASR for outgoing calls      : -1
作者: 雯雯    時間: 2011-2-7 16:46

回復 20# ckleea

Congratulation!
作者: 雯雯    時間: 2011-2-7 16:49

回復 19# ckleea

More information:
http://bbs.voip88.com/thread-238-1-1.html
作者: ckleea    時間: 2011-2-7 17:00

回復 23# 雯雯


  The modem disappears for unknown reason.
作者: ckleea    時間: 2011-2-7 17:05

A reboot return the device /dev/ttyUSB0, /dev/ttyUSB1, /dev/ttyUSB2
作者: ckleea    時間: 2011-2-7 17:11

Some more postings


------------- Settings ------------
  Device                  : datacard0
  Audio                   : /dev/ttyUSB1
  Data                    : /dev/ttyUSB2
  IMEI                    :
  IMSI                    :
  Channel Language        : en
  Context                 : default
  Exten                   : +1234567890
  Group                   : 0
  RX gain                 : 0
  TX gain                 : 0
  U2Diag                  : -1
  Use CallingPres         : Yes
  Default CallingPres     : Presentation Allowed, Passed Screen
  Auto delete SMS         : Yes
  Disable SMS             : No
  Reset Datacard          : Yes
  SMS PDU                 : Yes
  Call Waiting            : auto
  DTMF                    : relax
  Minimal DTMF Gap        : 45
  Minimal DTMF Duration   : 80
  Minimal DTMF Interval   : 200
作者: ckleea    時間: 2011-2-7 17:44

Successful SMS can be sent from CLI. But not outgoing call, probably not voice enable.

作者: ckleea    時間: 2011-2-7 17:58

Updated. my E169G is already unlocked for SIM and Voice.

selection :
manufacturer - Huawei modems
model - Auto detect (recommended)

Found modem         : E169G
Model               : Huawei E169/E169G
IMEI                :
Serial NR.          :
Firmware            : 11.314.09.50.00
Compile date / time : Apr 26 2008 12:04:28
Dashboard version   : UTPS11.002.03.05.23_MAC11.201.04.02.156
Chipset             : Qualcomm MSM6280
NAND Flash          : samsung_k9f1208
Voice feature       : enabled
SIM Lock status     : unlocked
Wrong codes entered : 0 (unlock attempts left : 10)
作者: ckleea    時間: 2011-2-7 18:56

試過唔同SIMS,都係做唔到outgoing call.

   -- Accepting AUTHENTICATED call from 192.168.1xx.xxx:
       > requested format = alaw,
       > requested prefs = disabled,
       > actual format = alaw,
       > host prefs = disabled,
       > priority = reqonly
    -- Executing [xxxxxxxxxxx@DLPN_DP1:1] Dial("IAX2/6xxx-1202", "Datacard/g0/8529xxxxxxx") in new stack
[Feb  7 19:16:18] WARNING[10626]: channel.c:165 channel_request: [g0] Request to call on device which can not make call at this moment
[Feb  7 19:16:18] WARNING[10626]: app_dial.c:2039 dial_exec_full: Unable to create channel of type 'Datacard' (cause 44 - Requested channel not available)
  == Everyone is busy/congested at this time (1:0/0/1)
作者: 雯雯    時間: 2011-2-7 19:09

回復 29# ckleea

可能你要再弄一下setting, 或者嘗試用其他的華為USB 3G手指去試.
作者: ckleea    時間: 2011-3-6 14:57

暫時都未能做到incoming and outgoing call.
作者: ckleea    時間: 2011-3-6 14:59

有冇unlocked 手指試?
作者: 角色    時間: 2011-3-6 18:49

自己unlocked不是可以吗?

角色
作者: 雯雯    時間: 2011-3-6 19:22

回復 33# 角色

對呀! 我在第1樓的帖裏的連結就有教unlock方法.
作者: ckleea    時間: 2011-3-6 19:28

Has been shown unlocked.
作者: 雯雯    時間: 2011-3-6 19:55

回復 35# ckleea

show unlocked的話你可以找家人借張其他台的SIM卡試試!




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