查看SMS Gateway的源代码
←
SMS Gateway
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
== 设备 == * ZTE MF668 (USB 3G modem) * Linux x86 server <br><br> == Send/Receive SMS == <br><br> == Open Source Tools == === gammu === $ apt-get install gammu gammu-smsd 配置 gammu <pre> $ gammu-config Port: /dev/ttyUSB1 Connection: at115200 </pre> 生成的配置文件默认位于 /root/.gammurc 亦可 /etc/gammurc 测试: <pre> $ gammu getallsms #显示sim卡上所有 SMS Location 100006, folder "收件箱", phone memory, Inbox folder SMS message SMSC number : "+8613010374500" 标记为已发送 : 2013年04月15日 星期一 13时27分16秒 +0800 Coding : Unicode (no compression) Remote number : "+85264504220" Status : 已读 您的 Google 验证代码为 002226 1 SMS parts in 1 SMS sequences </pre> 发送 SMS: $ gammu sendsms TEXT 15801234567 -textutf8 "testing" 中英文混合 SMS: $ gammu sendsms TEXT 15801234567 -unicode -text "testing 测试" <br><br> === gammu-smsd === 配置: <pre> SH-NAS:/var# cat /etc/gammu-smsdrc # Configuration file for Gammu SMS Daemon # Gammu library configuration, see gammurc(5) [gammu] # Please configure this! port = /dev/ttyUSB1 connection = at115200 # Debugging logformat = textall # SMSD configuration, see gammu-smsdrc(5) [smsd] service = sql Driver = native_mysql logfile = syslog User = smsd Password = smsd PC = localhost Database = smsd # Increase for debugging information debuglevel = 0 </pre> 创建数据库和表: <pre> mysql> create database smsd; Query OK, 1 row affected (0.00 sec) mysql> GRANT USAGE ON *.* TO smsd@localhost IDENTIFIED BY 'YOUR_PASSWORD'; Query OK, 0 rows affected (0.01 sec) mysql> GRANT SELECT, INSERT, UPDATE, DELETE ON smsd.* to smsd@localhost; Query OK, 0 rows affected (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) mysql> quit Bye $ cp /usr/share/doc/gammu-smsd/examples/mysql.sql.gz /tmp/ $ gunzip /tmp/mysql.sql.gz $ mysql -u USER_NAME -pUSER_PASSWORD YOUR_DB_NAME < /tmp/mysql.sql </pre> <br><br> <br><br> <br><br> <br><br>
返回到
SMS Gateway
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面