I try to send a sms but i have the same problem. In my php code i use a echo to 
send back the message to smsbox.

I use the group = sms-service to call my application and the reply is done with 
an 'echo'.

So i try also another application did by someone on internet. The MT message 
doesn't have a '?' at the beginning of the sms. But really strange his 
application use echo to send message like my application. 


I look thesmsbox.log and i compare the 2 applications to see the differences:

This is the logs of my app:

74 65 78 74 2f   tent-Type: text/
2013-07-05 01:11:35 [12439] [8] DEBUG:   data: 68 74 6d 6c 0d 0a 0d 0a ef bb bf
53 75 63 63 65   html…….Succe
2013-07-05 01:11:35 [12439] [8] DEBUG:   data: 73 73 66 75 6c 6c 79 20 73 65 6e
64 20 6d 65 73   ssfully send mes
2013-07-05 01:11:35 [12439] [8] DEBUG:   data: 73 61 67 65 20 74 6f 20 79 6f 75
72 20 70 61 72   sage to your

This is logs for app from internet:

74 65 78 74 2f   tent-Type: text/
2013-07-05 01:20:59 [12439] [8] DEBUG:   data: 68 74 6d 6c 0d 0a 0d 0a 53 6f 72
72 79 20 61 6e   html….Sorry an
2013-07-05 01:20:59 [12439] [8] DEBUG:   data: 20 65 72 72 6f 72 20 68 61 73 20
6f 63 63 75 72    error has occur
2013-07-05 01:20:59 [12439] [8] DEBUG:   data: 65 64

The only differences are just after html. My app has more than 6 dots before 
the sms messages and only 4 dots for the other app. Maybe the problem come from 
here. Any help?


________________________________
 De : Willy Mularto <[email protected]>
À : "[email protected]" <[email protected]> 
Cc : [email protected] 
Envoyé le : Mardi 25 juin 2013 6h01
Objet : Re: problem with sms
 


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