kneodev / ksmppd

Kurt's SMPP Daemon (SMPP Server for Kannel)
Other
56 stars 38 forks source link

Ksmppd pass only 3 digit error code #145

Closed harshpareek closed 3 years ago

harshpareek commented 3 years ago

Hi

My smpp provider pass 4 digit error code like 5107 by ksmpp pass only 3 digit from this. Please help

2021-05-26 13:33:13 [19919] [28] DEBUG: type_name: deliver_sm 2021-05-26 13:33:13 [19919] [28] DEBUG: command_id: 5 = 0x00000005 2021-05-26 13:33:13 [19919] [28] DEBUG: command_status: 0 = 0x00000000 2021-05-26 13:33:13 [19919] [28] DEBUG: sequence_number: 2729619 = 0x0029a693 2021-05-26 13:33:13 [19919] [28] DEBUG: service_type: NULL 2021-05-26 13:33:13 [19919] [28] DEBUG: source_addr_ton: 5 = 0x00000005 2021-05-26 13:33:13 [19919] [28] DEBUG: source_addr_npi: 0 = 0x00000000 2021-05-26 13:33:13 [19919] [28] DEBUG: source_addr: "QUESSC" 2021-05-26 13:33:13 [19919] [28] DEBUG: dest_addr_ton: 2 = 0x00000002 2021-05-26 13:33:13 [19919] [28] DEBUG: dest_addr_npi: 1 = 0x00000001 2021-05-26 13:33:13 [19919] [28] DEBUG: destination_addr: "919972337329" 2021-05-26 13:33:13 [19919] [28] DEBUG: esm_class: 4 = 0x00000004 2021-05-26 13:33:13 [19919] [28] DEBUG: protocol_id: 0 = 0x00000000 2021-05-26 13:33:13 [19919] [28] DEBUG: priority_flag: 0 = 0x00000000 2021-05-26 13:33:13 [19919] [28] DEBUG: schedule_delivery_time: NULL 2021-05-26 13:33:13 [19919] [28] DEBUG: validity_period: NULL 2021-05-26 13:33:13 [19919] [28] DEBUG: registered_delivery: 0 = 0x00000000 2021-05-26 13:33:13 [19919] [28] DEBUG: replace_if_present_flag: 0 = 0x00000000 2021-05-26 13:33:13 [19919] [28] DEBUG: data_coding: 0 = 0x00000000 2021-05-26 13:33:13 [19919] [28] DEBUG: sm_default_msg_id: 0 = 0x00000000 2021-05-26 13:33:13 [19919] [28] DEBUG: sm_length: 132 = 0x00000084 2021-05-26 13:33:13 [19919] [28] DEBUG: short_message: 2021-05-26 13:33:13 [19919] [28] DEBUG: Octet string at 0x7fd9887ed6d0: 2021-05-26 13:33:13 [19919] [28] DEBUG: len: 132 2021-05-26 13:33:13 [19919] [28] DEBUG: size: 1024 2021-05-26 13:33:13 [19919] [28] DEBUG: immutable: 0 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 69 64 3a 35 65 39 65 63 64 61 37 2d 38 39 33 63 id:5e9ecda7-893c 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 2d 34 34 64 31 2d 61 39 34 62 2d 35 65 33 33 64 -44d1-a94b-5e33d 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 33 63 37 36 66 64 31 20 73 75 62 3a 30 30 31 20 3c76fd1 sub:001 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 64 6c 76 72 64 3a 30 30 30 20 73 75 62 6d 69 74 dlvrd:000 submit 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 20 64 61 74 65 3a 32 31 30 35 32 36 31 33 33 33 date:2105261333 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 31 32 20 64 6f 6e 65 20 64 61 74 65 3a 32 31 30 12 done date:210 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 35 32 36 31 33 33 33 31 33 20 73 74 61 74 3a 55 526133313 stat:U 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 4e 44 45 4c 49 56 20 65 72 72 3a 35 31 30 20 74 NDELIV err:510 t 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 65 78 74 3a ext: 2021-05-26 13:33:13 [19919] [28] DEBUG: Octet string dump ends. 2021-05-26 13:33:13 [19919] [28] DEBUG: message_state: 5 = 0x00000005 2021-05-26 13:33:13 [19919] [28] DEBUG: receipted_message_id: 2021-05-26 13:33:13 [19919] [28] DEBUG: Octet string at 0x7fd988948cd0: 2021-05-26 13:33:13 [19919] [28] DEBUG: len: 36 2021-05-26 13:33:13 [19919] [28] DEBUG: size: 37 2021-05-26 13:33:13 [19919] [28] DEBUG: immutable: 0

