標題: 教程 - Using your spare USB 3G modem with Asterisk (SMS and Voice - In and Out) [打印本頁] 作者: ckleea 時間: 2011-3-31 22:15 標題: 教程 - Using your spare USB 3G modem with Asterisk (SMS and Voice - In and Out)
After some days of work, trial and errors, I am finally able to make it successful
I use a spare USB 3G modem to connect my asterisk 1.8 to do
1. Voice in and out (音質清晰)
- very clear (tested with bubblestar 兄 and others)
2. SMS in and out (短訊可打出打入)
- incoming to asterisk server - support Chinese and English; SMS can then forward to user by email
可以接受中英文短訊,然後經電郵轉發指定用戶
- outgoing - Only English message in asterisk command line
暫時只可以在asterisk CLI 發英文短訊
Future:
Waiting for frontend GUI program to do SMS
2. centos 5.5 server with support kernel, I use 2.6.38. The latest centos 5.5 official kernel is 2.6.18 which is not able to work with voice part. 好多沙聲成者冇聲
dc-unlocker to check your USB 3G modem's sims unlocked and voice function
VOIP client to test voice quality
My favorite is Zoiper and also Yate client
SSH to check the console status
Optional; but you need this for the setup.作者: ckleea 時間: 2011-3-31 22:16
本帖最後由 ckleea 於 2011-4-1 10:34 編輯
Update kernel.
If you are using Centos OS, you are likley to use kernel 2.6.18. You need to prepare to update the kernel > 2.6.32 because there is problem in handling /dev/ttyUSB?
datacard callwaiting Enable/Disable Call-Waiting on the datacard
datacard cmd Send commands to port for debugging
datacard reload Reload datacard
datacard remove Remove datacard
datacard reset Reset datacard now
datacard restart Restart datacard
datacard show device settings Show Datacard device settings
datacard show device state Show Datacard device state
datacard show device statistic Show Datacard device statistics
datacard show devices Show Datacard devices state
datacard show version Show module version
datacard sms Send SMS from the datacard
datacard start Start datacard
datacard stop Stop datacard
datacard ussd Send USSD commands to the datacard作者: ckleea 時間: 2011-3-31 22:18
本帖最後由 ckleea 於 2011-4-1 03:49 編輯
How to send an SMS from asterisk cli
datacard sms datacard[0] recipientphone message
e.g. datacard sms datacard0 85291234567 Hello, it is a successful test of SMS sent from asterisk.
Within few seconds, mobile phone will receive the above SMS作者: ckleea 時間: 2011-3-31 22:18
2011-04-02 05:46:24 - datacard0 - 85262264644: Sorry, your handset cannot be configured/updated for DATA settings. Please refer to the following APN: GPRS&streaming(peoples.net),MMS(peoples.mms)
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.作者: ckleea 時間: 2011-5-2 16:35
I have not yet tried last night. What I have tested are
1. the original version not able to compile under centos
2. a revised version came out on the next day
3. it can be compiled under centos 5.6 and loaded successfully by my asterisk server
4. the USB stick is shown up properly.
5. I unload the chan_datacard.so module and test on this.
6. will test further if I have time.作者: ckleea 時間: 2011-5-14 12:51
ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number
dongle0 0 Free 21 0 0 CMCC PEOPLES K3715 11.113.03.00.00 3534xxxxxxx39 4541xxxxxxx2294 +8526xxxxxxx作者: ckleea 時間: 2011-5-26 22:57
I have fixed the SMS can't send problem by editing the SMS service center number to HK作者: bubblestar 時間: 2011-6-13 14:26
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.作者: ckleea 時間: 2011-6-17 08:41
見你已經有一個.net project for web call,請問SMS project 會否出現?自己唔識使用你的 sample code,會否做一個 PHP codes?作者: Qnewbie 時間: 2011-6-26 01:08
Could we use USB stick to share internet too? I am thinking of some 3G mobile plans include limited/unlimited local data.作者: ckleea 時間: 2011-6-26 06:45
I have not explored but seem it may. However, you may need to use another way not directly integrate with asterisk.作者: ckleea 時間: 2011-6-26 07:56
Some one mentioned the use of kannel to send SMS but I doubt if you can use Internet, voice and SMS at the same time. I personally still think it is far more simple to use asterisk on a Linux server.作者: Qnewbie 時間: 2011-6-26 13:49
I think you are right. The integration with internet sharing isn't an objective for asterisk.作者: ckleea 時間: 2011-6-26 13:59