Sms 使用假短信中心通过kannel发送短信

Sms 使用假短信中心通过kannel发送短信,sms,kannel,Sms,Kannel,我将kannel配置为假短信中心。但是,当我尝试发送短信时,我收到以下错误: 2010-02-24 15:12:30 [932] [12] DEBUG: send_msg: sending msg to box: 2010-02-24 15:12:30 [932] [12] ERROR: Error writing 16 octets to fd 34: 2010-02-24 15:12:30 [932] [12] ERROR: System error 104: Connection res

我将kannel配置为假短信中心。但是,当我尝试发送短信时,我收到以下错误:

2010-02-24 15:12:30 [932] [12] DEBUG: send_msg: sending msg to box: 2010-02-24 15:12:30 [932] [12] ERROR: Error writing 16 octets to fd 34: 2010-02-24 15:12:30 [932] [12] ERROR: System error 104: Connection reset by peer 2010-02-24 15:12:30 [932] [12] ERROR: Couldn't write Msg to box , disconnecting 2010-02-24 15:12:30 [932] [12] DEBUG: Thread 12 (gw/bb_boxc.c:boxc_sender) terminates. 2010-02-24 15:12:30 [932] [11] ERROR: Error writing 16 octets to fd 34: 2010-02-24 15:12:30 [932] [11] ERROR: System error 104: Connection reset by peer 2010-02-24 15:12:30 [932] [11] DEBUG: Thread 11 (gw/bb_boxc.c:function) terminates. 2010-02-24 15:12:35 [932] [15] ERROR: Error reading from fd 39: 2010-02-24 15:12:35 [932] [15] ERROR: System error 104: Connection reset by peer 2010-02-24 15:12:35 [932] [15] ERROR: Error reading from fd 39: 2010-02-24 15:12:35 [932] [15] ERROR: System error 104: Connection reset by peer 2010-02-24 15:12:30[932][12]调试:发送消息:将消息发送到方框: 2010-02-24 15:12:30[932][12]错误:将16个八位字节写入fd 34时出错: 2010-02-24 15:12:30[932][12]错误:系统错误104:对等方重置连接 2010-02-24 15:12:30[932][12]错误:无法将消息写入框,正在断开连接 2010-02-24 15:12:30[932][12]调试:线程12(gw/bb_-boxc.c:boxc_发送器)终止。 2010-02-24 15:12:30[932][11]错误:将16个八位字节写入fd 34时出错: 2010-02-24 15:12:30[932][11]错误:系统错误104:对等方重置连接 2010-02-24 15:12:30[932][11]调试:线程11(gw/bb_boxc.c:函数)终止。 2010-02-24 15:12:35[932][15]错误:读取fd 39时出错: 2010-02-24 15:12:35[932][15]错误:系统错误104:对等方重置连接 2010-02-24 15:12:35[932][15]错误:读取fd 39时出错: 2010-02-24 15:12:35[932][15]错误:系统错误104:对等方重置连接 怎么了?
发送短信息的Url:

http://localhost:13003/cgi-bin/sendsms?username=&password=&to=0123456&text=Hello+world http://localhost:13003/cgi-bin/sendsms?用户名=&password=&to=0123456&text=Hello+world 我在cygwin和red hat下运行kannel,每个系统上的错误都是相同的


我的kannel.conf

group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar log-file = /var/log/kannel/kannel.log log-level = 0 access-log = /var/log/kannel/access_kannel.log store-file = /var/log/kannel/store_sms group = smsc smsc = fake port = 13004 connect-allow-ip = "*.*.*.*" group = smsbox bearerbox-host = localhost sendsms-port = 13003 global-sender = 13003 smsbox-id = "my smsbox" log-file = /var/log/kannel/smsbox.log log-level = 0 group = sendsms-user username = password = group = sms-service keyword = default text = "No service specified" 组=核心 管理端口=13000 smsbox端口=13001 管理员密码=bar 日志文件=/var/log/kannel/kannel.log 日志级别=0 访问日志=/var/log/kannel/access\u kannel.log 存储文件=/var/log/kannel/store\u sms 组=smsc smsc=假 端口=13004 连接允许ip=“*.*.*.” 组=smsbox BeareBox主机=本地主机 发送SMS端口=13003 全局发送方=13003 smsbox id=“我的smsbox” 日志文件=/var/log/kannel/smsbox.log 日志级别=0 组=发送SMS用户 用户名= 密码= 组=短信服务 关键字=默认值 text=“未指定任何服务”
当peer关闭连接时(当kannel仍在尝试读取或发送消息时),就会发生此错误,因此kannel只在日志跟踪中向您显示此错误

问题不在于kannel,而在于同行

找出对等方关闭连接的原因。 如果连接未关闭,则不会发生此错误,kannel应该能够读取/发送消息


谢谢。

当对等方关闭连接时(当kannel仍在尝试读取或发送消息时),会发生此错误,因此kannel仅在日志跟踪中向您显示此错误

问题不在于kannel,而在于同行

找出对等方关闭连接的原因。 如果连接未关闭,则不会发生此错误,kannel应该能够读取/发送消息


谢谢。

你能从BeareBox启动发布更多日志吗。您所提供的日志中没有任何相关信息。您正在使用什么UR发送消息,并在SMS框中记录?发送消息的URL:logs addedHelpa,请将您的端口表13001更改为13003。但是如果没有详细的日志,您将无法获得此问题的详细信息。谢谢!url中的端口错误。似乎与编程无关。投票移动到超级用户。你能从BeareBox启动发布更多日志吗。您所提供的日志中没有任何相关信息。您正在使用什么UR发送消息,并在SMS框中记录?发送消息的URL:logs addedHelpa,请将您的端口表13001更改为13003。但是如果没有详细的日志,您将无法获得此问题的详细信息。谢谢!url中的端口错误。似乎与编程无关。投票移动到超级用户。