SMS gateway forward back SMS

Any communication concerning the SMS module

Moderators: hugo, alexandre, rmvanarkel

Post Reply
ken4ward
Posts: 94
Joined: Tue Sep 18, 2012 3:29 pm

SMS gateway forward back SMS

Post by ken4ward » Tue Feb 12, 2013 7:02 am

------------------------------------------------SMS Gateway-----------------------------------------------
Receiving incoming SMS message from +2348023472436
Forwarding SMS message from +2348023472436 to HTTP
HTTP forward from phone
+2348023472436 performed with return code: 200
Received HTTP request to send sms to 002348078539229
Received HTTP request to send sms to 002348023472436
SMS to 002348078539229 sent performed
SMS to 002348023472436 sent performed
Outgoing SMS message to 002348023472436 executed with result: Error
----------------------------------------------SMS Gateway------------------------------------------------
Please can somebody help me out of this! I have been on it for a while. It is just for the SMS to be forwarded back to both sender and the receiver. When I initiated a transaction thus:
------- pay 1111 08078539229 2 units
This is a transaction initiated from a mobile device of one of the registered members. Both the sender and the receiver ought to get SMS feedback, but non of them is getting it. I have enabled this it in Preference -> Notifications for all members
i have enabled SMS notifications for all transaction types for members.
I have created a provider and set it for all the members (full members). From the log of the SMS gateway I can see that the Cyclos SMS driver forwards back to the gateway the Cyclos format (002348023472436) without converting back to the local (08023472436), so the SMS gateway could not forward it to the intended recipients.
I am using an android phone, this is where the gateway is installed. Among the other parameters to be edited which one am I to edit so that it can convert it back to the local foramt before sending it to the SMS gateway?

-----------------------------------------------httpDriverConfig.properties------------------------------------------------
engine.class=nl.strohalm.cyclos.driver.http.engine.HttpGatewayEngine

white.list.hosts=192.168.0.100, 127.0.0.1, 192.168.0.125

#****************** Parameters used to SEND a request to the Gateway ******************
tx.url=http://192.168.0.100:9090/sendsms?
tx.disableCNCheck=true
tx.trustAllCerts=true
tx.apiIdParam=
tx.apiId=
tx.messageParam=text
tx.fromParam=
tx.toParam=phone
tx.countryCodeLen=0
tx.areaCodeLen=0
tx.countryCodeParam=
tx.areaCodeParam=
tx.passwordParam=
tx.userParam=
tx.password=
tx.user=

# HTTP method to send (POST, GET)
tx.method=GET

# MT message, charset encoding
tx.charset=ISO-8859-1

# Regular expression to identify a successful send command
tx.okResponse=.*

tx.httpClient.maxConnection=3
tx.httpClient.connectionTimeout=120000
tx.httpClient.readTimeout=120000

# Provider Configuration
tx.providerParam=
tx.provider.value.DEFAULT=0

#Define the parameter used to send back the trace data
tx.traceParam=trace

#****************** Parameters used when RECEIVE a request from the Gateway ******************
rx.messageParam=text
rx.toParam=
rx.providerParam=
rx.areaCodeParam=
rx.countryCodeParam=
rx.fromParam=phone

# User and Password access
rx.passwordParam=
rx.userParam=
rx.password=
rx.user=

rx.method=GET

#the response to send back to the invoker
rx.response=OK

#Define the parameter used to read trace data set by the GW
rx.traceParam=
-----------------------------------------------httpDriverConfig.properties----------------------------------------------------
-----------------------------------------------baseDriverConfig.properties----------------------------------------------------
phone.with.area.code.len=10
phone.area.code.prefix=0
phone.country.code=00234
-----------------------------------------------baseDriverConfig.properties----------------------------------------------------
A standard local GSM number in Nigeria is: 08023472436
The international format fro it is: +2348023472436

ken4ward
Posts: 94
Joined: Tue Sep 18, 2012 3:29 pm

Re: SMS gateway forward back SMS

Post by ken4ward » Tue Feb 12, 2013 8:51 am

Please note that the notifications of all transactions are seen in Cyclos in both receiver and sender account, what's to be achieved is for these notifications to be sent directly to both the originating mobile device (sender) and the receiver's mobile device that are registered in Cyclos.

admin
Site Admin
Posts: 1413
Joined: Mon Jan 24, 2005 10:31 am

Re: SMS gateway forward back SMS

Post by admin » Wed Feb 13, 2013 12:37 pm

The payer will always get a notification by SMS. The receiver will get a notification by SMS if this is set in the notification preferences. You can enable this by default for all users of a group (group setitings - notifications - Default messages sent by SMS - Received payments).
You can check it on the demo site by creating two user and making a payment. Make sure the receiver is logged in to the simulator when you perform the payment.

ken4ward
Posts: 94
Joined: Tue Sep 18, 2012 3:29 pm

Re: SMS gateway forward back SMS

Post by ken4ward » Thu Feb 14, 2013 5:47 am

Thanks a lot. I have done this, it's not resolving the issue. I think the problem is pointed to above.

Code: Select all

This is: "-->Outgoing SMS message to 002348023472436 executed with result: Error"
I think Cyclos is not converting the "00" to "+" before forwarding it to the SMS Gateway that is why the SMS Gateway could not forward feedback to both the sender and the receiver because it could not read the format.
This is how the transaction is initiated:
Local mobile number format in Nigeria: 08023472436
International mobile number format in Nigeria: +2348023472436
When a mobile local number sends to another local mobile number thus:
-----from 08023472436
-----pay 1111 08033334444 10 units
and it's sent to the mobile number of the phone that host the SMS Gateway: 080222233333
The SMS Gateway forwards it to Cyclos in this format: +2348023472436, and Cyclos converts it to 002348023472436, but when Cyclos forwards back to the SMS Gateway it ought to be converted back to 08023472436, but it's not doing so. ....what should i do. Please help!!!!!

Post Reply