voicecomms commented 3 years ago

You will need to map smpp error codes , ask your SMS vendor to provide you their set of smpp error codes

 

Chetan Jha    Chief Innovation Officer

@.***

Mobile: +91-9702243283 | Phone: +91-7738345865

http://www.voicecomms.net

Voice Communications • 30/C/11,Manish Nagar,4 Bunglows, J.P Road, Andheri West • Mumbai • 400053 • Maharashtra • India

This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet.

---- On Wed, 26 May 2021 14:02:44 +0530 harshpareek @.***> wrote ----

Hi

My smpp provider pass 4 digit error code like 5107 by ksmpp pass only 3 digit from this. Please help

2021-05-26 13:33:13 [19919] [28] DEBUG: type_name: deliver_sm 2021-05-26 13:33:13 [19919] [28] DEBUG: command_id: 5 = 0x00000005 2021-05-26 13:33:13 [19919] [28] DEBUG: command_status: 0 = 0x00000000 2021-05-26 13:33:13 [19919] [28] DEBUG: sequence_number: 2729619 = 0x0029a693 2021-05-26 13:33:13 [19919] [28] DEBUG: service_type: NULL 2021-05-26 13:33:13 [19919] [28] DEBUG: source_addr_ton: 5 = 0x00000005 2021-05-26 13:33:13 [19919] [28] DEBUG: source_addr_npi: 0 = 0x00000000 2021-05-26 13:33:13 [19919] [28] DEBUG: source_addr: "QUESSC" 2021-05-26 13:33:13 [19919] [28] DEBUG: dest_addr_ton: 2 = 0x00000002 2021-05-26 13:33:13 [19919] [28] DEBUG: dest_addr_npi: 1 = 0x00000001 2021-05-26 13:33:13 [19919] [28] DEBUG: destination_addr: "919972337329" 2021-05-26 13:33:13 [19919] [28] DEBUG: esm_class: 4 = 0x00000004 2021-05-26 13:33:13 [19919] [28] DEBUG: protocol_id: 0 = 0x00000000 2021-05-26 13:33:13 [19919] [28] DEBUG: priority_flag: 0 = 0x00000000 2021-05-26 13:33:13 [19919] [28] DEBUG: schedule_delivery_time: NULL 2021-05-26 13:33:13 [19919] [28] DEBUG: validity_period: NULL 2021-05-26 13:33:13 [19919] [28] DEBUG: registered_delivery: 0 = 0x00000000 2021-05-26 13:33:13 [19919] [28] DEBUG: replace_if_present_flag: 0 = 0x00000000 2021-05-26 13:33:13 [19919] [28] DEBUG: data_coding: 0 = 0x00000000 2021-05-26 13:33:13 [19919] [28] DEBUG: sm_default_msg_id: 0 = 0x00000000 2021-05-26 13:33:13 [19919] [28] DEBUG: sm_length: 132 = 0x00000084 2021-05-26 13:33:13 [19919] [28] DEBUG: short_message: 2021-05-26 13:33:13 [19919] [28] DEBUG: Octet string at 0x7fd9887ed6d0: 2021-05-26 13:33:13 [19919] [28] DEBUG: len: 132 2021-05-26 13:33:13 [19919] [28] DEBUG: size: 1024 2021-05-26 13:33:13 [19919] [28] DEBUG: immutable: 0 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 69 64 3a 35 65 39 65 63 64 61 37 2d 38 39 33 63 id:5e9ecda7-893c 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 2d 34 34 64 31 2d 61 39 34 62 2d 35 65 33 33 64 -44d1-a94b-5e33d 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 33 63 37 36 66 64 31 20 73 75 62 3a 30 30 31 20 3c76fd1 sub:001 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 64 6c 76 72 64 3a 30 30 30 20 73 75 62 6d 69 74 dlvrd:000 submit 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 20 64 61 74 65 3a 32 31 30 35 32 36 31 33 33 33 date:2105261333 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 31 32 20 64 6f 6e 65 20 64 61 74 65 3a 32 31 30 12 done date:210 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 35 32 36 31 33 33 33 31 33 20 73 74 61 74 3a 55 526133313 stat:U 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 4e 44 45 4c 49 56 20 65 72 72 3a 35 31 30 20 74 NDELIV err:510 t 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 65 78 74 3a ext: 2021-05-26 13:33:13 [19919] [28] DEBUG: Octet string dump ends. 2021-05-26 13:33:13 [19919] [28] DEBUG: message_state: 5 = 0x00000005 2021-05-26 13:33:13 [19919] [28] DEBUG: receipted_message_id: 2021-05-26 13:33:13 [19919] [28] DEBUG: Octet string at 0x7fd988948cd0: 2021-05-26 13:33:13 [19919] [28] DEBUG: len: 36 2021-05-26 13:33:13 [19919] [28] DEBUG: size: 37 2021-05-26 13:33:13 [19919] [28] DEBUG: immutable: 0 — You are receiving this because you are subscribed to this thread. Reply to this email directly, https://github.com/kneodev/ksmppd/issues/145, or https://github.com/notifications/unsubscribe-auth/AHRPMUYHGPB2L37ST7LMRXTTPSW2ZANCNFSM45RO6JZQ.

