OK, How long does it take to fail, when it does play up? Did you note this paragraph in the wiki docs: Port is acquired for the duration of the command and cannot be used concurently by another RouterOS component. Message sending process can take a long time, it times out after a minute and after two seconds during initial AT command exchange. What port are you using for txt? Is it possible, for example, that you are using the same port as data channel and data channel is attempting to dial up ppp session every few seconds so that txt only works during the in-between times when ppp dialler gives up and releases data channel for a few seconds before retry? Or something like that? ;) As far as I am aware, you don't need to have data channel connected to send TXT - just needs SIM registered to an available telco. Cheers! Mike. -----Original Message----- From: Public [mailto:public-bounces@talk.mikrotik.com.au] On Behalf Of Thomas Jackson Sent: Tuesday, 26 August 2014 10:51 AM To: 'MikroTik Australia Public List' Subject: Re: [MT-AU Public] SMS send timeouts Hi Mike, I get the same problem when entering the send SMS command straight into the Mikrotik terminal, so looks like the API is behaving correctly and it is a problem with the SMS tool: [me@myrouter] > /tool sms send port=usb1 channel=2 phone-number=<my mobile> message="This is a test" failure: timeout Thanks, Thomas -----Original Message----- From: Public [mailto:public-bounces@talk.mikrotik.com.au] On Behalf Of Mike Everest Sent: Tuesday, 26 August 2014 10:30 AM To: 'MikroTik Australia Public List' Subject: Re: [MT-AU Public] SMS send timeouts Hi Thomas, Have you decided yet whether it is an API timeout or a sms timeout? I suspect the latter (from the way it looks in the log) but your reference to 'the API returns a timeout error' throws me :-} Cheers, Mike. -----Original Message----- From: Public [mailto:public-bounces@talk.mikrotik.com.au] On Behalf Of Thomas Jackson Sent: Tuesday, 26 August 2014 9:36 AM To: MikroTik Australia Public List Subject: [MT-AU Public] SMS send timeouts Hi all, I'm trying to set up a Nagios box to send SMS alerts using an RB751U-2HnD which has a Telstra 4G USB device (Sierra Wireless 320U) connected to the USB port. At the moment, we use the SMSGlobal API (which was down for most of yesterday afternoon) to send notifications from Nagios, which has the major downside of relying on the internet connection from our Nagios box being alive and of course, relies on the API provider being online as well. The RB751U-2HnD is already in place (it is currently used to provide OOB access into the network - permanently connected to the telstra.extranet APN for a public IP with DynDNS set up so that it can be found), so I figured it would be easy to add this functionality in. So far, I've got a PHP script written that will (via a Mikrotik API call) send an SMS out about 60% of the time - the rest of the time, the API returns a timeout error (also logged to the Mikrotik log - eg "gsm,error sms send failed: timeout"). This happens completely randomly, sometimes I can send 10 messages in a row without a problem, then have another 10 that fail - other times, I can send 10 messages and have every second one fail. A basic solution would be to simply catch the error in the PHP script and try to send again, but I'd like to see if I am missing anything in the Mikrotik config first. Currently running version 6.10 and I can't see anything in the changelog since then that references SMS. Relevant config sections: /tool sms set channel=2 port=usb1 receive-enabled=yes secret=smspassword /port set 0 name=usb1 /port firmware set ignore-directip-modem=yes /interface ppp-client info 0 modem-status: call in progress pin-status: no password required functionality: full manufacturer: Sierra Wireless, Incorporated model: AirCard 320U revision: X1_2_2_0AP R2839 CNSZXD00000128 2011/08/05 15:52:41 serial-number: redacted current-operator: Telstra (cellid redacted) access-technology: Evolved 3G (LTE) signal-strengh: -85 dBm frame-error-rate: n/a Has anyone come against this problem before? Cheers, Thomas _______________________________________________ Public mailing list Public@talk.mikrotik.com.au http://talk.mikrotik.com.au/mailman/listinfo/public_talk.mikrotik.com.au _______________________________________________ Public mailing list Public@talk.mikrotik.com.au http://talk.mikrotik.com.au/mailman/listinfo/public_talk.mikrotik.com.au _______________________________________________ Public mailing list Public@talk.mikrotik.com.au http://talk.mikrotik.com.au/mailman/listinfo/public_talk.mikrotik.com.au