# 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to