Setting a provider for SMS

Any communication concerning the SMS module

Moderators: hugo, alexandre, rmvanarkel

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

Setting a provider for SMS

Post by ken4ward » Mon Feb 11, 2013 6:57 am

For a great thing like this to come without a cost, thanks to the Cyclos developers. The Cyclos SMS is working perfectly but the next thing i want to do is to let cyclos send SMS to the mobile numbers of both parties involved in the transaction. For example when a payment is initiated from one member to the other both payer and payee should receive feedback messages. I have been ob this for over 3 weeks and have not gotten it done. i checked the log file and I see that the provider which is to initiate this is not configured. How do I configure the provider supposing it is the cause of this? Thanks. God bless in Jesus name.
Part of the log file is displayed elow.

2013-02-04 16:38:59 INFO SmsSenderWebServiceImpl - Message from cyclos: cyclos(trace=22204212893605). Target member: Barber Wasiu. Text: Cyclos: Available balance: 9.885,00. Last transactions: 04/02/2013 16:38 -4,00 :: 04/02/2013 15:49 -4,00 :: 04/02/2013 15:43 -65,00
2013-02-04 16:38:59 INFO ControllerFacade - Sending to driver: aioDriver. Controller message:
trace = 22204212893605
provider = null
from = 9999
to = 08023472436
text = Cyclos: Available balance: 9.885,00. Last transactions: 04/02/2013 16:38 -4,00 :: 04/02/2013 15:49 -4,00 :: 04/02/2013 15:43 -65,00

2013-02-04 16:38:59 INFO DriverServiceImpl - A message from Controller has arrived: Controller message:
trace = 22204212893605
provider = null
from = 9999
to = 08023472436
text = Cyclos: Available balance: 9.885,00. Last transactions: 04/02/2013 16:38 -4,00 :: 04/02/2013 15:49 -4,00 :: 04/02/2013 15:43 -65,00

2013-02-04 16:38:59 INFO SimulatorDriverEngine - Sending message to provider: Controller message:
trace = 22204212893605
provider = null
from = 9999
to = 08023472436
text = Cyclos: Available balance: 9.885,00. Last transactions: 04/02/2013 16:38 -4,00 :: 04/02/2013 15:49 -4,00 :: 04/02/2013 15:43 -65,00

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

Re: Setting a provider for SMS

Post by ken4ward » Mon Feb 11, 2013 2:24 pm

------------------------------------------------SMS Log-----------------------------------------------------------------------------------------
2013-02-11 17:27:27 INFO DriverServiceImpl - A message from Controller has arrived: Controller message:
trace = 1
provider = Airtel
from = 08177013526
to = 08068592950
text = Cyclos: A payment of 7,00 units was received from barber. Your balance is 10.373,00 units

2013-02-11 17:27:27 INFO DriverServiceImpl - A message from Controller has arrived: Controller message:
trace = 1
provider = Airtel
from = 08177013526
to = 08033257367
text = Cyclos: You have made a payment of 7,00 units to member: 08068592950. Transaction ID: null. Your new account balance is 9.627,00 units

2013-02-11 17:27:27 INFO HttpGatewayEngine - Sending message to gateway: Controller message:
trace = 1
provider = Airtel
from = 08177013526
to = 002348068592950
text = Cyclos: A payment of 7,00 units was received from barber. Your balance is 10.373,00 units

2013-02-11 17:27:27 INFO HttpGatewayEngine - Sending message to gateway: Controller message:
trace = 1
provider = Airtel
from = 08177013526
to = 002348033257367
text = Cyclos: You have made a payment of 7,00 units to member: 08068592950. Transaction ID: null. Your new account balance is 9.627,00 units
----------------------------------------------------------SMS Log-------------------------------------------------------------
Thanks all! the provider has been successfully configured. I am about testing it, but before that I only want to seek your experts opinion if I am right, because in this documentation http://www.cyclos.org/wiki/index.php/Op ... ct_payment. It spells out that the organization will have 2 phone numbers: 1. for outgoing messages 2. for incoming messages.
According to this tutorial as well http://www.cyclos.org/wiki/index.php/Se ... bile_phone there will be a mobile phone (android) that the SMS gateway will be installed, which needs to be configured with Cyclos (I believe this stands for the incoming messages).
My question is this: according to the previous tutorial, everything is been configured as suppose, but since the organization is required to have 2 mobile numbers (possibly 2 android mobile phones),
1. Am I to install the SMS gateway on both mobile phones? If so, how do I configure the one for the outgoing messages? The incoming message is configured fine with the first mobile phone that the SMS gateway has been installed.
2. In the <route fromProvider="Airtel" toDriver="aioDriver" usedFromNumber="08177013526" default="false"/> According to the “usedFromNumber” parameter, am I to put the mobile number for outgoing messages in this? Because the number I put in this place is still the one that is used for the incoming SMS.
Thanks. God bless in Jesus name.

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

Re: Setting a provider for SMS

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

You do not need two phones. One gateway is sufficient. Can you tell where it is stated in the documentation that you need two phones?

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

Re: Setting a provider for SMS

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

though i got the feeling from this link http://www.cyclos.org/wiki/index.php/Operations "Clients can perform operations by sending (and receiving) SMS messages using their cell phone. The client cell phone number (callerID) is used for identification. The clients will send the operation messages to a general phone number that belongs to the organization. This can be a normal phone number or a 'short code' (number with less digits than a conventional number). Normally organisations will have two numbers: an 'inbound' number that receives the operation (client) messages (e.g. make payment), and an 'outbound' number that is used to send messages to clients (e.g. mailings, payment confirmations etc)"

Thanks a lot. I have seen that I do not need two phones. As stated above, when I looked at the log of the SMS gateway, what's happening is that Cyclos is sending back "00" to the SMS gateway without converting it to "+" which makes the SMS Gateway not to be able to read and send back Cyclos feedback message to both sender and receiver.

Post Reply