bharat-ux commented 3 years ago

Did this issue go well??

we have still this issue Ksmppd pass only 3 digit error code

bharat-ux commented 3 years ago

root@ip-172-31-21-223:/opt/ksmppd# make make all-recursive make[1]: Entering directory '/opt/ksmppd' Making all in smpp make[2]: Entering directory '/opt/ksmppd/smpp' make[2]: No rule to make target '../smpp/libsmpp.la', needed by 'ksmppd'. Stop. make[2]: Leaving directory '/opt/ksmppd/smpp' make[1]: [Makefile:413: all-recursive] Error 1 make[1]: Leaving directory '/opt/ksmppd' make: *** [Makefile:345: all] Error 2 root@ip-172-31-21-223:/opt/ksmppd#

harshpareek commented 3 years ago

I have mapped all error code but ksmppd pass only 3 digit to client insted of 4 digit, like if error code is 5307 then ksmpp passed only 3 digit 530 to binded smpp.

So my question is how we pass 4 digit error code to binded smpp.

See the Example where error code is 5107 but it pass 510 to binded smpp

2021-05-26 13:33:13 [19919] [28] DEBUG: data: 35 32 36 31 33 33 33 31 33 20 73 74 61 74 3a 55 526133313 stat:U 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 4e 44 45 4c 49 56 20 65 72 72 3a 35 31 30 20 74 NDELIV err:510 t

voicecomms commented 3 years ago

You will need to modify in ksmppd source to add those codes as well, which by default has 3 digits only you can keep on adding your vendors smpp codes.

 

Chetan Jha    Chief Innovation Officer

@.***

Mobile: +91-9702243283 | Phone: +91-7738345865

http://www.voicecomms.net

Voice Communications • 30/C/11,Manish Nagar,4 Bunglows, J.P Road, Andheri West • Mumbai • 400053 • Maharashtra • India

This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet.

---- On Wed, 26 May 2021 22:17:48 +0530 harshpareek @.***> wrote ----

I have mapped all error code but ksmppd pass only 3 digit to client insted for for digit, like of error code is 5307 then ksmpp passed only 3 digit 530 to binded smpp.

So my question is how we pass 4 digit error code to binded smpp.

See the Example where error code is 5107 but it pass 510 to binded smpp

2021-05-26 13:33:13 [19919] [28] DEBUG: data: 35 32 36 31 33 33 33 31 33 20 73 74 61 74 3a 55 526133313 stat:U 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 4e 44 45 4c 49 56 20 65 72 72 3a 35 31 30 20 74 NDELIV err:510 t — You are receiving this because you commented. Reply to this email directly, https://github.com/kneodev/ksmppd/issues/145#issuecomment-848939676, or https://github.com/notifications/unsubscribe-auth/AHRPMU6E2ITR2GMTTTH6JQDTPUQ3JANCNFSM45RO6JZQ.

