1. Set log-level=0
2. Try send 1 MT
3. Analyze bearerbox.log
4. Also check how did you call sendsms

The answer should be there
Willy Mularto
[email protected]

On Jun 25, 2013, at 12:35 PM, "[email protected]" <[email protected]> wrote:

> 
> For sending and receiving sms from kannel, i use a Nokia phone like a modem. 
> the answer from smsbox doesn't contain the '?' at the beginning of the sms. 
> But when i look the sms receive by the phone, the '?' is still there at the 
> beginning of the sms. this is the sms that i receive on the phone: ?This user 
> is already registered in our database.
> 
> This is the content of config file:
> 
> #
> # Sample configuration file for Kannel bearerbox on Debian.
> # See the documentation for explanations of fields.
> #
> 
> # HTTP administration is disabled by default. Make sure you set the
> # password if you enable it.
> 
> group = core
> admin-port = 13000
> admin-password = bar
> #admin-deny-ip = "*.*.*.*"
> #admin-allow-ip = ""
> #wapbox-port = 13002
> #wdp-interface-name = "*"
> smsbox-port = 13001
> log-file = "/var/log/kannel/bearerbox.log"
> log-level=1
> unified-prefix = "00220,+220,00"
> #box-deny-ip = "*.*.*.*"
> #box-allow-ip = "127.0.0.1"
> 
> #group = wapbox
> #bearerbox-host = localhost
> #log-file = "/var/log/kannel/wapbox.log"
> 
> #———————————————
> # SMSBOX SETUP
> group = smsbox
> bearerbox-host = localhost
> sendsms-port = 13013
> sendsms-url = "/cgi-bin/sendsms"
> global-sender = 13013
> sendsms-chars = "0123456789 +-"
> log-file = "/tmp/smsbox.log"
> log-level = 0
> access-log = "access.log"
> 
> #———————————————
> # SMSC CONNECTIONS
> group = smsc
> smsc=at
> modemtype=nokiaphone
> host = localhost
> device=/dev/ttyACM0
> speed=9600
> validityperiod =167
> 
> #———————————————
> # SMSC CONNECTIONS
> #group = smsc
> #smsc = smpp
> #smsc-id = SMPPSim
> #host = 127.0.0.1
> #port = 2775
> #transceiver-mode = 1
> #receive-port = 2775
> #smsc-username = smppclient1
> #smsc-password = password
> #system-type = 'VMA'
> ##my-number = "13013"
> #source-addr-autodetect = yes
> #address-range = ""
> ##service-type = test
> #interface-version = 34
> ##system-id = smppclient
> #preferred-smsc-id = SMPPSim
> 
> #———————————————
> # SMSC CONNECTIONS
> #group = smsc
> #smsc = http
> #system-type = kannel
> #smsc-username = smppclient2
> #smsc-password = password
> #port = 8080
> #no-sender = true
> #send-url = "http://localhost:8000";
> 
> #———————————————-
> #MODEM
> group = modems
> id = nokiaphone
> name = "Nokia Phone"
> detect-string = "Nokia Mobile Phone"
> need-sleep = true
> enable-mms = true
> 
> #———————————————
> # SEND-SMS USERS
> group = sendsms-user
> username = tester
> password = foobar
> max-messages = 3
> concatenation = true
> #user-deny-ip = « *.*.*.* »
> user-allow-ip = « *.*.*.* »
> 
> #———————————————
> # SERVICES
> group = sms-service
> keyword = test
> text = "test kannel is valide!"
> accept-x-kannel-headers = true
> max-messages = 3
> concatenation = true
> catch-all = true
> 
> group = sms-service
> keyword = app
> get-url = "http://localhost/app/register.php?text=%r&num=%p";
> accept-x-kannel-headers = true
> max-messages = 3
> concatenation = true
> catch-all = true
> 
> 
> De : Alvaro Cornejo <[email protected]>
> À : "[email protected]" <[email protected]> 
> Cc : [email protected] 
> Envoyé le : Mercredi 19 juin 2013 14h00
> Objet : Re: problem with sms
> 
> Please post your config and how you send your call to kannel. Are you
> urlencoding the data on your call to kannel?
> 
> Regards
> 
> 
> 
> On 6/18/13, [email protected] <[email protected]> wrote:
> >
> > I am writing an php application for kannel. When i do a request, kannel send
> > back the answer through sms. But the sms that kannel send begin with '?'
> > e.g: ?we receive your sms. So i tested my php application alone and it works
> > great. And the answer doesn't have any '?'. So the problem come from kannel.
> > I want to remove this '?' in the sms. Can you help me?
> >
> >
> > Sent from Alto - altomail.com
> 
> 
> -- 
> |-----------------------------------------------------------------------------------------------------------------|
> Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
> celular y Nextel
> en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
> SMS y GPRS online
> Visitenos en www.perusms.NET www.smsglobal.com.mx y
> www.pravcom.com
> 
> 
> 

Reply via email to