Couldn't send message to gateway

Any communication concerning the SMS module

Moderators: hugo, alexandre, rmvanarkel

Post Reply
nzjustinc
Posts: 25
Joined: Fri Sep 16, 2011 9:19 am

Couldn't send message to gateway

Post by nzjustinc » Tue Nov 27, 2012 4:41 pm

I've been trying to hook up the sms module using an android gateway amp. i can send txt using the browser http://lalala:9090/sendsms?&phone=12345&text=hello

but when i try via the monitor the gateway is timing out. Any suggestions or known fix ups? would be appreciated.
Attachments
monitorr.png
monitorr.png (73.54 KiB) Viewed 6742 times

alexandre
Posts: 843
Joined: Wed Sep 06, 2006 9:06 am

Re: Couldn't send message to gateway

Post by alexandre » Wed Nov 28, 2012 8:09 am

Hi,

It seems to be an network issue. See if your server (where is hosting the sms module) can resolve the address that you have specified in the httpdriverconfig.properties (gateway address).

regards.
Alexandre Caurrinhos
Cyclos development team.

nzjustinc
Posts: 25
Joined: Fri Sep 16, 2011 9:19 am

Re: Couldn't send message to gateway

Post by nzjustinc » Wed Nov 28, 2012 10:40 pm

Tested via my server and also through iptools.com with the following result...