bharat-ux commented 3 years ago

You will need to modify in ksmppd source to add those codes as well, which by default has 3 digits only you can keep on adding your vendors smpp codes. Chetan Jha Chief Innovation Officer @. Mobile: +91-9702243283 | Phone: +91-7738345865 http://www.voicecomms.net Voice Communications • 30/C/11,Manish Nagar,4 Bunglows, J.P Road, Andheri West • Mumbai • 400053 • Maharashtra • India This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet. ---- On Wed, 26 May 2021 22:17:48 +0530 harshpareek @.> wrote ---- I have mapped all error code but ksmppd pass only 3 digit to client insted for for digit, like of error code is 5307 then ksmpp passed only 3 digit 530 to binded smpp. So my question is how we pass 4 digit error code to binded smpp. See the Example where error code is 5107 but it pass 510 to binded smpp 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 35 32 36 31 33 33 33 31 33 20 73 74 61 74 3a 55 526133313 stat:U 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 4e 44 45 4c 49 56 20 65 72 72 3a 35 31 30 20 74 NDELIV err:510 t — You are receiving this because you commented. Reply to this email directly, #145 (comment), or https://github.com/notifications/unsubscribe-auth/AHRPMU6E2ITR2GMTTTH6JQDTPUQ3JANCNFSM45RO6JZ

Can you tell me some such key words, through grep I can change the 3 digit code in 4 digits

harshpareek commented 3 years ago

Hi Chetan, Thanks for Update, But please tell me where we have to make changes in ksmppd. If you have any sample files please share.

bharat-ux commented 3 years ago

You will need to modify in ksmppd source to add those codes as well, which by default has 3 digits only you can keep on adding your vendors smpp codes. Chetan Jha Chief Innovation Officer @. Mobile: +91-9702243283 | Phone: +91-7738345865 http://www.voicecomms.net Voice Communications • 30/C/11,Manish Nagar,4 Bunglows, J.P Road, Andheri West • Mumbai • 400053 • Maharashtra • India This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet. ---- On Wed, 26 May 2021 22:17:48 +0530 harshpareek @.> wrote ---- I have mapped all error code but ksmppd pass only 3 digit to client insted for for digit, like of error code is 5307 then ksmpp passed only 3 digit 530 to binded smpp. So my question is how we pass 4 digit error code to binded smpp. See the Example where error code is 5107 but it pass 510 to binded smpp 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 35 32 36 31 33 33 33 31 33 20 73 74 61 74 3a 55 526133313 stat:U 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 4e 44 45 4c 49 56 20 65 72 72 3a 35 31 30 20 74 NDELIV err:510 t — You are receiving this because you commented. Reply to this email directly, #145 (comment), or https://github.com/notifications/unsubscribe-auth/AHRPMU6E2ITR2GMTTTH6JQDTPUQ3JANCNFSM45RO6JZQ.

Hi Chetan, Thanks for Update, But please tell me where we have to make changes in ksmppd. If you have any sample files please share.

hello harshpareek i am trying to configure ksmppd but unable to configure gw-config error showing .........can you suggestion me any link step by step i can configure it aur any zip file ......please help me

voicecomms commented 3 years ago

This has to be done on Kannel and not Ksmpp

 

Chetan Jha    Chief Innovation Officer

@.***

Mobile: +91-9702243283 | Phone: +91-7738345865

http://www.voicecomms.net

Voice Communications • 30/C/11,Manish Nagar,4 Bunglows, J.P Road, Andheri West • Mumbai • 400053 • Maharashtra • India

This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet.

---- On Thu, 27 May 2021 11:20:31 +0530 harshpareek @.***> wrote ----

Hi Chetan, Thanks for Update, But please tell me where we have to make changes in ksmppd. If you have any sample files please share. — You are receiving this because you commented. Reply to this email directly, https://github.com/kneodev/ksmppd/issues/145#issuecomment-849342570, or https://github.com/notifications/unsubscribe-auth/AHRPMU3CP2P43DCY2HNIQMDTPXMSPANCNFSM45RO6JZQ.

bharat-ux commented 3 years ago

