返回列表 發帖
From /var/log/asterisk/messages, I got the following warning.

WARNING[3573] chan_datacard.c: unable to open /dev/ttyUSB2: Bad file descriptor

Any ideas?

TOP

I think so.

TOP

多謝 ckleea 兄的協助及指導,今天已成功在Asterisk 之內整合了 K3715 USB stick,並可以:

1. 利用USB stick 以extension撥出PSTN 電話
2. 利用USB stick 接入PSTN 至指定 extension
3. 利用USB stick 於Asterisk 發出 SMS
4. 利用USB stick 於Asterisk 接收 SMS
5. 利用USB stick 於Asterisk 接收 SMS 再 SMS to Email

今天收獲非常豐富,再進一步擴大Asterisk 的使用功能。

TOP

本帖最後由 bubblestar 於 2011-5-1 12:31 編輯

Some useful Datacard CLI commands:


datacard reset <device>
datacard restart gracefully <device>
datacard restart now <device>
datacard restart when convenient <device>
datacard show device <device>
datacard show devices
datacard show version
datacard sms <device> number message
datacard ussd <device> number message
datacard stop gracefully <device>
datacard stop now <device>
datacard stop when convenient <device>
datacard start <device>
datacard restart gracefully <device>
datacard restart now <device>
datacard restart when convenient <device>
datacard remove gracefully <device>
datacard remove now <device>
datacard remove when convenient <device>
datacard reload gracefully
datacard reload now
datacard reload when convenient


For example, we can get Provider Name, Model, IMEI and IMSI number of our USB stick by typing:

CLI > datacard show devices

Datacard show devices.png

TOP

本帖最後由 bubblestar 於 2011-5-2 16:12 編輯

使用了一兩天,發覺用Nokia E71 3G 撥打 K3715 USB stick 2G 時,它們之間使用了很少人用的Codec slin,因為連接至接通之間,在CLI 發現大量,差不多有成百個以上 Warning,雖然不會影響通話,但始終很礙眼。

Asked to transmit frame type slin, while native formats is 0x4 (ulaw) red/write = 0x4 (ulaw)/0x4 (ulaw)

slin_flooding.png


不想看到這些Warning Floods,解決辦法是到sip.conf 的相關內線中或在 [general] 之中加入

allow = ulaw
allow = alaw
allow = gsm                                                       
allow = g729
allow = slin

之後CLI 中再沒發現Warning 了。

TOP

本帖最後由 bubblestar 於 2011-5-2 16:22 編輯

CKleea C-Hing,

Grateful if you could share your IVR settings in extensions.conf as I cannot further process dialing even I can reach my IVR dialing menu.  It seems my USB stick cannot recognize (食不到) the DTMF signals from PSTN or Nokia E71 mobile phone.

I guess it might be something related to codec translation again.  No ideas but I know you did it successfully.


For information, my Nokia E71 mobile over 3G can dial into the same Asterisk IVR menu using VoIP and further process to other internal/external destination without problem.

TOP

Do we need to remove/uninstall chan_datacard before compilation and how is the performance?

TOP

The front-end zMessage is finally installed and works.  Both incoming and outgoing SMS can now be handle in GUI without the need to operate in Asterisk CLI.

BTW, I would like to report that Internet Explorer is not 100% compatible with zMessage while Firefox is preferable.

Thanks again for ckleea C-Hing's help and advice so that I can get it done smoothly.

TOP

返回列表