Hi,
I turned on debug the loglevel.
"log-level = 0"

I sended the sms with dlr-mask=31 and the result is 8.

The log file is here:

2008-01-25 05:57:08 [30546] [6] DEBUG: DLR[internal]: Adding DLR
smsc=smpp, ts=0108V-01256-0611D-42DOX, src=root, dst=123456789, mask=31,
boxc=
2008-01-25 05:57:08 [30546] [6] DEBUG: SMSC[smpp]: creating DLR message
2008-01-25 05:57:08 [30546] [6] DEBUG: SMSC[smpp]: DLR =
http://host.xyz/dlr/dlr.php?type=%d
2008-01-25 05:57:08 [30546] [10] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2008-01-25 05:57:08 [30546] [10] DEBUG: boxc_sender: sent message to
<127.0.0.1>
2008-01-25 05:57:08 [30558] [4] INFO: Starting delivery report <tester>
from <root>
2008-01-25 05:57:08 [30558] [9] DEBUG: Parsing URL
`http://host.xyz/dlr/dlr.php?type=8':
2008-01-25 05:57:08 [30558] [9] DEBUG:   Scheme: http://
2008-01-25 05:57:08 [30558] [9] DEBUG:   Host: host.xyz
2008-01-25 05:57:08 [30558] [9] DEBUG:   Port: 80
2008-01-25 05:57:08 [30558] [9] DEBUG:   Username: (null)
2008-01-25 05:57:08 [30558] [9] DEBUG:   Password: (null)
2008-01-25 05:57:08 [30558] [9] DEBUG:   Path: /dlr/dlr.php
2008-01-25 05:57:08 [30558] [9] DEBUG:   Query: type=8
2008-01-25 05:57:08 [30558] [9] DEBUG:   Fragment: (null)
2008-01-25 05:57:08 [30546] [9] DEBUG: boxc_receiver: got ack

What is the problem??

>
> Turn on debug for ur SMSC to monitor what happens to ur sent message.
>
> You will see what dlr URL Kannel is trying to call.
>
> Also watch your access log.
>
> These ll be help in see what happens.
>
>
> kannel wrote:
>>
>> Hi,
>>
>> I tried to send sms's with the next url:
>> http://host:port/cgi-bin/sendsms?username=tester&password=foobar&from=root&to=+12345&text=hello&dlr-mask=7&dlr-url=http%3A%2F%2Fhost%2Fdlr%2Fdlr.php%3Ftype%3D%25d
>>
>> The dlr-url is encoded with php:
>> <?
>> $drl_url="http://host/dlr/dlr.php?type=%d";;
>> $e_dlr_url=rawurlencode($drl_url);
>> echo $e_dlr_url;
>> ?>
>>
>> The dlr.php file is here:
>> <?
>> $stringData=$_GET['type'];
>> $handle = fopen("./file.txt", "w");
>> fwrite($handle, $stringData);
>> ?>
>>
>> Main configuration file is here:
>>
>> group = core
>> admin-port = 12000
>> admin-password = foobar
>> status-password = foobar
>> smsbox-port = 12001
>> log-file = "/opt/kannel/logs/bearerbox_server.log"
>> #log-level = 1
>> #dlr-storage = mysql
>> dlr-storage = internal
>>
>> include = "/opt/kannel/etc/smsc.d/smsc.conf"
>>
>> group = smsbox
>> bearerbox-host = localhost
>> sendsms-port = 12013
>> log-file = "/opt/kannel/logs/smsbox_server.log"
>> #log-level = 1
>> access-log = "/opt/kannel/logs/access_smsbox_server.log"
>>
>>
>> group = sendsms-user
>> username = tester
>> password = foobar
>> concatenation = yes
>> max-messages = 10
>>
>> The smsc.conf file is here:
>> group = smsc
>> smsc = smpp
>> smsc-id = smpp
>> host = host
>> port = 1234
>> receive-port = 1235
>> system-type = "smpp"
>> smsc-username = tester
>> smsc-password = foobar
>> source-addr-ton = 0
>> source-addr-npi = 1
>> source-addr-autodetect = yes
>> dest-addr-ton = 1
>> dest-addr-npi = 1
>>
>> I received the sms's, but did not receive any dlr's.
>> Can u help me?
>>
>>
>>>
>>> in core group set
>>> dlr-storage = internal
>>>
>>>
>>> Anytime you want to send a msg to an smsbox, add the dlr-mask field
>>> (dlr-mask=7) and add the dlr-url field
>>> (url-field=www.host.domain/logsmsreply)
>>>
>>>
>>>
>>> kannel wrote:
>>>>
>>>>
>>>>
>>>> Hi everybody,
>>>>
>>>> Can somebody help me with detailed documentation about how to set
>>>> kannel
>>>> to receive dlr's.
>>>>
>>>> Regards
>>>>
>>>> --
>>>> Ezen uzenet virusellenorzesen esett at, es virusmentesnek bizonyult.
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/dlr-help-tp15072112p15074486.html
>>> Sent from the Kannel - User mailing list archive at Nabble.com.
>>>
>>>
>>>
>>> --
>>> Ezen uzenet virusellenorzesen esett at, es virusmentesnek bizonyult.
>>>
>>>
>>
>>
>> --
>> Ezen uzenet virusellenorzesen esett at, es virusmentesnek bizonyult.
>>
>>
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/dlr-help-tp15072112p15084624.html
> Sent from the Kannel - User mailing list archive at Nabble.com.
>
>
>
> --
> Ezen uzenet virusellenorzesen esett at, es virusmentesnek bizonyult.
>
>


-- 
Ezen uzenet virusellenorzesen esett at, es virusmentesnek bizonyult.



Reply via email to