Hi Alex attached smsc debug info:
2009-03-04 10:02:37 [3044] [6] DEBUG: SMPP[telcel_sc3783]: Manually forced source addr ton = 2, source add npi = 1 2009-03-04 10:02:37 [3044] [6] DEBUG: SMPP[telcel_sc3783]: Manually forced dest addr ton = 2, dest add npi = 1 2009-03-04 10:02:37 [3044] [6] DEBUG: SMPP[telcel_sc3783]: Sending PDU: 2009-03-04 10:02:37 [3044] [6] DEBUG: SMPP PDU 0xa5a03ad8 dump: 2009-03-04 10:02:37 [3044] [6] DEBUG: type_name: submit_sm 2009-03-04 10:02:37 [3044] [6] DEBUG: command_id: 4 = 0x00000004 2009-03-04 10:02:37 [3044] [6] DEBUG: command_status: 0 = 0x00000000 2009-03-04 10:02:37 [3044] [6] DEBUG: sequence_number: 2199 = 0x00000897 2009-03-04 10:02:37 [3044] [6] DEBUG: service_type: NULL 2009-03-04 10:02:37 [3044] [6] DEBUG: source_addr_ton: 5 = 0x00000005 2009-03-04 10:02:37 [3044] [6] DEBUG: source_addr_npi: 0 = 0x00000000 2009-03-04 10:02:37 [3044] [6] DEBUG: source_addr: "MiSender" 2009-03-04 10:02:37 [3044] [6] DEBUG: dest_addr_ton: 1 = 0x00000001 2009-03-04 10:02:37 [3044] [6] DEBUG: dest_addr_npi: 1 = 0x00000001 2009-03-04 10:02:37 [3044] [6] DEBUG: destination_addr: "525513206766" 2009-03-04 10:02:37 [3044] [6] DEBUG: esm_class: 3 = 0x00000003 2009-03-04 10:02:37 [3044] [6] DEBUG: protocol_id: 0 = 0x00000000 2009-03-04 10:02:37 [3044] [6] DEBUG: priority_flag: 0 = 0x00000000 2009-03-04 10:02:37 [3044] [6] DEBUG: schedule_delivery_time: NULL 2009-03-04 10:02:37 [3044] [6] DEBUG: validity_period: NULL 2009-03-04 10:02:37 [3044] [6] DEBUG: registered_delivery: 1 = 0x00000001 2009-03-04 10:02:37 [3044] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000 2009-03-04 10:02:37 [3044] [6] DEBUG: data_coding: 242 = 0x000000f2 2009-03-04 10:02:37 [3044] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000 2009-03-04 10:02:37 [3044] [6] DEBUG: sm_length: 20 = 0x00000014 2009-03-04 10:02:37 [3044] [6] DEBUG: short_message: 2009-03-04 10:02:37 [3044] [6] DEBUG: Octet string at 0xa5a98f90: 2009-03-04 10:02:37 [3044] [6] DEBUG: len: 20 2009-03-04 10:02:37 [3044] [6] DEBUG: size: 21 2009-03-04 10:02:37 [3044] [6] DEBUG: immutable: 0 2009-03-04 10:02:37 [3044] [6] DEBUG: data: 74 65 73 74 20 73 6d 70 70 20 2f 20 41 63 6f 72 test smpp / Acor 2009-03-04 10:02:37 [3044] [6] DEBUG: data: 6e 65 6a 6f nejo 2009-03-04 10:02:37 [3044] [6] DEBUG: Octet string dump ends. 2009-03-04 10:02:37 [3044] [6] DEBUG: SMPP PDU dump ends. 2009-03-04 10:02:37 [3044] [6] DEBUG: SMPP[telcel_sc3783]: Got PDU: 2009-03-04 10:02:37 [3044] [6] DEBUG: SMPP PDU 0xa5a03ad8 dump: 2009-03-04 10:02:37 [3044] [6] DEBUG: type_name: submit_sm_resp 2009-03-04 10:02:37 [3044] [6] DEBUG: command_id: 2147483652 = 0x80000004 2009-03-04 10:02:37 [3044] [6] DEBUG: command_status: 0 = 0x00000000 2009-03-04 10:02:37 [3044] [6] DEBUG: sequence_number: 2199 = 0x00000897 2009-03-04 10:02:37 [3044] [6] DEBUG: message_id: "49AEA608" 2009-03-04 10:02:37 [3044] [6] DEBUG: SMPP PDU dump ends. 2009-03-04 10:02:37 [3044] [6] DEBUG: DLR[mysql]: Adding DLR smsc=telcel_sc3783, ts=1236182536, src=MiSender, dst=+525513206766, mask=31, boxc= 2009-03-04 10:02:37 [3044] [6] DEBUG: sql: INSERT INTO tblkannel_dlr (smsc, ts, source, destination, service, url, mask, boxc, status) VALUES ('telcel_sc3783', '1236182536', 'MiSender', '+525513206766', 'playsms', 'http://127.0.0.1/sms/plugin/gateway/kannel/dlr.php?type=%d&slid=2860670&uid=10&smsc=%i&sender_id=MiSender', '31', '', '0'); 2009-03-04 10:02:37 [3044] [6] DEBUG: SMSC[telcel_sc3783]: creating DLR message 2009-03-04 10:02:37 [3044] [6] DEBUG: SMSC[telcel_sc3783]: DLR = http://127.0.0.1/sms/plugin/gateway/kannel/dlr.php?type=%d&slid=2860670&uid=10&smsc=%i&sender_id=MiSender 2009-03-04 10:02:39 [3044] [6] DEBUG: SMPP[telcel_sc3783]: Got PDU: 2009-03-04 10:02:39 [3044] [6] DEBUG: SMPP PDU 0xa5a03ad8 dump: 2009-03-04 10:02:39 [3044] [6] DEBUG: type_name: deliver_sm 2009-03-04 10:02:39 [3044] [6] DEBUG: command_id: 5 = 0x00000005 2009-03-04 10:02:39 [3044] [6] DEBUG: command_status: 0 = 0x00000000 2009-03-04 10:02:39 [3044] [6] DEBUG: sequence_number: 1 = 0x00000001 2009-03-04 10:02:39 [3044] [6] DEBUG: service_type: NULL 2009-03-04 10:02:39 [3044] [6] DEBUG: source_addr_ton: 5 = 0x00000005 2009-03-04 10:02:39 [3044] [6] DEBUG: source_addr_npi: 0 = 0x00000000 2009-03-04 10:02:39 [3044] [6] DEBUG: source_addr: "MiSender" 2009-03-04 10:02:39 [3044] [6] DEBUG: dest_addr_ton: 1 = 0x00000001 2009-03-04 10:02:39 [3044] [6] DEBUG: dest_addr_npi: 1 = 0x00000001 2009-03-04 10:02:39 [3044] [6] DEBUG: destination_addr: "525513206766" 2009-03-04 10:02:39 [3044] [6] DEBUG: esm_class: 4 = 0x00000004 2009-03-04 10:02:39 [3044] [6] DEBUG: protocol_id: 0 = 0x00000000 2009-03-04 10:02:39 [3044] [6] DEBUG: priority_flag: 0 = 0x00000000 2009-03-04 10:02:39 [3044] [6] DEBUG: schedule_delivery_time: NULL 2009-03-04 10:02:39 [3044] [6] DEBUG: validity_period: NULL 2009-03-04 10:02:39 [3044] [6] DEBUG: registered_delivery: 0 = 0x00000000 2009-03-04 10:02:39 [3044] [6] DEBUG: replace_if_present_flag: 0 = 0x00000000 2009-03-04 10:02:39 [3044] [6] DEBUG: data_coding: 0 = 0x00000000 2009-03-04 10:02:39 [3044] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000 2009-03-04 10:02:39 [3044] [6] DEBUG: sm_length: 70 = 0x00000046 2009-03-04 10:02:39 [3044] [6] DEBUG: short_message: 2009-03-04 10:02:39 [3044] [6] DEBUG: Octet string at 0xa5a3ac38: 2009-03-04 10:02:39 [3044] [6] DEBUG: len: 70 2009-03-04 10:02:39 [3044] [6] DEBUG: size: 71 2009-03-04 10:02:39 [3044] [6] DEBUG: immutable: 0 2009-03-04 10:02:39 [3044] [6] DEBUG: data: 69 64 3a 31 32 33 36 31 38 32 35 33 36 20 73 74 id:1236182536 st 2009-03-04 10:02:39 [3044] [6] DEBUG: data: 61 74 3a 44 45 4c 49 56 52 44 20 73 75 62 6d 69 at:DELIVRD submi 2009-03-04 10:02:39 [3044] [6] DEBUG: data: 74 20 64 61 74 65 3a 30 39 30 33 30 34 31 30 30 t date:090304100 2009-03-04 10:02:39 [3044] [6] DEBUG: data: 32 20 64 6f 6e 65 20 64 61 74 65 3a 30 39 30 33 2 done date:0903 2009-03-04 10:02:39 [3044] [6] DEBUG: data: 30 34 31 30 30 32 041002 2009-03-04 10:02:39 [3044] [6] DEBUG: Octet string dump ends. 2009-03-04 10:02:39 [3044] [6] DEBUG: SMPP PDU dump ends. 2009-03-04 10:02:39 [3044] [6] DEBUG: SMPP[telcel_sc3783] handle_pdu, got DLR 2009-03-04 10:02:39 [3044] [6] DEBUG: SMPP[telcel_sc3783]: Couldnot parse DLR string sscanf way,fallback to old way. Please report! 2009-03-04 10:02:39 [3044] [6] DEBUG: DLR[mysql]: Looking for DLR smsc=telcel_sc3783, ts=1236182536, dst=MiSender, type=1 2009-03-04 10:02:39 [3044] [6] DEBUG: sql: SELECT mask, service, url, source, destination, boxc FROM tblkannel_dlr WHERE smsc='telcel_sc3783' AND ts='1236182536'; 2009-03-04 10:02:39 [3044] [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=2860670&uid=10&smsc=%i&sender_id=MiSender, row[3]=0, row[4]=525513206766 row[5]= 2009-03-04 10:02:39 [3044] [6] DEBUG: DLR[mysql]: created DLR message for URL <http://127.0.0.1/sms/plugin/gateway/kannel/dlr.php?type=%d&slid=2860670&uid=10&smsc=%i&sender_id=MiSender> 2009-03-04 10:02:39 [3044] [6] DEBUG: removing DLR from database 2009-03-04 10:02:39 [3044] [6] DEBUG: sql: DELETE FROM tblkannel_dlr WHERE smsc='telcel_sc3783' AND ts='1236182536' LIMIT 1; 2009-03-04 10:02:39 [3044] [6] DEBUG: SMPP[telcel_sc3783]: Sending PDU: 2009-03-04 10:02:39 [3044] [6] DEBUG: SMPP PDU 0xa5a99eb0 dump: 2009-03-04 10:02:39 [3044] [6] DEBUG: type_name: deliver_sm_resp 2009-03-04 10:02:39 [3044] [6] DEBUG: command_id: 2147483653 = 0x80000005 2009-03-04 10:02:39 [3044] [6] DEBUG: command_status: 0 = 0x00000000 2009-03-04 10:02:39 [3044] [6] DEBUG: sequence_number: 1 = 0x00000001 2009-03-04 10:02:39 [3044] [6] DEBUG: message_id: NULL 2009-03-04 10:02:39 [3044] [6] DEBUG: SMPP PDU dump ends. 2009-03-04 10:02:45 [3044] [6] DEBUG: SMPP[telcel_sc3783]: Sending enquire link: 2009-03-04 10:02:45 [3044] [6] DEBUG: SMPP PDU 0xa5a03ad8 dump: 2009-03-04 10:02:45 [3044] [6] DEBUG: type_name: enquire_link 2009-03-04 10:02:45 [3044] [6] DEBUG: command_id: 21 = 0x00000015 2009-03-04 10:02:45 [3044] [6] DEBUG: command_status: 0 = 0x00000000 2009-03-04 10:02:45 [3044] [6] DEBUG: sequence_number: 2200 = 0x00000898 2009-03-04 10:02:45 [3044] [6] DEBUG: SMPP PDU dump ends. 2009-03-04 10:02:45 [3044] [6] DEBUG: SMPP[telcel_sc3783]: Got PDU: 2009-03-04 10:02:45 [3044] [6] DEBUG: SMPP PDU 0xa5a03ad8 dump: 2009-03-04 10:02:45 [3044] [6] DEBUG: type_name: enquire_link_resp 2009-03-04 10:02:45 [3044] [6] DEBUG: command_id: 2147483669 = 0x80000015 2009-03-04 10:02:45 [3044] [6] DEBUG: command_status: 0 = 0x00000000 2009-03-04 10:02:45 [3044] [6] DEBUG: sequence_number: 2200 = 0x00000898 2009-03-04 10:02:45 [3044] [6] DEBUG: SMPP PDU dump ends. |-----------------------------------------------------------------------------------------------------------------| 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 10:46 AM, Alexander Malysh <amal...@kannel.org> wrote: > Please post deliver_sm for DLR coming from SMSC. > > Thanks, > Alex > > Alvaro Cornejo schrieb: >> >> 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 >>