This has to be done on Kannel and not Ksmpp Chetan Jha Chief Innovation Officer @. Mobile: +91-9702243283 | Phone: +91-7738345865 http://www.voicecomms.net Voice Communications • 30/C/11,Manish Nagar,4 Bunglows, J.P Road, Andheri West • Mumbai • 400053 • Maharashtra • India This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet. ---- On Thu, 27 May 2021 11:20:31 +0530 harshpareek @.> wrote ---- Hi Chetan, Thanks for Update, But please tell me where we have to make changes in ksmppd. If you have any sample files please share. — You are receiving this because you commented. Reply to this email directly, #145 (comment), or https://github.com/notifications/unsubscribe-auth/AHRPMU3CP2P43DCY2HNIQMDTPXMSPANCNFSM45RO6JZQ.

git clone https://github.com/kneodev/ksmppd.git cd ksmppd ./bootstrap.sh i am following this link

voicecomms commented 3 years ago

you can check dlr.h file in kannel

 

Chetan Jha    Chief Innovation Officer

@.***

Mobile: +91-9702243283 | Phone: +91-7738345865

http://www.voicecomms.net

Voice Communications • 30/C/11,Manish Nagar,4 Bunglows, J.P Road, Andheri West • Mumbai • 400053 • Maharashtra • India

This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet.

---- On Thu, 27 May 2021 11:08:19 +0530 bharat-ux @.***> wrote ----

You will need to modify in ksmppd source to add those codes as well, which by default has 3 digits only you can keep on adding your vendors smpp codes. Chetan Jha Chief Innovation Officer @. Mobile: +91-9702243283 | Phone: +91-7738345865 http://www.voicecomms.net Voice Communications • 30/C/11,Manish Nagar,4 Bunglows, J.P Road, Andheri West • Mumbai • 400053 • Maharashtra • India This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet. # ---- On Wed, 26 May 2021 22:17:48 +0530 harshpareek @.> wrote ---- I have mapped all error code but ksmppd pass only 3 digit to client insted for for digit, like of error code is 5307 then ksmpp passed only 3 digit 530 to binded smpp. So my question is how we pass 4 digit error code to binded smpp. See the Example where error code is 5107 but it pass 510 to binded smpp 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 35 32 36 31 33 33 33 31 33 20 73 74 61 74 3a 55 526133313 stat:U 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 4e 44 45 4c 49 56 20 65 72 72 3a 35 31 30 20 74 NDELIV err:510 t — You are receiving this because you commented. Reply to this email directly, https://github.com/kneodev/ksmppd/issues/145#issuecomment-848939676, or https://github.com/notifications/unsubscribe-auth/AHRPMU6E2ITR2GMTTTH6JQDTPUQ3JANCNFSM45RO6JZ

Can you tell me some such key words, through grep I can change the 3 digit code in 4 digits

— You are receiving this because you commented. Reply to this email directly, https://github.com/kneodev/ksmppd/issues/145#issuecomment-849336725, or https://github.com/notifications/unsubscribe-auth/AHRPMUZWGUX6DS3DST6MJUDTPXLEXANCNFSM45RO6JZQ.

bharat-ux commented 3 years ago

You will need to modify in ksmppd source to add those codes as well, which by default has 3 digits only you can keep on adding your vendors smpp codes. Chetan Jha Chief Innovation Officer @. Mobile: +91-9702243283 | Phone: +91-7738345865 http://www.voicecomms.net Voice Communications • 30/C/11,Manish Nagar,4 Bunglows, J.P Road, Andheri West • Mumbai • 400053 • Maharashtra • India This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet. ---- On Wed, 26 May 2021 22:17:48 +0530 harshpareek @.> wrote ---- I have mapped all error code but ksmppd pass only 3 digit to client insted for for digit, like of error code is 5307 then ksmpp passed only 3 digit 530 to binded smpp. So my question is how we pass 4 digit error code to binded smpp. See the Example where error code is 5107 but it pass 510 to binded smpp 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 35 32 36 31 33 33 33 31 33 20 73 74 61 74 3a 55 526133313 stat:U 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 4e 44 45 4c 49 56 20 65 72 72 3a 35 31 30 20 74 NDELIV err:510 t — You are receiving this because you commented. Reply to this email directly, #145 (comment), or https://github.com/notifications/unsubscribe-auth/AHRPMU6E2ITR2GMTTTH6JQDTPUQ3JANCNFSM45RO6JZQ.

