Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ksmppd pass only 3 digit error code #145

Closed
harshpareek opened this issue May 26, 2021 · 17 comments
Closed

Ksmppd pass only 3 digit error code #145

harshpareek opened this issue May 26, 2021 · 17 comments

Comments

@harshpareek
Copy link

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
Copy link

voicecomms commented May 26, 2021 via email

@bharat-ux
Copy link

Did this issue go well??

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

@bharat-ux
Copy link

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
Copy link
Author

harshpareek commented May 26, 2021

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
Copy link

voicecomms commented May 26, 2021 via email

@bharat-ux
Copy link

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
Copy link
Author

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
Copy link

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
Copy link

voicecomms commented May 27, 2021 via email

@bharat-ux
Copy link

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
Copy link

voicecomms commented May 27, 2021 via email

@bharat-ux
Copy link

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
Copy link

voicecomms commented May 27, 2021 via email

@donald-jackson
Copy link
Collaborator

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
Copy link

bharat-ux commented May 29, 2021 via email

@codetopolymath
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants