I see.. I just downloaded the current version of smslib at the website. Perhaps it should be better if the 3.3 version is already posted there in the download section.
Thanks. On Nov 15, 6:50 pm, Thanasis <[EMAIL PROTECTED]> wrote: > Hi, > > I assume that you are talking about v3.3.1 and not v3.3. > > Yes this is a known bug. There is also an announcement > (http://groups.google.com/group/smslib-announce/browse_thread/thread/4...) > for this, as well as instructions on what to do in order to fix it. > > 2008/11/15 Jejo <[EMAIL PROTECTED]> > > > > > I think the problem here is that the default value of gateway id field > > in the smssvr_out table, as mentioned in the documentation, is the > > star character > > > gateway_id CHAR(64) NOT NULL, Default value is the star > > character Set > > it to the star character if you want to leave to SMSServer the > > decision as to which gateway to use to send your message. Set it to a > > specific Gateway ID to force SMSServer to send your message via this > > gateway. > > > in the code, upon prerouting: > > > for (AGateway gtw : getService().getGateways()) > > if ((gtw.isOutbound()) && (gtw.getStatus() == > > GatewayStatuses.RUNNING)) > > { > > if (msg.getGatewayId().length() != > > 0) > > { > > > getService().getLogger().logInfo("Message gateway: > > "+msg.getGatewayId(), null, null); > > > getService().getLogger().logInfo("Gateway: "+gtw.getGatewayId(), > > null, null); > > if > > (msg.getGatewayId().equalsIgnoreCase(gtw.getGatewayId())) > > getCandidates().add(gtw); > > } > > else getCandidates().add(gtw); > > } > > > The Gateway wont be added in the gtw in the candidate list if the > > message gateway is a * character. Maybe this can be modified to: > > > if(msg.getGatewayId().equals("*")){ > > getCandidates().add(gtw); > > } > > > On Nov 15, 5:22 pm, Jejo <[EMAIL PROTECTED]> wrote: > > > # Set a different balancer than the default. > > > #smsserver.balancer=RoundRobinLoadBalancer > > > > #Set a different router than the default. > > > #smsserver.router=NumberPoolRouter > > > > # Lets add a modem > > > gateway.0=modem1, SerialModem > > > modem1.port=COM7 > > > modem1.baudrate=57600 > > > modem1.manufacturer=SonyEricsson > > > modem1.model=z610i > > > modem1.protocol=PDU > > > modem1.pin=0000 > > > modem1.inbound=yes > > > modem1.outbound=yes > > > modem1.init_string=ATZ\rATZ\rATZ\r > > > > interface.0=db1, Database > > > db1.url=jdbc:mysql://localhost:3306/sms > > > db1.driver=com.mysql.jdbc.Driver > > > db1.username=root > > > db1.password=root > > > db1.type=mysql > > > db1.tables.sms_in=smssvr_in > > > db1.tables.sms_out=smssvr_out > > > db1.tables.calls=smssvr_calls > > > db1.batch_size=50 > > > db1.retries=3 > > > db1.update_outbound_on_statusreport=no > > > > # Should SMSServer work in sync or async sending mode? > > > # Async mode forwards messages to gateway queues. > > > # Values can be "sync" and "async". > > > settings.send_mode = sync > > > > # Allowed dispatch time-fames per priority > > > settings.timeframe.low=0000-2359 > > > settings.timeframe.normal=0000-2359 > > > settings.timeframe.high=0000-2359 > > > > There. notice that I didnt use different Router and Balancer. Hmm. > > > also, upon seeing the code. the preroute method, gets the candidate > > > gateways if the message gateway id is equal to the gateway id loaded > > > in the service. My message gateway in the smssvr_out table is defined > > > as * as what the documentation says. For now, what i am doing is to > > > update the default value of gateway in the smsvr_out table to modem1 > > > for it to be included in the candidate list of gateways in the > > > preroute method. > > > > On Nov 15, 4:49 pm, Thanasis <[EMAIL PROTECTED]> wrote: > > > > > Can you post your config file? > > > > > 2008/11/15 Jejo <[EMAIL PROTECTED]> > > > > > > Hello > > > > > > I started using sms server 3.3 with my phone Sony Ericsson z610i. = I > > > > > tried sending messages. Its working with the example > > SendMessage.java. > > > > > However its not working in SMSServer. It always marks my message > > entry > > > > > in the database as Sent "F". I tried debugging it and found out that > > > > > the sendMessage method in Service class which has AGateway gateway = > > > > > routeMessage(msg); on line 532 is returning a null gateway. What i > > > > > tried to do for now as a workaround is to find my outbound gateway > > > > > manually: > > > > > > for (org.smslib.AGateway gtw : getGateways()) > > > > > if (gtw.isOutbound()) > > > > > { > > > > > > gateway = gtw; > > > > > break; > > > > > } > > > > > > But still im wondering. Is this a bug? or did i miss something out? > > > > > > Hope for immediate assistance for this. > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SMSLib Users Group" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/SMSLib?hl=en -~----------~----~----~----~------~----~------~--~---