You will need to modify in ksmppd source to add those codes as well, which by default has 3 digits only you can keep on adding your vendors smpp codes. which code we have to update can you send me a key word to grep from source code and modified it....

voicecomms commented 3 years ago

I dont think so , since DLR is handled by Kannel though you can confirm it with donald jackson on this

 

Chetan Jha    Chief Innovation Officer

@.***

Mobile: +91-9702243283 | Phone: +91-7738345865

http://www.voicecomms.net

Voice Communications • 30/C/11,Manish Nagar,4 Bunglows, J.P Road, Andheri West • Mumbai • 400053 • Maharashtra • India

This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet.

---- On Thu, 27 May 2021 12:18:19 +0530 bharat-ux @.***> wrote ----

You will need to modify in ksmppd source to add those codes as well, which by default has 3 digits only you can keep on adding your vendors smpp codes. Chetan Jha Chief Innovation Officer @. Mobile: +91-9702243283 | Phone: +91-7738345865 http://www.voicecomms.net Voice Communications • 30/C/11,Manish Nagar,4 Bunglows, J.P Road, Andheri West • Mumbai • 400053 • Maharashtra • India This message is confidential. It may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. Please send us by fax any message containing deadlines as incoming e-mails are not screened for response deadlines. The integrity and security of this message cannot be guaranteed on the Internet. # ---- On Wed, 26 May 2021 22:17:48 +0530 harshpareek @.> wrote ---- I have mapped all error code but ksmppd pass only 3 digit to client insted for for digit, like of error code is 5307 then ksmpp passed only 3 digit 530 to binded smpp. So my question is how we pass 4 digit error code to binded smpp. See the Example where error code is 5107 but it pass 510 to binded smpp 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 35 32 36 31 33 33 33 31 33 20 73 74 61 74 3a 55 526133313 stat:U 2021-05-26 13:33:13 [19919] [28] DEBUG: data: 4e 44 45 4c 49 56 20 65 72 72 3a 35 31 30 20 74 NDELIV err:510 t — You are receiving this because you commented. Reply to this email directly, https://github.com/kneodev/ksmppd/issues/145#issuecomment-848939676, or https://github.com/notifications/unsubscribe-auth/AHRPMU6E2ITR2GMTTTH6JQDTPUQ3JANCNFSM45RO6JZQ.

You will need to modify in ksmppd source to add those codes as well, which by default has 3 digits only you can keep on adding your vendors smpp codes. which code we have to update can you send me a key word to grep from source code and modified it.... — You are receiving this because you commented. Reply to this email directly, https://github.com/kneodev/ksmppd/issues/145#issuecomment-849376778, or https://github.com/notifications/unsubscribe-auth/AHRPMUYN5XTPYS2W2D62P33TPXTLHANCNFSM45RO6JZQ.

donald-jackson commented 3 years ago

DLR error codes are only 3 octets as per the SMPP specification, please see the spec

https://smpp.org/SMPP_v3_4_Issue1_2.pdf page 167. Your vendor should fix their implementation

bharat-ux commented 3 years ago

vender is sending 4 digit error code to us but we are able to send 3 digit error to our esme client

On Sun, May 30, 2021 at 12:12 AM Donald Jackson @.***> wrote:

DLR error codes are only 3 octets as per the SMPP specification, please see the spec

https://smpp.org/SMPP_v3_4_Issue1_2.pdf page 167. Your vendor should fix their implementation

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kneodev/ksmppd/issues/145#issuecomment-850880805, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASS2NFAX73FWX6WM566SBG3TQEYR7ANCNFSM45RO6JZQ .

codetopolymath commented 4 months ago

you need to set 4 in smpp_pdu.def file and recompile kannel with new changes. for refrence it would look like as below: TLV_OCTETS(network_error_code, 3, 3) --- where it accept as (name, min_value, max_value)

the file is inside gw/smsc/

codetopolymath commented 4 months ago

so error can be both 3 or 4 digit so it should be set as TLV_OCTETS(network_error_code, 3, 4)

everywhere you file this field: network_error_code