dongle0
*CLI> -- [dongle0] Trying to connect on /dev/ttyUSB2...
插拔dongle
[Jan 13 23:42:20] WARNING[3443]: chan_dongle.c:215 opentty: unable to open /dev/ttyUSB2: No such file or directory
-- [dongle0] Trying to connect on /dev/ttyUSB2...
[Jan 13 23:42:35] WARNING[3443]: chan_dongle.c:215 opentty: unable to open /dev/ttyUSB2: No such file or directory
dongle show devices
ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number
dongle0 0 Not connec 0 0 0 NONE Unknown
*CLI> -- [dongle0] Trying to connect on /dev/ttyUSB2...
[Jan 13 23:42:50] WARNING[3443]: chan_dongle.c:215 opentty: unable to open /dev/ttyUSB2: No such file or directory
-- [dongle0] Trying to connect on /dev/ttyUSB2...
-- [dongle0] Dongle has connected, initializing...
[Jan 13 23:43:06] WARNING[3591]: at_response.c:384 at_response_error: [dongle0] Error checking subscriber phone number
-- [dongle0] Dongle needs to be reinitialized. The SIM card is not ready yet
-- [dongle0] Error initializing Dongle
-- [dongle0] Dongle has disconnected
-- [dongle0] Trying to connect on /dev/ttyUSB2...
-- [dongle0] Dongle has connected, initializing...
-- [dongle0] Dongle initialized and ready
dongle show devices
*CLI> dongle show devices
ID Group State RSSI Mode Submode Provider Name Model Firmware IMEI IMSI Number
dongle0 0 Free 31 3 2 SmarToneVodafo E1750 11.126.13.00.157 354818044123401 460020108953736 Unknown
*CLI> dongle sms dongle0 《电话号码》 test
[dongle0] SMS queued for send with id 0x2881970
*CLI> -- [dongle0] Successfully sent SMS message 0x2881970
[Jan 13 23:48:36] NOTICE[3602]: at_response.c:257 at_response_ok: [dongle0] Successfully sent SMS message 0x2881970
dongle show device settings dongle0
------------- Settings ------------
Device : dongle0
Audio : /dev/ttyUSB1
Data : /dev/ttyUSB2
IMEI : 123456789012345
IMSI : 123456789012345
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 Dongle : Yes
SMS PDU : Yes
Call Waiting : auto
DTMF : relax
Minimal DTMF Gap : 45
Minimal DTMF Duration : 80
Minimal DTMF Interval : 200
Initial device state : start
自动接听电话
*CLI> == Starting Dongle/dongle0-0100000000 at default,+1234567890,1 failed so falling back to exten 's'
-- Executing [s@default:1] Wait("Dongle/dongle0-0100000000", "1") in new stack
-- Executing [s@default:2] Answer("Dongle/dongle0-0100000000", "") in new stack
-- Executing [s@default:3] Set("Dongle/dongle0-0100000000", "TIMEOUT(digit)=5") in new stack
-- Digit timeout set to 5.000
-- Executing [s@default:4] Set("Dongle/dongle0-0100000000", "TIMEOUT(response)=10") in new stack
-- Response timeout set to 10.000
-- Executing [s@default:5] BackGround("Dongle/dongle0-0100000000", "demo-congrats") in new stack
-- <Dongle/dongle0-0100000000> Playing 'demo-congrats.gsm' (language 'en')
== Spawn extension (default, s, 5) exited non-zero on 'Dongle/dongle0-0100000000'
dongle show device state dongle0
-------------- Status -------------
Device : dongle0
State : Free
Audio : /dev/ttyUSB1
Data : /dev/ttyUSB2
Voice : Yes
SMS : Yes
Manufacturer : huawei
Model : E1750
Firmware : 11.126.13.00.157
IMEI : 354818044123401
IMSI : 460020108953736
GSM Registration Status : Registered, roaming
RSSI : 14, -85 dBm
Mode : WCDMA
Submode : WCDMA
Provider Name : SmarToneVodafone
Location area code : 1F4A
Cell ID : 657CCC
Subscriber Number : Unknown
SMS Service Center : +8613800755500
Use UCS-2 encoding : Yes
USSD use 7 bit encoding : Yes
USSD use UCS-2 decoding : No
Tasks in queue : 0
Commands in queue : 0
Call Waiting : Disabled
Current device state : start
Desired device state : start
When change state : now
Calls/Channels : 0
Active : 0
Held : 0
Dialing : 0
Alerting : 0
Incoming : 0
Waiting : 0
Releasing : 0
Initializing : 0
*CLI> dongle cmd dongle0 AT
[dongle0] 'AT' Command queued for execute
*CLI> [dongle0] Got Response for user's command:'OK'
[Jan 13 23:56:02] NOTICE[3602]: at_response.c:1716 at_response: [dongle0] Got Response for user's command:'OK'
接受短信测试
*CLI> [dongle0] Got SMS from xxxx: 'hello'
== Starting Local/sms@default-5cb3;1 at default,sms,1 failed so falling back to exten 's'
-- Executing [s@default:1] Wait("Local/sms@default-5cb3;1", "1") in new stack
-- Executing [s@default:2] Answer("Local/sms@default-5cb3;1", "") in new stack
-- Executing [s@default:3] Set("Local/sms@default-5cb3;1", "TIMEOUT(digit)=5") in new stack
-- Digit timeout set to 5.000
-- Executing [s@default:4] Set("Local/sms@default-5cb3;1", "TIMEOUT(response)=10") in new stack
-- Response timeout set to 10.000
-- Executing [s@default:5] BackGround("Local/sms@default-5cb3;1", "demo-congrats") in new stack
[Jan 13 23:57:08] WARNING[3639]: channel.c:3895 set_format: Unable to find a codec translation path from 0x1 (g723) to 0x2 (gsm)
[Jan 13 23:57:08] WARNING[3639]: file.c:953 ast_streamfile: Unable to open demo-congrats (format 0x1 (g723)): No such file or directory
[Jan 13 23:57:08] WARNING[3639]: pbx.c:8866 pbx_builtin_background: ast_streamfile failed on Local/sms@default-5cb3;1 for demo-congrats
-- Executing [s@default:6] BackGround("Local/sms@default-5cb3;1", "demo-instruct") in new stack
[Jan 13 23:57:08] WARNING[3639]: channel.c:3895 set_format: Unable to find a codec translation path from 0x1 (g723) to 0x2 (gsm)
[Jan 13 23:57:08] WARNING[3639]: file.c:953 ast_streamfile: Unable to open demo-instruct (format 0x1 (g723)): No such file or directory
[Jan 13 23:57:08] WARNING[3639]: pbx.c:8866 pbx_builtin_background: ast_streamfile failed on Local/sms@default-5cb3;1 for demo-instruct
-- Executing [s@default:7] WaitExten("Local/sms@default-5cb3;1", "") in new stack
-- Timeout on Local/sms@default-5cb3;1, going to 't'
-- Executing [t@default:1] Goto("Local/sms@default-5cb3;1", "#,1") in new stack
-- Goto (default,#,1)
-- Executing [#@default:1] Playback("Local/sms@default-5cb3;1", "demo-thanks") in new stack
[Jan 13 23:57:18] WARNING[3639]: channel.c:3895 set_format: Unable to find a codec translation path from 0x1 (g723) to 0x2 (gsm)
[Jan 13 23:57:18] WARNING[3639]: file.c:953 ast_streamfile: Unable to open demo-thanks (format 0x1 (g723)): No such file or directory
[Jan 13 23:57:18] WARNING[3639]: app_playback.c:471 playback_exec: ast_streamfile failed on Local/sms@default-5cb3;1 for demo-thanks
-- Executing [#@default:2] Hangup("Local/sms@default-5cb3;1", "") in new stack
== Spawn extension (default, #, 2) exited non-zero on 'Local/sms@default-5cb3;1'
*CLI>
http show status
HTTP Server Status:
Prefix: /asterisk
Server Enabled and Bound to 127.0.0.1:8088
Enabled URI's:
/asterisk/httpstatus => Asterisk HTTP General Status
/asterisk/phoneprov/... => Asterisk HTTP Phone Provisioning Tool
/asterisk/manager => HTML Manager Event Interface
/asterisk/rawman => Raw HTTP Manager Event Interface
/asterisk/static/... => Asterisk HTTP Static Delivery
/asterisk/mxml => XML Manager Event Interface
http://127.0.0.1:8088/asterisk/manager?action=listcommands&action=&command=&username=admin&secret=hjs
Manager Tester
Action: or
CLI Command
user pass
Response Success
WaitEvent Wait for an event to occur (Priv: <none>)
DongleReload Reload a module configuration. (Priv: system,config,all)
DongleRemove Remove a dongle. (Priv: system,config,all)
DongleStart Start a dongle. (Priv: system,config,all)
DongleStop Stop a dongle. (Priv: system,config,all)
DongleRestart Restart a dongle. (Priv: system,config,all)
DongleReset Reset a dongle. (Priv: system,config,all)
DongleSetCCWA Enable/Disabled Call-Waiting on a dongle. (Priv: config,all)
DongleSendPDU Send a PDU of message. (Priv: call,all)
DongleSendSMS Send a SMS message. (Priv: call,all)
DongleSendUSSD Send a ussd command to the dongle. (Priv: call,all)
DongleShowDevices List Dongle devices (Priv: system,reporting,all)
PlayDTMF Play DTMF signal on a specific channel. (Priv: call,all)
SIPnotify Send a SIP notify (Priv: system,all)
SIPshowregistry Show SIP registrations (text format) (Priv: system,reporting,all)
SIPqualifypeer Show SIP peer (text format) (Priv: system,reporting,all)
SIPshowpeer Show SIP peer (text format) (Priv: system,reporting,all)
SIPpeers List SIP peers (text format) (Priv: system,reporting,all)
QueueReset Reset queue statistics (Priv: <none>)
QueueReload Reload a queue, queues, or any sub-section of a queue or queues (Priv: <none>)
QueueRule Queue Rules (Priv: <none>)
QueuePenalty Set the penalty for a queue member (Priv: agent,all)
QueueLog Adds custom entry in queue_log (Priv: agent,all)
QueuePause Makes a queue member temporarily unavailable (Priv: agent,all)
QueueRemove Remove interface from queue. (Priv: agent,all)
QueueAdd Add interface to queue. (Priv: agent,all)
QueueSummary Queue Summary (Priv: <none>)
QueueStatus Queue Status (Priv: <none>)
Queues Queues (Priv: <none>)
IAXregistry Show IAX registrations (Priv: system,reporting,all)
IAXnetstats Show IAX Netstats (Priv: system,reporting,all)
IAXpeerlist List IAX Peers (Priv: system,reporting,all)
IAXpeers List IAX Peers (Priv: system,reporting,all)
SKINNYshowline Show SKINNY line (text format) (Priv: system,reporting,all)
SKINNYlines List SKINNY lines (text format) (Priv: system,reporting,all)
SKINNYshowdevice Show SKINNY device (text format) (Priv: system,reporting,all)
SKINNYdevices List SKINNY devices (text format) (Priv: system,reporting,all)
AgentLogoff Sets an agent as no longer logged in (Priv: agent,all)
Agents Lists agents and their status (Priv: agent,all)
VoicemailUsersList List All Voicemail User Information (Priv: call,reporting,all)
UnpauseMonitor Unpause monitoring of a channel (Priv: call,all)
PauseMonitor Pause monitoring of a channel (Priv: call,all)
ChangeMonitor Change monitoring filename of a channel (Priv: call,all)
StopMonitor Stop monitoring a channel (Priv: call,all)
Monitor Monitor a channel (Priv: call,all)
DBDelTree Delete DB Tree (Priv: system,all)
DBDel Delete DB Entry (Priv: system,all)
DBPut Put DB Entry (Priv: system,all)
DBGet Get DB Entry (Priv: system,reporting,all)
Bridge Bridge two channels already in the PBX (Priv: call,all)
Park Park a channel (Priv: call,all)
ParkedCalls List parked calls (Priv: <none>)
ShowDialPlan List dialplan (Priv: config,reporting,all)
ModuleCheck Check if module is loaded (Priv: system,all)
ModuleLoad Module management (Priv: system,all)
CoreShowChannels List currently active channels (Priv: system,reporting,all)
Reload Send a reload event (Priv: system,config,all)
CoreStatus Show PBX core status variables (Priv: system,reporting,all)
CoreSettings Show PBX core settings (version etc) (Priv: system,reporting,all)
UpdateConfig Update basic configuration (Priv: config,all)
SendText Send text message to channel (Priv: call,all)
ListCommands List available manager commands (Priv: <none>)
MailboxCount Check Mailbox Message Count (Priv: call,reporting,all)
MailboxStatus Check Mailbox (Priv: call,reporting,all)
AbsoluteTimeout Set Absolute Timeout (Priv: system,call,all)
ExtensionState Check Extension Status (Priv: call,reporting,all)
Command Execute Asterisk CLI Command (Priv: command,all)
Originate Originate Call (Priv: originate,all)
Atxfer Attended transfer (Priv: call,all)
Redirect Redirect (transfer) a call (Priv: call,all)
ListCategories List categories in configuration file (Priv: config,all)
CreateConfig Creates an empty file in the configuration directory (Priv: config,all)
Status Lists channel status (Priv: system,call,reporting,all)
GetConfigJSON Retrieve configuration (JSON format) (Priv: system,config,all)
GetConfig Retrieve configuration (Priv: system,config,all)
Getvar Gets a Channel Variable (Priv: call,reporting,all)
Setvar Set Channel Variable (Priv: call,all)
Ping Keepalive command (Priv: <none>)
Hangup Hangup Channel (Priv: system,call,all)
Challenge Generate Challenge for MD5 Auth (Priv: <none>)
Login Login Manager (Priv: <none>)
Logoff Logoff Manager (Priv: <none>)
Events Control Event Flow (Priv: <none>)
dongle0的更多相关文章
- Huawei E1750 Asterisk
http://wiki.e1550.mobi/doku.php?id=installation https://wiki.asterisk.org/wiki/display/AST/Mobile+Ch ...
随机推荐
- nyoj-310-河南省第四届省赛题目-二分+dinic
SECRET 时间限制:3000 ms | 内存限制:65535 KB 难度:6 描述 Dr.Kong is constructing a new machine and wishes to ...
- poj1664 放苹果(DPorDFS)&&系列突破(整数划分)
poj1664放苹果 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 33661 Accepted: 20824 Desc ...
- M爷的线段树
M爷的线段树 - BUCTOJ 3305 一个长度为n的数列A.修改m次,每次给区间[L,R]中的每一个数加X.查询k次,每次查询第i个元素的值并输出.1<=n<=1e5 ,1<=m ...
- 10个CSS简写/优化技巧-摘自网友
10个CSS简写/优化技巧23来源/作者:未知 类别:前端开发 字体大小:大|中|小 背景颜色:蓝|白|灰 ? ? CSS简写就是指将多行的CSS属性简写成一行,又称为CSS代码优化或CSS缩写.CS ...
- 跟我一起学习ASP.NET 4.5 MVC4.0(一)
跟我一起学习ASP.NET 4.5 MVC4.0(一) 由于上面一个项目使用的是ASP.NET4.0 MVC3.0,在招人的时候发现很多人有听说过MVC,但是却是没用过,对MVC也只是一知半解,最 ...
- 关于学习JAVA程序设计语言的回顾与展望
回顾篇 时光荏苒,大学生活已然过半.看了老师分享的几篇博文,我的内心是震憾并且惭愧的.相比别人,自己做的实在是不够多,不够好.在刚刚结束的大二上半学期,我学习了JAVA初级程序设计,虽然每节课都认真听 ...
- 【数据库】MFC ODBC(三)
4.SQL查询 记录集的建立实际上是一个查询过程,SQL的SELECT语句用来查询数据源.在建立记录集时,CRecordset会根据一些参数构造一个SELECT语句来查询数据源,并用查询的结果创建记录 ...
- 使用存储过程非常慢,但是直接执行SQL很快
使用存储过程非常慢,但是直接执行SQL很快. 了解基本情况后,初步判断是参数嗅探问题 在对应的SQL语句后面使用 OPTION(OPTIMIZE FOR UNKNOWN) 参考了 http://www ...
- L235
China will launch the Chang'e-5 probe by the end of this year to bring moon samples back to Earth, a ...
- 掌握 javascript 核心概念 最好的教程 系列 之一
链接 新链接 函数优先, 在扫描创建变量阶段, 会先收集函数, 如果前面有同名函数或者变量, 这个新函数会覆盖前面同名的: 而如果这时候是变量, 则不能去覆盖前面已有的值. function test ...