slink: that would be brilliant if you could, thanks!
|
slink: Hi
Do you think you could let me have your source code modifications pleae? I've bene trying to get this to work with a Portech MV-374 and with the patch applied I can send the first SMS but nothing after that. I get this error in the log:
2012-10-18 16:55:00,7, GSM1: -> 0011000C914457xxxx99150000FF0C6190392D9FD341F4F29C0E^Z
2012-10-18 16:55:00,7, GSM1: Command is sent, waiting for the answer
2012-10-18 16:55:05,7, GSM1: <- +CMGS: 33 OK
2012-10-18 16:55:05,5, GSM1: SMS sent, Message_id: 33, To: 4475xxxx9951, sending time 48 sec. Retries: 1.
2012-10-18 16:55:05,6, GSM1: Moved file /var/spool/sms/checked/send_dJgWcs to /var/spool/sms/sent/send_dJgWcs
2012-10-18 17:02:27,5, smsd: Moved file /var/spool/sms/outgoing/send_rRxOEa to /var/spool/sms/checked
2012-10-18 17:02:27,6, GSM1: I have to send 1 short message for /var/spool/sms/checked/send_rRxOEa
2012-10-18 17:02:27,6, GSM1: Sending SMS from to 4475xxxx9951
2012-10-18 17:02:27,6, GSM1: Checking if modem is ready
2012-10-18 17:02:27,3, GSM1: Unexpected input: release module 1 ... ]
2012-10-18 17:02:27,7, GSM1: -> AT
2012-10-18 17:02:27,7, GSM1: Command is sent, waiting for the answer
2012-10-18 17:02:33,7, GSM1: put_command expected (OK)|(ERROR), timeout occurred. 1.
2012-10-18 17:02:33,7, GSM1: <- AT bad command!!! ]
2012-10-18 17:02:33,7, GSM1: -> ^Z
2012-10-18 17:02:33,7, GSM1: Command is sent, waiting for the answer
2012-10-18 17:02:39,7, GSM1: put_command expected (OK)|(ERROR), timeout occurred. 2.
2012-10-18 17:02:39,7, GSM1: <- bad command!!! ]
2012-10-18 17:02:39,7, GSM1: -> AT
2012-10-18 17:02:39,7, GSM1: Command is sent, waiting for the answer
2012-10-18 17:02:44,7, GSM1: put_command expected (OK)|(ERROR), timeout occurred. 3.
2012-10-18 17:02:44,7, GSM1: <- AT bad command!!! ]
2012-10-18 17:02:45,7, GSM1: -> ^Z
2012-10-18 17:02:45,7, GSM1: Command is sent, waiting for the answer
2012-10-18 17:02:50,7, GSM1: put_command expected (OK)|(ERROR), timeout occurred. 4.
So looks like it's not handling the timeout of Module1 correctly, or something. My smsd.conf looks like this:
devices = GSM1
logfile = /var/log/smsd.log
loglevel = 7
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
report = /var/spool/sms/report
sent = /var/spool/sms/sent
logfile = /var/log/smsd.log
loglevel = 7
[GSM1]
device = @192.168.xx.xx:8023
telnet_crlf = yes
telnet_login = voip
telnet_password = 1234
telnet_login_prompt = username:
telnet_password_prompt = password:
telnet_cmd_prompt = logout, module, module1, module2, state1, state2
telnet_cmd = module1
init = ATV1
Any help in getting this working would be greatly appreciated otherwise I'm going to have to buy another modem for my alerting.
Thanks
|