PING 192.168.43.1 (192.168.43.1) 56(84) bytes of data.
--- 192.168.43.1 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4012ms :(

192.168.43.1 is my android phone gateway app. Is it possible that the '0 received pings' are due to my carrier blocking the activity? i was hoping the app would by-pass the carrier altogether. Ideas anyone? :roll:

alexandre
Posts: 843
Joined: Wed Sep 06, 2006 9:06 am

Re: Couldn't send message to gateway

Post by alexandre » Thu Nov 29, 2012 8:05 am

Hi

I Used this app https://play.google.com/store/apps/deta ... smsgateway at my android to test the gateway and works fine.
Maybe you can try.
Another thing is to verify if there is a Firewall app or another restriction on your device.


Regards
Alexandre Caurrinhos
Cyclos development team.

nzjustinc
Posts: 25
Joined: Fri Sep 16, 2011 9:19 am

Re: Couldn't send message to gateway

Post by nzjustinc » Thu Nov 29, 2012 3:03 pm

Well its a small world ain't it... funny enough thats exactly the app I'm using. :P

On one hand i can send txt to mobiles using the browser... url to gateway port 9090 (thats gr8 :wink: ); but then on the other hand... no matter which server is pinging the response is always zero :evil: . So is it identifying the port 9090 as the only open port or something. I'll spend some time looking at my android mobile (firewalls, etc...). Thanks for the advice.

Might be a case of one step forward and two steps backward... heres the log.

2012-11-30 13:02:37 DEBUG LongConverter - No NumberFormat, using default conversion
2012-11-30 13:02:37 DEBUG LongConverter - Converted to Long value '1800000'
2012-11-30 13:02:37 DEBUG ConvertUtils - Convert string '0' to class 'int'
2012-11-30 13:02:37 DEBUG IntegerConverter - Converting 'String' value '0' to type 'Integer'
2012-11-30 13:02:37 DEBUG IntegerConverter - No NumberFormat, using default conversion
2012-11-30 13:02:37 DEBUG IntegerConverter - Converted to Integer value '0'
2012-11-30 13:02:37 INFO ThreadPoolTaskScheduler - Initializing ExecutorService 'taskScheduler'
2012-11-30 13:02:37 INFO ThreadPoolTaskExecutor - Initializing ExecutorService 'smsReceiverExecutor'
2012-11-30 13:02:37 INFO PropertiesFactoryBean - Loading properties file from class path resource [httpDriverConfig.properties]
2012-11-30 13:02:37 INFO DriverEngine - =============================================================================================================================================================
2012-11-30 13:02:37 INFO DriverEngine - ====================== SMS Driver. Released on Thu, 8 Nov 2012 07:03:37 +1300 with version number 1.2. Id: aioDriver. VM Time zone: New Zealand Standard Time
2012-11-30 13:02:37 INFO DriverEngine - =============================================================================================================================================================
2012-11-30 13:02:37 INFO DriverEngine - Marking not delivered as failed messages...
2012-11-30 13:02:37 DEBUG DriverServiceLocalLocatorImpl - Returning local instance of DriverService for id=aioDriver...
2012-11-30 13:02:37 INFO ThreadPoolTaskScheduler - Initializing ExecutorService 'removeExiredSessionsScheduler'
2012-11-30 13:02:37 INFO SessionHandler - Expired sessions removal thread scheduled to run: Nov 30 2012 at 13:04:37
2012-11-30 13:02:38 INFO ControllerFacade - *************************************************************************************************************************************************************************************
2012-11-30 13:02:38 INFO ControllerFacade - ********************** SMS Controller. Released on Thu, 8 Nov 2012 07:03:37 +1300 with version number 1.2. VM Time zone: New Zealand Standard Time. Locale: en **********************
2012-11-30 13:02:38 INFO ControllerFacade - *************************************************************************************************************************************************************************************
2012-11-30 13:02:38 WARN ControllerErrorCodeVerifier - Errors without any code defined:
2012-11-30 13:02:38 WARN ControllerErrorCodeVerifier - CUSTOM_COMMAND_ERROR
2012-11-30 13:02:38 INFO ControllerErrorCodeVerifier - Errors supporting codes that doesn't have any code: 1/21. Total of defined errors (supporting and not supporting codes) : 32
2012-11-30 13:02:38 INFO ControllerErrorCodeVerifier - Codes defined for the errors supporting codes: 34
2012-11-30 13:02:38 WARN ControllerErrorCodeVerifier - There are errors accepting codes that doesn't have any one. See the log above!!
2012-11-30 13:02:39 INFO ContextLoader - Root WebApplicationContext: initialization completed in 3565 ms
2012-11-30 13:02:44 DEBUG DriverEngine - Running message failed retry thread...
2012-11-30 13:03:14 DEBUG DriverEngine - Running message failed retry thread...
2012-11-30 13:03:44 DEBUG DriverEngine - Running message failed retry thread...
2012-11-30 13:03:53 INFO startup - Starting: DwrSpringServlet v3.0.0-RC2-dev on Apache Tomcat/7.0.32 / JDK 1.7.0_09 from Oracle Corporation at /sms
2012-11-30 13:04:08 INFO MonitorDwrService - New monitor registration from 118.148.175.87 (118.148.175.87) with user cyclos
2012-11-30 13:04:14 DEBUG DriverEngine - Running message failed retry thread...
2012-11-30 13:04:37 DEBUG SessionHandler - Removing expired sessions. Next execution: Nov 30 2012 at 13:06:37
2012-11-30 13:04:38 INFO SmsSenderWebServiceImpl - Message from cyclos: kuiwai(trace=null). Target member: Elmo Smith. Text: Kuiwai NZ: bring down the rain
2012-11-30 13:04:38 INFO ControllerFacade - Sending to driver: aioDriver. Controller message:
trace = 0
provider = null
from = 9999
to = 0226102493
text = Kuiwai NZ: bring down the rain

2012-11-30 13:04:38 INFO DriverServiceImpl - A message from Controller has arrived: Controller message:
trace = 0
provider = null
from = 9999
to = 0226102493
text = Kuiwai NZ: bring down the rain

2012-11-30 13:04:38 INFO HttpGatewayEngine - Sending message to gateway: Controller message:
trace = 0
provider = null
from = 9999
to = 0226102493
text = Kuiwai NZ: bring down the rain

2012-11-30 13:04:44 DEBUG DriverEngine - Running message failed retry thread...
2012-11-30 13:05:14 DEBUG DriverEngine - Running message failed retry thread...
2012-11-30 13:05:44 DEBUG DriverEngine - Running message failed retry thread...
2012-11-30 13:06:14 DEBUG DriverEngine - Running message failed retry thread...
2012-11-30 13:06:37 DEBUG SessionHandler - Removing expired sessions. Next execution: Nov 30 2012 at 13:08:37
2012-11-30 13:06:38 ERROR HttpGatewayEngine - Couldn't send message to gateway [ControllerMessage [Message [traceData=0, from=9999, provider=null, to=0226102493]]: Kuiwai NZ: bring down the rain]: Connect to 192.168.43.1:9090 timed out
org.apache.http.conn.ConnectTimeoutException: Connect to 192.168.43.1:9090 timed out
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:125)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2012-11-30 13:06:38 ERROR SmsSenderWebServiceImpl - Error sending message (null) through driver. Member: (username=elmo, name=Elmo Smith, email=elmo@whatever.com, fields={area=Example area, postalCode=2211, mobilePhone=0226102493, address=9 Rena Place, gender=Male, city=Auckland}, #images=0)
nl.strohalm.cyclos.controller.exception.WebServiceConnectionException: DRIVER_WS_CONNECTION_FAILED: Error invoking driver web service operation
at nl.strohalm.cyclos.controller.facade.DriversWsManager.send(DriversWsManager.java:53)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.cxf.binding.soap.SoapFault: Error: error-processing-controller-msg
at nl.strohalm.cyclos.sms.common.util.WebServiceHelper.fault(WebServiceHelper.java:97)

Kitt
Posts: 1
Joined: Tue Mar 18, 2014 2:54 pm

Re: Couldn't send message to gateway

Post by Kitt » Tue Mar 18, 2014 3:10 pm

Hello gents,

Hmm this was going back 2 years on this forum, but maybe you are all still receiving these posts.
Worth a shot.

I'm having the same issue as described in this thread and I will be visiting my mobile phone carrier tomorrow morning to investigate their take on it.

My application receives a connection timed out -110 error, yet sending message direct from the browser seems to be allowed through the gateway. The application also receives SMS from the gateway perfectly.

The IP address and ports have been double checked and I have attempted to change the incoming port also to 8080 and others in an attempt to avoid any limits from my GoDaddy server.

Any extra clues or advise in this would be great.

cheers,xK

Post Reply