Hi Alex
This is the code I use for dlr:
$dlr_URL =
$dlr_mask."&dlr-url=".urlencode($kannel_param['playsms_web']."/gateway/kannel/dlr.php?type=%d&slid=$smslog_id&uid=$uid&smsc=%i&sender_id=$sms_from");
$dlr_URL .= "&mclass=$sms_type";
This is the url:
/cgi-bin/sendsms?username=puser&password=ppass&from=%252B525587654321&to=%2B525535504776&text=ABANDONO+GRAL+1.46%25PRUEBA+SMS+&smsc=telcel&coding=0&mclass=2
and dlr part of url coded:
&dlr-mask=24&dlr-url=http%3A%2F%2F127.0.0.1%2Fsms%2Fplugin%2Fgateway%2Fkannel%2Fdlr.php%3Ftype%3D%25d%26slid%3D2858203%26uid%3D277%26smsc%3D%25i%26sender_id%3D%252B525587654321
Hope help you help me ;)
|-----------------------------------------------------------------------------------------------------------------|
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
On Wed, Mar 4, 2009 at 5:20 AM, Alexander Malysh <[email protected]> wrote:
> Hi Alvaro,
>
> this is related to how DLR message is formated. Seems it's formated in
> different way as smpp spec suggest. Could you please post your DLR message,
> so I can look into it?
>
> Thanks,
> Alex
>
> Alvaro Cornejo schrieb:
>>
>> Hi
>>
>> I'm receiving the following error in my SMPP log:
>>
>> 2009-03-03 14:52:20 [6373] [6] DEBUG: SMPP[telcel_sc3783] handle_pdu, got
>> DLR
>> 2009-03-03 14:52:20 [6373] [6] DEBUG: SMPP[telcel_sc3783]: Couldnot
>> parse DLR string sscanf way,fallback to old way. Please report!
>> 2009-03-03 14:52:20 [6373] [6] DEBUG: DLR[mysql]: Looking for DLR
>> smsc=telcel_sc3783, ts=1236113516, dst=MiSender, type=1
>> 2009-03-03 14:52:20 [6373] [6] DEBUG: sql: SELECT mask, service, url,
>> source, destination, boxc FROM tblkannel_dlr WHERE
>> smsc='telcel_sc3783' AND ts='1236113516';
>> 2009-03-03 14:52:20 [6373] [6] DEBUG: Found entry, row[0]=31,
>> row[1]=playsms,
>>
>> row[2]=http://127.0.0.1/sms/plugin/gateway/kannel/dlr.php?type=%d&slid=2854200&uid=10&smsc=%i&sender_id=MiSender,
>> row[3]=0, row[4]=525527298936 row[5]=
>> 2009-03-03 14:52:20 [6373] [6] DEBUG: DLR[mysql]: created DLR message
>> for URL
>> <http://127.0.0.1/sms/plugin/gateway/kannel/dlr.php?type=%d&slid=2854200&uid=10&smsc=%i&sender_id=MiSender>
>> 2009-03-03 14:52:20 [6373] [6] DEBUG: removing DLR from database
>> 2009-03-03 14:52:20 [6373] [6] DEBUG: sql: DELETE FROM tblkannel_dlr
>> WHERE smsc='telcel_sc3783' AND ts='1236113516' LIMIT 1;
>> 2009-03-03 14:52:20 [6373] [6] DEBUG: SMPP[telcel_sc3783]: Sending PDU:
>> 2009-03-03 14:52:20 [6373] [6] DEBUG: SMPP PDU 0x9c54f10 dump:
>>
>>
>> What is this?
>>
>> Regards
>>
>> Alvaro
>>
>>
>
>
>