THANK YOU!!!! That worked great. Is there any way to set a "default" smsc so that if one is not specified it will use it?
Roy From: Alejandro Guerrieri [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2008 2:57 PM To: Roy Walker Cc: Eduardo Raad; [email protected] Subject: Re: Please help Try adding the "smsc" parameter to the sendsms URL to force using that route. For example: http://host:port/cgi-bin/sendsms?username=tester&password=foobar&from... &smsc=motorola Regards, Alejandro On Tue, Sep 23, 2008 at 4:07 PM, Roy Walker <[EMAIL PROTECTED]> wrote: Taking out the my number line from the SMSC config did not change anything. Getting the same error. Since I don't want to filter, I don't see a reason to specify the allowed-prefix line. Any other ideas? Thanks, Roy -----Original Message----- From: Eduardo Raad [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 23, 2008 1:42 PM To: Roy Walker Cc: [email protected] Subject: Re: Please help The error message is telling you that the bearerbox could not find a valid route for that number. I'm not sure why this is happening as I'm using a similar configuration (without specifying actual accepted prefixes on the SMSC config) and it works for me. You may try to remove the "my number" parameter from the SMSC or add accepted prefixes to the SMSC. Look for this on the user guide. Eduardo Roy Walker wrote: > Still having a steep learning curve on this... > > > > Getting error like this: > > 2008-09-23 13:11:01 [29782] [8] DEBUG: boxc_receiver: sms received > > 2008-09-23 13:11:01 [29782] [8] WARNING: Cannot find SMSCConn for > message to <2145555555>, rejected. > > 2008-09-23 13:11:01 [29782] [8] WARNING: Message rejected by bearerbox, > no router! > > 2008-09-23 13:11:01 [29782] [8] DEBUG: send_msg: sending msg to box: > <127.0.0.1> > > > > Here is the config: > > > > group = core > > admin-port = 13000 > > smsbox-port = 13001 > > admin-password = bar > > #status-password = foo > > #admin-deny-ip = "" > > #admin-allow-ip = "" > > log-file = "/var/log/kannel/core.log" > > log-level = 0 > > #box-deny-ip = "*.*.*.*" > > box-allow-ip = "*.*.*.*" > > #unified-prefix = "+358,00358,0;+,00" > > access-log = "/var/log/kannel/core-access.log" > > #store-file = "kannel.store" > > #ssl-server-cert-file = "cert.pem" > > #ssl-server-key-file = "key.pem" > > #ssl-certkey-file = "mycertandprivkeyfile.pem" > > > > #--------------------------------------------- > > # SMSC CONNECTIONS > > # > > # SMSC connections are created in bearerbox and they handle SMSC specific > > # protocol and message relying. You need these to actually receive and send > > # messages to handset, but can use GSM modems as virtual SMSCs > > > > > > # USB attached GSM phone > > group = smsc > > smsc = at > > smsc-id = motorola > > allowed-smsc-id = "motorola" > > modemtype = motorola > > device = /dev/ttyACM0 > > speed = 115200 > > my-number = 13616961548 > > log-file = "/var/log/kannel/gsm-smsc.log" > > log-level = 0 > > sim-buffering = false > > connect-allow-ip = "*.*.*.*" > > > > group = modems > > id = motorola > > name = "motorola" > > detect-string = "MOTOROLA" > > speed = 115200 > > init-string = "AT&F Q0 V1 E0 S0=0 &D2 &C1;+CNMI=3,2,0,0,0;+CMEE=2" > > need-sleep = true > > #init-string = "AT+CGDCONT=1,IP,slogic.t-mobile.net" > > > > #--------------------------------------------- > > # SMSBOX SETUP > > # > > # Smsbox(es) do higher-level SMS handling after they have been received from > > # SMS centers by bearerbox, or before they are given to bearerbox for > delivery > > > > group = smsbox > > bearerbox-host = 127.0.0.1 > > sendsms-port = 13013 > > global-sender = 13616961548 > > #sendsms-chars = "0123456789 +-" > > log-file = "/var/log/kannel/smsbox.log" > > log-level = 0 > > access-log = "/var/log/kannel/smsbox-access.log" > > > > #--------------------------------------------- > > # SEND-SMS USERS > > # > > # These users are used when Kannel smsbox sendsms interface is used to > > # send PUSH sms messages, i.e. calling URL like > > # > http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foo bar... > > > > group = sendsms-user > > username = kannelsms > > password = password > > > > #--------------------------------------------- > > # SERVICES > > # > > # These are 'responses' to sms PULL messages, i.e. messages arriving from > > # handsets. The response is based on message content. Only one > sms-service is > > # applied, using the first one to match. > > > > group = sms-service > > keyword = nop > > text = "You asked nothing and I did it!" > > > > # There should be always a 'default' service. This service is used when no > > # other 'sms-service' is applied. > > > > group = sms-service > > keyword = default > > text = "No service specified" >
