USSD with Kannel

classic Classic list List threaded Threaded
25 messages Options
12
Reply | Threaded
Open this post in threaded view
|

USSD with Kannel

Arif Noor

Hi All,

 

I have question about the USSD via SMPP. I have successfully made a connection to USSDC with TLV configured. However I do not understand how can we differentiate the session for each MSISDN? Using metadata for MO gave me

Hlr, imsi, service_op and vlr.

 

And also from my testing via USSR, I didn’t receive any MO and found this in the log.

 

2016-03-25 11:05:49 [2353] [6] ERROR: SMPP[smppUSSD]: Malformed destination_addr `(null)', may not be empty. Discarding MO message.

 

Kannel Config :

 

group = core

admin-port = 13005

smsbox-port = 13007

admin-password = admin

#box-deny-ip = "*.*.*.*"

##box-allow-ip = "127.0.0.1"

##unified-prefix = "+358,00358,0;+,00"

##access-log = "/etc/kannel/access.log"

##store-file = "kannel.store"

##ssl-server-cert-file = "cert.pem"

##ssl-server-key-file = "key.pem"

##ssl-certkey-file = "mycertandprivkeyfile.pemi

access-log = "/opt/kannel/kannel_dump/smpp_access.log"

access-log-format = "[SMSC:%i] [USER:%n] [from:%p] [to:%P] [msg:%L:%b] [FID:%F] [SMS-MID:%I]"

#store-file = "/opt/kannel/kannel_dump/smpp.store"

store-type = file

store-location = "/opt/kannel/kannel_dump/smpp.store"

store-dump-freq = 200

sms-resend-freq = 30

sms-resend-retry = 3

 

group = smsbox

bearerbox-host = 127.0.0.1

sendsms-port = 13017

http-request-retry = 2

reply-couldnotfetch = "Please wait"

 

include = "/opt/conf/include/smpp_sms.conf" < - included in attachment

 

Kindly assist.

 

Thank you and Regards,

Arif Noor

Reply | Threaded
Open this post in threaded view
|

RE: USSD with Kannel

Arif Noor

Hi,

 

Anyone? Your assistance are highly appreciated J

 

P/S : I’m using svn-r5154M

 

Thank you.

 

From: users [mailto:[hidden email]] On Behalf Of Arif Noor
Sent: Friday, April 01, 2016 11:05 AM
To: [hidden email]
Subject: USSD with Kannel

 

Hi All,

 

I have question about the USSD via SMPP. I have successfully made a connection to USSDC with TLV configured. However I do not understand how can we differentiate the session for each MSISDN? Using metadata for MO gave me

Hlr, imsi, service_op and vlr.

 

And also from my testing via USSR, I didn’t receive any MO and found this in the log.

 

2016-03-25 11:05:49 [2353] [6] ERROR: SMPP[smppUSSD]: Malformed destination_addr `(null)', may not be empty. Discarding MO message.

 

Kannel Config :

 

group = core

admin-port = 13005

smsbox-port = 13007

admin-password = admin

#box-deny-ip = "*.*.*.*"

##box-allow-ip = "127.0.0.1"

##unified-prefix = "+358,00358,0;+,00"

##access-log = "/etc/kannel/access.log"

##store-file = "kannel.store"

##ssl-server-cert-file = "cert.pem"

##ssl-server-key-file = "key.pem"

##ssl-certkey-file = "mycertandprivkeyfile.pemi

access-log = "/opt/kannel/kannel_dump/smpp_access.log"

access-log-format = "[SMSC:%i] [USER:%n] [from:%p] [to:%P] [msg:%L:%b] [FID:%F] [SMS-MID:%I]"

#store-file = "/opt/kannel/kannel_dump/smpp.store"

store-type = file

store-location = "/opt/kannel/kannel_dump/smpp.store"

store-dump-freq = 200

sms-resend-freq = 30

sms-resend-retry = 3

 

group = smsbox

bearerbox-host = 127.0.0.1

sendsms-port = 13017

http-request-retry = 2

reply-couldnotfetch = "Please wait"

 

include = "/opt/conf/include/smpp_sms.conf" < - included in attachment

 

Kindly assist.

 

Thank you and Regards,

Arif Noor

Reply | Threaded
Open this post in threaded view
|

RE: USSD with Kannel

Arif Noor

Hi Donald,

 

Thank you for your reply, we have set up kannel to receive the TLV, just need to know how can I differentiate the sessions.

Also as per previous mail, I was wondering why I was getting below error.

 

2016-03-25 11:05:49 [2353] [6] ERROR: SMPP[smppUSSD]: Malformed destination_addr `(null)', may not be empty. Discarding MO message.

 

It doesn’t have any issue when I start the USSD session which it have destination address (in this case 126) but when replying the menu let’s say (1. Accept, 2. Decline) and I entered 1 and press send , it gave me above error on smpp thus the application server can’t proceed since it doesn’t receive any reply / MO.

 

Any input in this are highly appreciated J.

 

Thank you,

Arif Noor.

 

 

From: Donald Jackson [mailto:[hidden email]]
Sent: Tuesday, April 05, 2016 12:45 PM
To: Arif Noor
Subject: RE: USSD with Kannel

 

Hi Arif,

 

You will not be able to do this out the box with Kannel, you will need to make code changes to handle your use case.

 

Thanks,

-- 
Donald Jackson

Reply | Threaded
Open this post in threaded view
|

Re: USSD with Kannel

elthox
Hello Arif,

Please paste here the pdu of deliver SM while pressing Accept or Decline.

On Thu, Apr 7, 2016 at 9:54 AM, Arif Noor <[hidden email]> wrote:

Hi Donald,

 

Thank you for your reply, we have set up kannel to receive the TLV, just need to know how can I differentiate the sessions.

Also as per previous mail, I was wondering why I was getting below error.

 

2016-03-25 11:05:49 [2353] [6] ERROR: SMPP[smppUSSD]: Malformed destination_addr `(null)', may not be empty. Discarding MO message.

 

It doesn’t have any issue when I start the USSD session which it have destination address (in this case 126) but when replying the menu let’s say (1. Accept, 2. Decline) and I entered 1 and press send , it gave me above error on smpp thus the application server can’t proceed since it doesn’t receive any reply / MO.

 

Any input in this are highly appreciated J.

 

Thank you,

Arif Noor.

 

 

From: Donald Jackson [mailto:[hidden email]]
Sent: Tuesday, April 05, 2016 12:45 PM
To: Arif Noor
Subject: RE: USSD with Kannel

 

Hi Arif,

 

You will not be able to do this out the box with Kannel, you will need to make code changes to handle your use case.

 

Thanks,

-- 
Donald Jackson


Reply | Threaded
Open this post in threaded view
|

RE: USSD with Kannel

Arif Noor

Hi Elton,

 

Please find below for the logs.

 

1435309:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter tag (0x0501)

1435310:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter length read as 1

1435311:2016-04-01 17:20:51 [2353] [6] DEBUG: Found configured optional parameter `ussd_srv_op'

1435312:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter tag (0x4006)

1435313:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter length read as 2

1435314:2016-04-01 17:20:51 [2353] [6] DEBUG: Found configured optional parameter `ussd_hlr'

1435315:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter tag (0x400c)

1435316:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter length read as 16

1435317:2016-04-01 17:20:51 [2353] [6] DEBUG: Found configured optional parameter `ussd_optional'

1435318:2016-04-01 17:20:51 [2353] [6] DEBUG: SMPP[smppUSSD]: Got PDU:

1435319:2016-04-01 17:20:51 [2353] [6] DEBUG: SMPP PDU 0x7f41bc01c660 dump:

1435320:2016-04-01 17:20:51 [2353] [6] DEBUG:   type_name: deliver_sm

1435321:2016-04-01 17:20:51 [2353] [6] DEBUG:   command_id: 5 = 0x00000005

1435322:2016-04-01 17:20:51 [2353] [6] DEBUG:   command_status: 0 = 0x00000000

1435323:2016-04-01 17:20:51 [2353] [6] DEBUG:   sequence_number: 102277 = 0x00018f85

1435324:2016-04-01 17:20:51 [2353] [6] DEBUG:   service_type: "USSD"

1435325:2016-04-01 17:20:51 [2353] [6] DEBUG:   source_addr_ton: 1 = 0x00000001

1435326:2016-04-01 17:20:51 [2353] [6] DEBUG:   source_addr_npi: 1 = 0x00000001

1435327:2016-04-01 17:20:51 [2353] [6] DEBUG:   source_addr: "60xxxxxxxx"

1435328:2016-04-01 17:20:51 [2353] [6] DEBUG:   dest_addr_ton: 0 = 0x00000000

1435329:2016-04-01 17:20:51 [2353] [6] DEBUG:   dest_addr_npi: 0 = 0x00000000

1435330:2016-04-01 17:20:51 [2353] [6] DEBUG:   destination_addr: NULL

1435331:2016-04-01 17:20:51 [2353] [6] DEBUG:   esm_class: 0 = 0x00000000

1435332:2016-04-01 17:20:51 [2353] [6] DEBUG:   protocol_id: 0 = 0x00000000

1435333:2016-04-01 17:20:51 [2353] [6] DEBUG:   priority_flag: 0 = 0x00000000

1435334:2016-04-01 17:20:51 [2353] [6] DEBUG:   schedule_delivery_time: NULL

1435335:2016-04-01 17:20:51 [2353] [6] DEBUG:   validity_period: NULL

1435336:2016-04-01 17:20:51 [2353] [6] DEBUG:   registered_delivery: 0 = 0x00000000

1435337:2016-04-01 17:20:51 [2353] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000

1435338:2016-04-01 17:20:51 [2353] [6] DEBUG:   data_coding: 15 = 0x0000000f

1435339:2016-04-01 17:20:51 [2353] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000

1435340:2016-04-01 17:20:51 [2353] [6] DEBUG:   sm_length: 1 = 0x00000001

1435341:2016-04-01 17:20:51 [2353] [6] DEBUG:   short_message: "1"

1435342:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_service_op:

1435343:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string at 0x7f41bc01d010:

1435344:2016-04-01 17:20:51 [2353] [6] DEBUG:      len:  1

1435345:2016-04-01 17:20:51 [2353] [6] DEBUG:      size: 2

1435346:2016-04-01 17:20:51 [2353] [6] DEBUG:      immutable: 0

1435347:2016-04-01 17:20:51 [2353] [6] DEBUG:      data: 12                                                .

1435348:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string dump ends.

1435349:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_hlr: "60"

1435350:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_optional: "0010015156FE3D42"

1435351:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_srv_op:

1435352:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string at 0x7f41bc00d440:

1435353:2016-04-01 17:20:51 [2353] [6] DEBUG:      len:  1

1435354:2016-04-01 17:20:51 [2353] [6] DEBUG:      size: 2

1435355:2016-04-01 17:20:51 [2353] [6] DEBUG:      immutable: 0

1435356:2016-04-01 17:20:51 [2353] [6] DEBUG:      data: 12                                                .

1435357:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string dump ends.

1435358:2016-04-01 17:20:51 [2353] [6] DEBUG: SMPP PDU dump ends.

1435359:2016-04-01 17:20:51 [2353] [6] ERROR: SMPP[smppUSSD]: Malformed destination_addr `(null)', may not be empty. Discarding MO message.

 

Thank you and Regards,

Arif Noor

 

From: Elton Hoxha [mailto:[hidden email]]
Sent: Thursday, April 07, 2016 4:15 PM
To: Arif Noor
Cc: Donald Jackson; [hidden email]
Subject: Re: USSD with Kannel

 

Hello Arif,

 

Please paste here the pdu of deliver SM while pressing Accept or Decline.

 

On Thu, Apr 7, 2016 at 9:54 AM, Arif Noor <[hidden email]> wrote:

Hi Donald,

 

Thank you for your reply, we have set up kannel to receive the TLV, just need to know how can I differentiate the sessions.

Also as per previous mail, I was wondering why I was getting below error.

 

2016-03-25 11:05:49 [2353] [6] ERROR: SMPP[smppUSSD]: Malformed destination_addr `(null)', may not be empty. Discarding MO message.

 

It doesn’t have any issue when I start the USSD session which it have destination address (in this case 126) but when replying the menu let’s say (1. Accept, 2. Decline) and I entered 1 and press send , it gave me above error on smpp thus the application server can’t proceed since it doesn’t receive any reply / MO.

 

Any input in this are highly appreciated J.

 

Thank you,

Arif Noor.

 

 

From: Donald Jackson [mailto:[hidden email]]
Sent: Tuesday, April 05, 2016 12:45 PM
To: Arif Noor
Subject: RE: USSD with Kannel

 

Hi Arif,

 

You will not be able to do this out the box with Kannel, you will need to make code changes to handle your use case.

 

Thanks,

-- 
Donald Jackson

 

Reply | Threaded
Open this post in threaded view
|

Re: USSD with Kannel

elthox
After you receive the first MO do you submit the SM having 126 as originator? If yes, maybe something wrong with the sessions you are keeping on application side.

Furthermore, at this stage of session `ussd_srv_op' should have the value of 18 = USSR Confirm. Yours look like 12.

Here is my deliver SM

2016-04-07 05:07:19 [5368] [6] DEBUG: Optional parameter tag (0x0501)
2016-04-07 05:07:19 [5368] [6] DEBUG: Optional parameter length read as 1
2016-04-07 05:07:19 [5368] [6] DEBUG: Found configured optional parameter `mydata'
2016-04-07 05:07:19 [5368] [6] DEBUG: SMPP[ussdmenu]: Got PDU:
2016-04-07 05:07:19 [5368] [6] DEBUG: SMPP PDU 0x9b13ba8 dump:
2016-04-07 05:07:19 [5368] [6] DEBUG:   type_name: deliver_sm
2016-04-07 05:07:19 [5368] [6] DEBUG:   command_id: 5 = 0x00000005
2016-04-07 05:07:19 [5368] [6] DEBUG:   command_status: 0 = 0x00000000
2016-04-07 05:07:19 [5368] [6] DEBUG:   sequence_number: 12653547 = 0x00c113eb
2016-04-07 05:07:19 [5368] [6] DEBUG:   service_type: "USSD"
2016-04-07 05:07:19 [5368] [6] DEBUG:   source_addr_ton: 1 = 0x00000001
2016-04-07 05:07:19 [5368] [6] DEBUG:   source_addr_npi: 1 = 0x00000001
2016-04-07 05:07:19 [5368] [6] DEBUG:   source_addr: "xxxxxxxxxxx"
2016-04-07 05:07:19 [5368] [6] DEBUG:   dest_addr_ton: 1 = 0x00000001
2016-04-07 05:07:19 [5368] [6] DEBUG:   dest_addr_npi: 1 = 0x00000001
2016-04-07 05:07:19 [5368] [6] DEBUG:   destination_addr: "100"
2016-04-07 05:07:19 [5368] [6] DEBUG:   esm_class: 0 = 0x00000000
2016-04-07 05:07:19 [5368] [6] DEBUG:   protocol_id: 0 = 0x00000000
2016-04-07 05:07:19 [5368] [6] DEBUG:   priority_flag: 0 = 0x00000000
2016-04-07 05:07:19 [5368] [6] DEBUG:   schedule_delivery_time: NULL
2016-04-07 05:07:19 [5368] [6] DEBUG:   validity_period: NULL
2016-04-07 05:07:19 [5368] [6] DEBUG:   registered_delivery: 0 = 0x00000000
2016-04-07 05:07:19 [5368] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000
2016-04-07 05:07:19 [5368] [6] DEBUG:   data_coding: 0 = 0x00000000
2016-04-07 05:07:19 [5368] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000
2016-04-07 05:07:19 [5368] [6] DEBUG:   sm_length: 1 = 0x00000001
2016-04-07 05:07:19 [5368] [6] DEBUG:   short_message: "1"
2016-04-07 05:07:19 [5368] [6] DEBUG:   mydata: "18"


On Thu, Apr 7, 2016 at 10:21 AM, Arif Noor <[hidden email]> wrote:

Hi Elton,

 

Please find below for the logs.

 

1435309:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter tag (0x0501)

1435310:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter length read as 1

1435311:2016-04-01 17:20:51 [2353] [6] DEBUG: Found configured optional parameter `ussd_srv_op'

1435312:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter tag (0x4006)

1435313:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter length read as 2

1435314:2016-04-01 17:20:51 [2353] [6] DEBUG: Found configured optional parameter `ussd_hlr'

1435315:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter tag (0x400c)

1435316:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter length read as 16

1435317:2016-04-01 17:20:51 [2353] [6] DEBUG: Found configured optional parameter `ussd_optional'

1435318:2016-04-01 17:20:51 [2353] [6] DEBUG: SMPP[smppUSSD]: Got PDU:

1435319:2016-04-01 17:20:51 [2353] [6] DEBUG: SMPP PDU 0x7f41bc01c660 dump:

1435320:2016-04-01 17:20:51 [2353] [6] DEBUG:   type_name: deliver_sm

1435321:2016-04-01 17:20:51 [2353] [6] DEBUG:   command_id: 5 = 0x00000005

1435322:2016-04-01 17:20:51 [2353] [6] DEBUG:   command_status: 0 = 0x00000000

1435323:2016-04-01 17:20:51 [2353] [6] DEBUG:   sequence_number: 102277 = 0x00018f85

1435324:2016-04-01 17:20:51 [2353] [6] DEBUG:   service_type: "USSD"

1435325:2016-04-01 17:20:51 [2353] [6] DEBUG:   source_addr_ton: 1 = 0x00000001

1435326:2016-04-01 17:20:51 [2353] [6] DEBUG:   source_addr_npi: 1 = 0x00000001

1435327:2016-04-01 17:20:51 [2353] [6] DEBUG:   source_addr: "60xxxxxxxx"

1435328:2016-04-01 17:20:51 [2353] [6] DEBUG:   dest_addr_ton: 0 = 0x00000000

1435329:2016-04-01 17:20:51 [2353] [6] DEBUG:   dest_addr_npi: 0 = 0x00000000

1435330:2016-04-01 17:20:51 [2353] [6] DEBUG:   destination_addr: NULL

1435331:2016-04-01 17:20:51 [2353] [6] DEBUG:   esm_class: 0 = 0x00000000

1435332:2016-04-01 17:20:51 [2353] [6] DEBUG:   protocol_id: 0 = 0x00000000

1435333:2016-04-01 17:20:51 [2353] [6] DEBUG:   priority_flag: 0 = 0x00000000

1435334:2016-04-01 17:20:51 [2353] [6] DEBUG:   schedule_delivery_time: NULL

1435335:2016-04-01 17:20:51 [2353] [6] DEBUG:   validity_period: NULL

1435336:2016-04-01 17:20:51 [2353] [6] DEBUG:   registered_delivery: 0 = 0x00000000

1435337:2016-04-01 17:20:51 [2353] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000

1435338:2016-04-01 17:20:51 [2353] [6] DEBUG:   data_coding: 15 = 0x0000000f

1435339:2016-04-01 17:20:51 [2353] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000

1435340:2016-04-01 17:20:51 [2353] [6] DEBUG:   sm_length: 1 = 0x00000001

1435341:2016-04-01 17:20:51 [2353] [6] DEBUG:   short_message: "1"

1435342:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_service_op:

1435343:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string at 0x7f41bc01d010:

1435344:2016-04-01 17:20:51 [2353] [6] DEBUG:      len:  1

1435345:2016-04-01 17:20:51 [2353] [6] DEBUG:      size: 2

1435346:2016-04-01 17:20:51 [2353] [6] DEBUG:      immutable: 0

1435347:2016-04-01 17:20:51 [2353] [6] DEBUG:      data: 12                                                .

1435348:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string dump ends.

1435349:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_hlr: "60"

1435350:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_optional: "0010015156FE3D42"

1435351:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_srv_op:

1435352:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string at 0x7f41bc00d440:

1435353:2016-04-01 17:20:51 [2353] [6] DEBUG:      len:  1

1435354:2016-04-01 17:20:51 [2353] [6] DEBUG:      size: 2

1435355:2016-04-01 17:20:51 [2353] [6] DEBUG:      immutable: 0

1435356:2016-04-01 17:20:51 [2353] [6] DEBUG:      data: 12                                                .

1435357:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string dump ends.

1435358:2016-04-01 17:20:51 [2353] [6] DEBUG: SMPP PDU dump ends.

1435359:2016-04-01 17:20:51 [2353] [6] ERROR: SMPP[smppUSSD]: Malformed destination_addr `(null)', may not be empty. Discarding MO message.

 

Thank you and Regards,

Arif Noor

 

From: Elton Hoxha [mailto:[hidden email]]
Sent: Thursday, April 07, 2016 4:15 PM
To: Arif Noor
Cc: Donald Jackson; [hidden email]
Subject: Re: USSD with Kannel

 

Hello Arif,

 

Please paste here the pdu of deliver SM while pressing Accept or Decline.

 

On Thu, Apr 7, 2016 at 9:54 AM, Arif Noor <[hidden email]> wrote:

Hi Donald,

 

Thank you for your reply, we have set up kannel to receive the TLV, just need to know how can I differentiate the sessions.

Also as per previous mail, I was wondering why I was getting below error.

 

2016-03-25 11:05:49 [2353] [6] ERROR: SMPP[smppUSSD]: Malformed destination_addr `(null)', may not be empty. Discarding MO message.

 

It doesn’t have any issue when I start the USSD session which it have destination address (in this case 126) but when replying the menu let’s say (1. Accept, 2. Decline) and I entered 1 and press send , it gave me above error on smpp thus the application server can’t proceed since it doesn’t receive any reply / MO.

 

Any input in this are highly appreciated J.

 

Thank you,

Arif Noor.

 

 

From: Donald Jackson [mailto:[hidden email]]
Sent: Tuesday, April 05, 2016 12:45 PM
To: Arif Noor
Subject: RE: USSD with Kannel

 

Hi Arif,

 

You will not be able to do this out the box with Kannel, you will need to make code changes to handle your use case.

 

Thanks,

-- 
Donald Jackson

 


Reply | Threaded
Open this post in threaded view
|

RE: USSD with Kannel

Arif Noor

Hi Elton,

 

Yes after the first MO, the app submit with 126 as originator. Also could you tell me how the app supposed to differentiate the session. Is it by using msgID or something? As for the USSR confirm, I guess I should ask the USSDC since they passed the value 12 instead of 18.

 

Thank you for your input so far J

 

From: Elton Hoxha [mailto:[hidden email]]
Sent: Thursday, April 07, 2016 4:38 PM
To: Arif Noor
Cc: Donald Jackson; [hidden email]
Subject: Re: USSD with Kannel

 

After you receive the first MO do you submit the SM having 126 as originator? If yes, maybe something wrong with the sessions you are keeping on application side.

 

Furthermore, at this stage of session `ussd_srv_op' should have the value of 18 = USSR Confirm. Yours look like 12.

 

Here is my deliver SM

 

2016-04-07 05:07:19 [5368] [6] DEBUG: Optional parameter tag (0x0501)

2016-04-07 05:07:19 [5368] [6] DEBUG: Optional parameter length read as 1

2016-04-07 05:07:19 [5368] [6] DEBUG: Found configured optional parameter `mydata'

2016-04-07 05:07:19 [5368] [6] DEBUG: SMPP[ussdmenu]: Got PDU:

2016-04-07 05:07:19 [5368] [6] DEBUG: SMPP PDU 0x9b13ba8 dump:

2016-04-07 05:07:19 [5368] [6] DEBUG:   type_name: deliver_sm

2016-04-07 05:07:19 [5368] [6] DEBUG:   command_id: 5 = 0x00000005

2016-04-07 05:07:19 [5368] [6] DEBUG:   command_status: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   sequence_number: 12653547 = 0x00c113eb

2016-04-07 05:07:19 [5368] [6] DEBUG:   service_type: "USSD"

2016-04-07 05:07:19 [5368] [6] DEBUG:   source_addr_ton: 1 = 0x00000001

2016-04-07 05:07:19 [5368] [6] DEBUG:   source_addr_npi: 1 = 0x00000001

2016-04-07 05:07:19 [5368] [6] DEBUG:   source_addr: "xxxxxxxxxxx"

2016-04-07 05:07:19 [5368] [6] DEBUG:   dest_addr_ton: 1 = 0x00000001

2016-04-07 05:07:19 [5368] [6] DEBUG:   dest_addr_npi: 1 = 0x00000001

2016-04-07 05:07:19 [5368] [6] DEBUG:   destination_addr: "100"

2016-04-07 05:07:19 [5368] [6] DEBUG:   esm_class: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   protocol_id: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   priority_flag: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   schedule_delivery_time: NULL

2016-04-07 05:07:19 [5368] [6] DEBUG:   validity_period: NULL

2016-04-07 05:07:19 [5368] [6] DEBUG:   registered_delivery: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   data_coding: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   sm_length: 1 = 0x00000001

2016-04-07 05:07:19 [5368] [6] DEBUG:   short_message: "1"

2016-04-07 05:07:19 [5368] [6] DEBUG:   mydata: "18"

 

 

On Thu, Apr 7, 2016 at 10:21 AM, Arif Noor <[hidden email]> wrote:

Hi Elton,

 

Please find below for the logs.

 

1435309:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter tag (0x0501)

1435310:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter length read as 1

1435311:2016-04-01 17:20:51 [2353] [6] DEBUG: Found configured optional parameter `ussd_srv_op'

1435312:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter tag (0x4006)

1435313:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter length read as 2

1435314:2016-04-01 17:20:51 [2353] [6] DEBUG: Found configured optional parameter `ussd_hlr'

1435315:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter tag (0x400c)

1435316:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter length read as 16

1435317:2016-04-01 17:20:51 [2353] [6] DEBUG: Found configured optional parameter `ussd_optional'

1435318:2016-04-01 17:20:51 [2353] [6] DEBUG: SMPP[smppUSSD]: Got PDU:

1435319:2016-04-01 17:20:51 [2353] [6] DEBUG: SMPP PDU 0x7f41bc01c660 dump:

1435320:2016-04-01 17:20:51 [2353] [6] DEBUG:   type_name: deliver_sm

1435321:2016-04-01 17:20:51 [2353] [6] DEBUG:   command_id: 5 = 0x00000005

1435322:2016-04-01 17:20:51 [2353] [6] DEBUG:   command_status: 0 = 0x00000000

1435323:2016-04-01 17:20:51 [2353] [6] DEBUG:   sequence_number: 102277 = 0x00018f85

1435324:2016-04-01 17:20:51 [2353] [6] DEBUG:   service_type: "USSD"

1435325:2016-04-01 17:20:51 [2353] [6] DEBUG:   source_addr_ton: 1 = 0x00000001

1435326:2016-04-01 17:20:51 [2353] [6] DEBUG:   source_addr_npi: 1 = 0x00000001

1435327:2016-04-01 17:20:51 [2353] [6] DEBUG:   source_addr: "60xxxxxxxx"

1435328:2016-04-01 17:20:51 [2353] [6] DEBUG:   dest_addr_ton: 0 = 0x00000000

1435329:2016-04-01 17:20:51 [2353] [6] DEBUG:   dest_addr_npi: 0 = 0x00000000

1435330:2016-04-01 17:20:51 [2353] [6] DEBUG:   destination_addr: NULL

1435331:2016-04-01 17:20:51 [2353] [6] DEBUG:   esm_class: 0 = 0x00000000

1435332:2016-04-01 17:20:51 [2353] [6] DEBUG:   protocol_id: 0 = 0x00000000

1435333:2016-04-01 17:20:51 [2353] [6] DEBUG:   priority_flag: 0 = 0x00000000

1435334:2016-04-01 17:20:51 [2353] [6] DEBUG:   schedule_delivery_time: NULL

1435335:2016-04-01 17:20:51 [2353] [6] DEBUG:   validity_period: NULL

1435336:2016-04-01 17:20:51 [2353] [6] DEBUG:   registered_delivery: 0 = 0x00000000

1435337:2016-04-01 17:20:51 [2353] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000

1435338:2016-04-01 17:20:51 [2353] [6] DEBUG:   data_coding: 15 = 0x0000000f

1435339:2016-04-01 17:20:51 [2353] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000

1435340:2016-04-01 17:20:51 [2353] [6] DEBUG:   sm_length: 1 = 0x00000001

1435341:2016-04-01 17:20:51 [2353] [6] DEBUG:   short_message: "1"

1435342:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_service_op:

1435343:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string at 0x7f41bc01d010:

1435344:2016-04-01 17:20:51 [2353] [6] DEBUG:      len:  1

1435345:2016-04-01 17:20:51 [2353] [6] DEBUG:      size: 2

1435346:2016-04-01 17:20:51 [2353] [6] DEBUG:      immutable: 0

1435347:2016-04-01 17:20:51 [2353] [6] DEBUG:      data: 12                                                .

1435348:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string dump ends.

1435349:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_hlr: "60"

1435350:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_optional: "0010015156FE3D42"

1435351:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_srv_op:

1435352:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string at 0x7f41bc00d440:

1435353:2016-04-01 17:20:51 [2353] [6] DEBUG:      len:  1

1435354:2016-04-01 17:20:51 [2353] [6] DEBUG:      size: 2

1435355:2016-04-01 17:20:51 [2353] [6] DEBUG:      immutable: 0

1435356:2016-04-01 17:20:51 [2353] [6] DEBUG:      data: 12                                                .

1435357:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string dump ends.

1435358:2016-04-01 17:20:51 [2353] [6] DEBUG: SMPP PDU dump ends.

1435359:2016-04-01 17:20:51 [2353] [6] ERROR: SMPP[smppUSSD]: Malformed destination_addr `(null)', may not be empty. Discarding MO message.

 

Thank you and Regards,

Arif Noor

 

From: Elton Hoxha [mailto:[hidden email]]
Sent: Thursday, April 07, 2016 4:15 PM
To: Arif Noor
Cc: Donald Jackson; [hidden email]
Subject: Re: USSD with Kannel

 

Hello Arif,

 

Please paste here the pdu of deliver SM while pressing Accept or Decline.

 

On Thu, Apr 7, 2016 at 9:54 AM, Arif Noor <[hidden email]> wrote:

Hi Donald,

 

Thank you for your reply, we have set up kannel to receive the TLV, just need to know how can I differentiate the sessions.

Also as per previous mail, I was wondering why I was getting below error.

 

2016-03-25 11:05:49 [2353] [6] ERROR: SMPP[smppUSSD]: Malformed destination_addr `(null)', may not be empty. Discarding MO message.

 

It doesn’t have any issue when I start the USSD session which it have destination address (in this case 126) but when replying the menu let’s say (1. Accept, 2. Decline) and I entered 1 and press send , it gave me above error on smpp thus the application server can’t proceed since it doesn’t receive any reply / MO.

 

Any input in this are highly appreciated J.

 

Thank you,

Arif Noor.

 

 

From: Donald Jackson [mailto:[hidden email]]
Sent: Tuesday, April 05, 2016 12:45 PM
To: Arif Noor
Subject: RE: USSD with Kannel

 

Hi Arif,

 

You will not be able to do this out the box with Kannel, you will need to make code changes to handle your use case.

 

Thanks,

-- 
Donald Jackson

 

 

Reply | Threaded
Open this post in threaded view
|

Re: USSD with Kannel

elthox
At least for me, Session = MsgID + MSISDN combination kept at application side. This part belongs to you and your skills how to keep track of them at application side and has not to do with Kannel. Kannel did its job passing the message through.

While communicating with Telecom provider, refer to these parameters which are global standard;

0 = PSSD Indication
1 = PSSR Indication
2 = USSR Request
3 = USSN Request

4 to 15 = Reserved

16 = PSSD Response
17 = PSSR Response
18 = USSR Confirm
19 = USSN Confirm

On Thu, Apr 7, 2016 at 10:50 AM, Arif Noor <[hidden email]> wrote:

Hi Elton,

 

Yes after the first MO, the app submit with 126 as originator. Also could you tell me how the app supposed to differentiate the session. Is it by using msgID or something? As for the USSR confirm, I guess I should ask the USSDC since they passed the value 12 instead of 18.

 

Thank you for your input so far J

 

From: Elton Hoxha [mailto:[hidden email]]
Sent: Thursday, April 07, 2016 4:38 PM


To: Arif Noor
Cc: Donald Jackson; [hidden email]
Subject: Re: USSD with Kannel

 

After you receive the first MO do you submit the SM having 126 as originator? If yes, maybe something wrong with the sessions you are keeping on application side.

 

Furthermore, at this stage of session `ussd_srv_op' should have the value of 18 = USSR Confirm. Yours look like 12.

 

Here is my deliver SM

 

2016-04-07 05:07:19 [5368] [6] DEBUG: Optional parameter tag (0x0501)

2016-04-07 05:07:19 [5368] [6] DEBUG: Optional parameter length read as 1

2016-04-07 05:07:19 [5368] [6] DEBUG: Found configured optional parameter `mydata'

2016-04-07 05:07:19 [5368] [6] DEBUG: SMPP[ussdmenu]: Got PDU:

2016-04-07 05:07:19 [5368] [6] DEBUG: SMPP PDU 0x9b13ba8 dump:

2016-04-07 05:07:19 [5368] [6] DEBUG:   type_name: deliver_sm

2016-04-07 05:07:19 [5368] [6] DEBUG:   command_id: 5 = 0x00000005

2016-04-07 05:07:19 [5368] [6] DEBUG:   command_status: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   sequence_number: 12653547 = 0x00c113eb

2016-04-07 05:07:19 [5368] [6] DEBUG:   service_type: "USSD"

2016-04-07 05:07:19 [5368] [6] DEBUG:   source_addr_ton: 1 = 0x00000001

2016-04-07 05:07:19 [5368] [6] DEBUG:   source_addr_npi: 1 = 0x00000001

2016-04-07 05:07:19 [5368] [6] DEBUG:   source_addr: "xxxxxxxxxxx"

2016-04-07 05:07:19 [5368] [6] DEBUG:   dest_addr_ton: 1 = 0x00000001

2016-04-07 05:07:19 [5368] [6] DEBUG:   dest_addr_npi: 1 = 0x00000001

2016-04-07 05:07:19 [5368] [6] DEBUG:   destination_addr: "100"

2016-04-07 05:07:19 [5368] [6] DEBUG:   esm_class: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   protocol_id: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   priority_flag: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   schedule_delivery_time: NULL

2016-04-07 05:07:19 [5368] [6] DEBUG:   validity_period: NULL

2016-04-07 05:07:19 [5368] [6] DEBUG:   registered_delivery: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   data_coding: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   sm_length: 1 = 0x00000001

2016-04-07 05:07:19 [5368] [6] DEBUG:   short_message: "1"

2016-04-07 05:07:19 [5368] [6] DEBUG:   mydata: "18"

 

 

On Thu, Apr 7, 2016 at 10:21 AM, Arif Noor <[hidden email]> wrote:

Hi Elton,

 

Please find below for the logs.

 

1435309:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter tag (0x0501)

1435310:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter length read as 1

1435311:2016-04-01 17:20:51 [2353] [6] DEBUG: Found configured optional parameter `ussd_srv_op'

1435312:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter tag (0x4006)

1435313:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter length read as 2

1435314:2016-04-01 17:20:51 [2353] [6] DEBUG: Found configured optional parameter `ussd_hlr'

1435315:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter tag (0x400c)

1435316:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter length read as 16

1435317:2016-04-01 17:20:51 [2353] [6] DEBUG: Found configured optional parameter `ussd_optional'

1435318:2016-04-01 17:20:51 [2353] [6] DEBUG: SMPP[smppUSSD]: Got PDU:

1435319:2016-04-01 17:20:51 [2353] [6] DEBUG: SMPP PDU 0x7f41bc01c660 dump:

1435320:2016-04-01 17:20:51 [2353] [6] DEBUG:   type_name: deliver_sm

1435321:2016-04-01 17:20:51 [2353] [6] DEBUG:   command_id: 5 = 0x00000005

1435322:2016-04-01 17:20:51 [2353] [6] DEBUG:   command_status: 0 = 0x00000000

1435323:2016-04-01 17:20:51 [2353] [6] DEBUG:   sequence_number: 102277 = 0x00018f85

1435324:2016-04-01 17:20:51 [2353] [6] DEBUG:   service_type: "USSD"

1435325:2016-04-01 17:20:51 [2353] [6] DEBUG:   source_addr_ton: 1 = 0x00000001

1435326:2016-04-01 17:20:51 [2353] [6] DEBUG:   source_addr_npi: 1 = 0x00000001

1435327:2016-04-01 17:20:51 [2353] [6] DEBUG:   source_addr: "60xxxxxxxx"

1435328:2016-04-01 17:20:51 [2353] [6] DEBUG:   dest_addr_ton: 0 = 0x00000000

1435329:2016-04-01 17:20:51 [2353] [6] DEBUG:   dest_addr_npi: 0 = 0x00000000

1435330:2016-04-01 17:20:51 [2353] [6] DEBUG:   destination_addr: NULL

1435331:2016-04-01 17:20:51 [2353] [6] DEBUG:   esm_class: 0 = 0x00000000

1435332:2016-04-01 17:20:51 [2353] [6] DEBUG:   protocol_id: 0 = 0x00000000

1435333:2016-04-01 17:20:51 [2353] [6] DEBUG:   priority_flag: 0 = 0x00000000

1435334:2016-04-01 17:20:51 [2353] [6] DEBUG:   schedule_delivery_time: NULL

1435335:2016-04-01 17:20:51 [2353] [6] DEBUG:   validity_period: NULL

1435336:2016-04-01 17:20:51 [2353] [6] DEBUG:   registered_delivery: 0 = 0x00000000

1435337:2016-04-01 17:20:51 [2353] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000

1435338:2016-04-01 17:20:51 [2353] [6] DEBUG:   data_coding: 15 = 0x0000000f

1435339:2016-04-01 17:20:51 [2353] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000

1435340:2016-04-01 17:20:51 [2353] [6] DEBUG:   sm_length: 1 = 0x00000001

1435341:2016-04-01 17:20:51 [2353] [6] DEBUG:   short_message: "1"

1435342:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_service_op:

1435343:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string at 0x7f41bc01d010:

1435344:2016-04-01 17:20:51 [2353] [6] DEBUG:      len:  1

1435345:2016-04-01 17:20:51 [2353] [6] DEBUG:      size: 2

1435346:2016-04-01 17:20:51 [2353] [6] DEBUG:      immutable: 0

1435347:2016-04-01 17:20:51 [2353] [6] DEBUG:      data: 12                                                .

1435348:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string dump ends.

1435349:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_hlr: "60"

1435350:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_optional: "0010015156FE3D42"

1435351:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_srv_op:

1435352:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string at 0x7f41bc00d440:

1435353:2016-04-01 17:20:51 [2353] [6] DEBUG:      len:  1

1435354:2016-04-01 17:20:51 [2353] [6] DEBUG:      size: 2

1435355:2016-04-01 17:20:51 [2353] [6] DEBUG:      immutable: 0

1435356:2016-04-01 17:20:51 [2353] [6] DEBUG:      data: 12                                                .

1435357:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string dump ends.

1435358:2016-04-01 17:20:51 [2353] [6] DEBUG: SMPP PDU dump ends.

1435359:2016-04-01 17:20:51 [2353] [6] ERROR: SMPP[smppUSSD]: Malformed destination_addr `(null)', may not be empty. Discarding MO message.

 

Thank you and Regards,

Arif Noor

 

From: Elton Hoxha [mailto:[hidden email]]
Sent: Thursday, April 07, 2016 4:15 PM
To: Arif Noor
Cc: Donald Jackson; [hidden email]
Subject: Re: USSD with Kannel

 

Hello Arif,

 

Please paste here the pdu of deliver SM while pressing Accept or Decline.

 

On Thu, Apr 7, 2016 at 9:54 AM, Arif Noor <[hidden email]> wrote:

Hi Donald,

 

Thank you for your reply, we have set up kannel to receive the TLV, just need to know how can I differentiate the sessions.

Also as per previous mail, I was wondering why I was getting below error.

 

2016-03-25 11:05:49 [2353] [6] ERROR: SMPP[smppUSSD]: Malformed destination_addr `(null)', may not be empty. Discarding MO message.

 

It doesn’t have any issue when I start the USSD session which it have destination address (in this case 126) but when replying the menu let’s say (1. Accept, 2. Decline) and I entered 1 and press send , it gave me above error on smpp thus the application server can’t proceed since it doesn’t receive any reply / MO.

 

Any input in this are highly appreciated J.

 

Thank you,

Arif Noor.

 

 

From: Donald Jackson [mailto:[hidden email]]
Sent: Tuesday, April 05, 2016 12:45 PM
To: Arif Noor
Subject: RE: USSD with Kannel

 

Hi Arif,

 

You will not be able to do this out the box with Kannel, you will need to make code changes to handle your use case.

 

Thanks,

-- 
Donald Jackson

 

 


Reply | Threaded
Open this post in threaded view
|

Re: USSD with Kannel

salihrules
In reply to this post by Arif Noor
Hi Arif,

I have a USSD connection setup and working, mine tracks sessions using the TLV parameter receipted_message_id. Config for that parameter is below:

group = smpp-tlv
name = receipted_message_id
tag = 0x001e
type=nulterminated
length=65
smsc-id = <SMSC ID>

Hope this helps

On Thu, Apr 7, 2016 at 8:50 AM, Arif Noor <[hidden email]> wrote:

Hi Elton,

 

Yes after the first MO, the app submit with 126 as originator. Also could you tell me how the app supposed to differentiate the session. Is it by using msgID or something? As for the USSR confirm, I guess I should ask the USSDC since they passed the value 12 instead of 18.

 

Thank you for your input so far J

 

From: Elton Hoxha [mailto:[hidden email]]
Sent: Thursday, April 07, 2016 4:38 PM


To: Arif Noor
Cc: Donald Jackson; [hidden email]
Subject: Re: USSD with Kannel

 

After you receive the first MO do you submit the SM having 126 as originator? If yes, maybe something wrong with the sessions you are keeping on application side.

 

Furthermore, at this stage of session `ussd_srv_op' should have the value of 18 = USSR Confirm. Yours look like 12.

 

Here is my deliver SM

 

2016-04-07 05:07:19 [5368] [6] DEBUG: Optional parameter tag (0x0501)

2016-04-07 05:07:19 [5368] [6] DEBUG: Optional parameter length read as 1

2016-04-07 05:07:19 [5368] [6] DEBUG: Found configured optional parameter `mydata'

2016-04-07 05:07:19 [5368] [6] DEBUG: SMPP[ussdmenu]: Got PDU:

2016-04-07 05:07:19 [5368] [6] DEBUG: SMPP PDU 0x9b13ba8 dump:

2016-04-07 05:07:19 [5368] [6] DEBUG:   type_name: deliver_sm

2016-04-07 05:07:19 [5368] [6] DEBUG:   command_id: 5 = 0x00000005

2016-04-07 05:07:19 [5368] [6] DEBUG:   command_status: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   sequence_number: 12653547 = 0x00c113eb

2016-04-07 05:07:19 [5368] [6] DEBUG:   service_type: "USSD"

2016-04-07 05:07:19 [5368] [6] DEBUG:   source_addr_ton: 1 = 0x00000001

2016-04-07 05:07:19 [5368] [6] DEBUG:   source_addr_npi: 1 = 0x00000001

2016-04-07 05:07:19 [5368] [6] DEBUG:   source_addr: "xxxxxxxxxxx"

2016-04-07 05:07:19 [5368] [6] DEBUG:   dest_addr_ton: 1 = 0x00000001

2016-04-07 05:07:19 [5368] [6] DEBUG:   dest_addr_npi: 1 = 0x00000001

2016-04-07 05:07:19 [5368] [6] DEBUG:   destination_addr: "100"

2016-04-07 05:07:19 [5368] [6] DEBUG:   esm_class: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   protocol_id: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   priority_flag: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   schedule_delivery_time: NULL

2016-04-07 05:07:19 [5368] [6] DEBUG:   validity_period: NULL

2016-04-07 05:07:19 [5368] [6] DEBUG:   registered_delivery: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   data_coding: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000

2016-04-07 05:07:19 [5368] [6] DEBUG:   sm_length: 1 = 0x00000001

2016-04-07 05:07:19 [5368] [6] DEBUG:   short_message: "1"

2016-04-07 05:07:19 [5368] [6] DEBUG:   mydata: "18"

 

 

On Thu, Apr 7, 2016 at 10:21 AM, Arif Noor <[hidden email]> wrote:

Hi Elton,

 

Please find below for the logs.

 

1435309:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter tag (0x0501)

1435310:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter length read as 1

1435311:2016-04-01 17:20:51 [2353] [6] DEBUG: Found configured optional parameter `ussd_srv_op'

1435312:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter tag (0x4006)

1435313:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter length read as 2

1435314:2016-04-01 17:20:51 [2353] [6] DEBUG: Found configured optional parameter `ussd_hlr'

1435315:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter tag (0x400c)

1435316:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter length read as 16

1435317:2016-04-01 17:20:51 [2353] [6] DEBUG: Found configured optional parameter `ussd_optional'

1435318:2016-04-01 17:20:51 [2353] [6] DEBUG: SMPP[smppUSSD]: Got PDU:

1435319:2016-04-01 17:20:51 [2353] [6] DEBUG: SMPP PDU 0x7f41bc01c660 dump:

1435320:2016-04-01 17:20:51 [2353] [6] DEBUG:   type_name: deliver_sm

1435321:2016-04-01 17:20:51 [2353] [6] DEBUG:   command_id: 5 = 0x00000005

1435322:2016-04-01 17:20:51 [2353] [6] DEBUG:   command_status: 0 = 0x00000000

1435323:2016-04-01 17:20:51 [2353] [6] DEBUG:   sequence_number: 102277 = 0x00018f85

1435324:2016-04-01 17:20:51 [2353] [6] DEBUG:   service_type: "USSD"

1435325:2016-04-01 17:20:51 [2353] [6] DEBUG:   source_addr_ton: 1 = 0x00000001

1435326:2016-04-01 17:20:51 [2353] [6] DEBUG:   source_addr_npi: 1 = 0x00000001

1435327:2016-04-01 17:20:51 [2353] [6] DEBUG:   source_addr: "60xxxxxxxx"

1435328:2016-04-01 17:20:51 [2353] [6] DEBUG:   dest_addr_ton: 0 = 0x00000000

1435329:2016-04-01 17:20:51 [2353] [6] DEBUG:   dest_addr_npi: 0 = 0x00000000

1435330:2016-04-01 17:20:51 [2353] [6] DEBUG:   destination_addr: NULL

1435331:2016-04-01 17:20:51 [2353] [6] DEBUG:   esm_class: 0 = 0x00000000

1435332:2016-04-01 17:20:51 [2353] [6] DEBUG:   protocol_id: 0 = 0x00000000

1435333:2016-04-01 17:20:51 [2353] [6] DEBUG:   priority_flag: 0 = 0x00000000

1435334:2016-04-01 17:20:51 [2353] [6] DEBUG:   schedule_delivery_time: NULL

1435335:2016-04-01 17:20:51 [2353] [6] DEBUG:   validity_period: NULL

1435336:2016-04-01 17:20:51 [2353] [6] DEBUG:   registered_delivery: 0 = 0x00000000

1435337:2016-04-01 17:20:51 [2353] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000

1435338:2016-04-01 17:20:51 [2353] [6] DEBUG:   data_coding: 15 = 0x0000000f

1435339:2016-04-01 17:20:51 [2353] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000

1435340:2016-04-01 17:20:51 [2353] [6] DEBUG:   sm_length: 1 = 0x00000001

1435341:2016-04-01 17:20:51 [2353] [6] DEBUG:   short_message: "1"

1435342:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_service_op:

1435343:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string at 0x7f41bc01d010:

1435344:2016-04-01 17:20:51 [2353] [6] DEBUG:      len:  1

1435345:2016-04-01 17:20:51 [2353] [6] DEBUG:      size: 2

1435346:2016-04-01 17:20:51 [2353] [6] DEBUG:      immutable: 0

1435347:2016-04-01 17:20:51 [2353] [6] DEBUG:      data: 12                                                .

1435348:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string dump ends.

1435349:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_hlr: "60"

1435350:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_optional: "0010015156FE3D42"

1435351:2016-04-01 17:20:51 [2353] [6] DEBUG:   ussd_srv_op:

1435352:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string at 0x7f41bc00d440:

1435353:2016-04-01 17:20:51 [2353] [6] DEBUG:      len:  1

1435354:2016-04-01 17:20:51 [2353] [6] DEBUG:      size: 2

1435355:2016-04-01 17:20:51 [2353] [6] DEBUG:      immutable: 0

1435356:2016-04-01 17:20:51 [2353] [6] DEBUG:      data: 12                                                .

1435357:2016-04-01 17:20:51 [2353] [6] DEBUG:    Octet string dump ends.

1435358:2016-04-01 17:20:51 [2353] [6] DEBUG: SMPP PDU dump ends.

1435359:2016-04-01 17:20:51 [2353] [6] ERROR: SMPP[smppUSSD]: Malformed destination_addr `(null)', may not be empty. Discarding MO message.

 

Thank you and Regards,

Arif Noor

 

From: Elton Hoxha [mailto:[hidden email]]
Sent: Thursday, April 07, 2016 4:15 PM
To: Arif Noor
Cc: Donald Jackson; [hidden email]
Subject: Re: USSD with Kannel

 

Hello Arif,

 

Please paste here the pdu of deliver SM while pressing Accept or Decline.

 

On Thu, Apr 7, 2016 at 9:54 AM, Arif Noor <[hidden email]> wrote:

Hi Donald,

 

Thank you for your reply, we have set up kannel to receive the TLV, just need to know how can I differentiate the sessions.

Also as per previous mail, I was wondering why I was getting below error.

 

2016-03-25 11:05:49 [2353] [6] ERROR: SMPP[smppUSSD]: Malformed destination_addr `(null)', may not be empty. Discarding MO message.

 

It doesn’t have any issue when I start the USSD session which it have destination address (in this case 126) but when replying the menu let’s say (1. Accept, 2. Decline) and I entered 1 and press send , it gave me above error on smpp thus the application server can’t proceed since it doesn’t receive any reply / MO.

 

Any input in this are highly appreciated J.

 

Thank you,

Arif Noor.

 

 

From: Donald Jackson [mailto:[hidden email]]
Sent: Tuesday, April 05, 2016 12:45 PM
To: Arif Noor
Subject: RE: USSD with Kannel

 

Hi Arif,

 

You will not be able to do this out the box with Kannel, you will need to make code changes to handle your use case.

 

Thanks,

-- 
Donald Jackson

 

 


Reply | Threaded
Open this post in threaded view
|

Re: USSD with Kannel

Stipe Tolj-2
In reply to this post by Arif Noor
Am 07.04.2016 10:21, schrieb Arif Noor:

> Hi Elton,
>
> Please find below for the logs.
>
> 1435309:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter tag
> (0x0501)
>
> 1435310:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter length
> read as 1
>
> 1435311:2016-04-01 17:20:51 [2353] [6] DEBUG: Found configured optional
> parameter `ussd_srv_op'
>
> 1435312:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter tag
> (0x4006)
>
> 1435313:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter length
> read as 2
>
> 1435314:2016-04-01 17:20:51 [2353] [6] DEBUG: Found configured optional
> parameter `ussd_hlr'
>
> 1435315:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter tag
> (0x400c)
>
> 1435316:2016-04-01 17:20:51 [2353] [6] DEBUG: Optional parameter length
> read as 16
>
> 1435317:2016-04-01 17:20:51 [2353] [6] DEBUG: Found configured optional
> parameter `ussd_optional'
>
> 1435318:2016-04-01 17:20:51 [2353] [6] DEBUG: SMPP[smppUSSD]: Got PDU:
>
> 1435319:2016-04-01 17:20:51 [2353] [6] DEBUG: SMPP PDU 0x7f41bc01c660 dump:
>
> 1435320:2016-04-01 17:20:51 [2353] [6] DEBUG: type_name: deliver_sm
>
> 1435321:2016-04-01 17:20:51 [2353] [6] DEBUG: command_id: 5 = 0x00000005
>
> 1435322:2016-04-01 17:20:51 [2353] [6] DEBUG: command_status: 0 = 0x00000000
>
> 1435323:2016-04-01 17:20:51 [2353] [6] DEBUG: sequence_number: 102277 =
> 0x00018f85
>
> 1435324:2016-04-01 17:20:51 [2353] [6] DEBUG: service_type: "USSD"
>
> 1435325:2016-04-01 17:20:51 [2353] [6] DEBUG: source_addr_ton: 1 =
> 0x00000001
>
> 1435326:2016-04-01 17:20:51 [2353] [6] DEBUG: source_addr_npi: 1 =
> 0x00000001
>
> 1435327:2016-04-01 17:20:51 [2353] [6] DEBUG: source_addr: "60xxxxxxxx"
>
> 1435328:2016-04-01 17:20:51 [2353] [6] DEBUG: dest_addr_ton: 0 = 0x00000000
>
> 1435329:2016-04-01 17:20:51 [2353] [6] DEBUG: dest_addr_npi: 0 = 0x00000000
>
> 1435330:2016-04-01 17:20:51 [2353] [6] DEBUG: destination_addr: NULL
>
> 1435331:2016-04-01 17:20:51 [2353] [6] DEBUG: esm_class: 0 = 0x00000000
>
> 1435332:2016-04-01 17:20:51 [2353] [6] DEBUG: protocol_id: 0 = 0x00000000
>
> 1435333:2016-04-01 17:20:51 [2353] [6] DEBUG: priority_flag: 0 = 0x00000000
>
> 1435334:2016-04-01 17:20:51 [2353] [6] DEBUG: schedule_delivery_time: NULL
>
> 1435335:2016-04-01 17:20:51 [2353] [6] DEBUG: validity_period: NULL
>
> 1435336:2016-04-01 17:20:51 [2353] [6] DEBUG: registered_delivery: 0 =
> 0x00000000
>
> 1435337:2016-04-01 17:20:51 [2353] [6] DEBUG: replace_if_present_flag: 0
> = 0x00000000
>
> 1435338:2016-04-01 17:20:51 [2353] [6] DEBUG: data_coding: 15 = 0x0000000f
>
> 1435339:2016-04-01 17:20:51 [2353] [6] DEBUG: sm_default_msg_id: 0 =
> 0x00000000
>
> 1435340:2016-04-01 17:20:51 [2353] [6] DEBUG: sm_length: 1 = 0x00000001
>
> 1435341:2016-04-01 17:20:51 [2353] [6] DEBUG: short_message: "1"
>
> 1435342:2016-04-01 17:20:51 [2353] [6] DEBUG: ussd_service_op:
>
> 1435343:2016-04-01 17:20:51 [2353] [6] DEBUG: Octet string at
> 0x7f41bc01d010:
>
> 1435344:2016-04-01 17:20:51 [2353] [6] DEBUG: len: 1
>
> 1435345:2016-04-01 17:20:51 [2353] [6] DEBUG: size: 2
>
> 1435346:2016-04-01 17:20:51 [2353] [6] DEBUG: immutable: 0
>
> 1435347:2016-04-01 17:20:51 [2353] [6] DEBUG: data: 12 .
>
> 1435348:2016-04-01 17:20:51 [2353] [6] DEBUG: Octet string dump ends.
>
> 1435349:2016-04-01 17:20:51 [2353] [6] DEBUG: ussd_hlr: "60"
>
> 1435350:2016-04-01 17:20:51 [2353] [6] DEBUG: ussd_optional:
> "0010015156FE3D42"
>
> 1435351:2016-04-01 17:20:51 [2353] [6] DEBUG: ussd_srv_op:
>
> 1435352:2016-04-01 17:20:51 [2353] [6] DEBUG: Octet string at
> 0x7f41bc00d440:
>
> 1435353:2016-04-01 17:20:51 [2353] [6] DEBUG: len: 1
>
> 1435354:2016-04-01 17:20:51 [2353] [6] DEBUG: size: 2
>
> 1435355:2016-04-01 17:20:51 [2353] [6] DEBUG: immutable: 0
>
> 1435356:2016-04-01 17:20:51 [2353] [6] DEBUG: data: 12 .
>
> 1435357:2016-04-01 17:20:51 [2353] [6] DEBUG: Octet string dump ends.
>
> 1435358:2016-04-01 17:20:51 [2353] [6] DEBUG: SMPP PDU dump ends.
>
> 1435359:2016-04-01 17:20:51 [2353] [6] ERROR: SMPP[smppUSSD]: Malformed
> destination_addr `(null)', may not be empty. Discarding MO message.

Hi Arif,

Kannel bearebox does refuse the MO (deliver_sm PDU) with an empty (NULL)
destination_addr. The source code part is this:

     /*
      * Follows SMPP spec. v3.4. issue 1.2
      * it's not allowed to have destination_addr NULL
      */
     if (pdu->u.deliver_sm.destination_addr == NULL) {
         error(0, "SMPP[%s]: Malformed destination_addr `%s', may not be
empty. "
               "Discarding MO message.", octstr_get_cstr(smpp->conn->id),
               octstr_get_cstr(pdu->u.deliver_sm.destination_addr));
         *reason = SMPP_ESME_RINVDSTADR;
         goto error;
     }

touch, reviewing the SMPP spec again in detail, I don't find any LITERAL
reference that a NULL'ed destination_addr is not allowed. The only thing
I see is this section:

Section 4.4.1.1 (page 66):

An ESME Transmitter may enter NULL values in the ‘source address’
fields. In this event, the SMSC may then substitute a default address
for that particular ESME. This feature is designed for interfaces that
are not normally familiar with the notion of a source address for a
short message, e.g., paging systems, voice mail system.

But this doesn't imply that a destination_addr MAY NOT be NULL.

I'll prepare a simple patch that let's you resolve the issue.

Can you please share the specification documents for the USSD gateway
(how the TLVs are defined, etc) in a private email to me.

We'll go ahead and make sure we can handle the vendor cleanly.

Stipe

--
Best Regards,
Stipe Tolj

-------------------------------------------------------------------
Düsseldorf, NRW, Germany

Kannel Foundation                 tolj.org system architecture
http://www.kannel.org/            http://www.tolj.org/

stolj at kannel.org               st at tolj.org
-------------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

Re: USSD with Kannel

Stipe Tolj-2
Am 11.04.2016 17:19, schrieb Stipe Tolj:
>
> I'll prepare a simple patch that let's you resolve the issue.

please try to apply the following patch to the source tree and re-compile.

--
Best Regards,
Stipe Tolj

-------------------------------------------------------------------
Düsseldorf, NRW, Germany

Kannel Foundation                 tolj.org system architecture
http://www.kannel.org/            http://www.tolj.org/

stolj at kannel.org               st at tolj.org
-------------------------------------------------------------------

ussd-mo.diff (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: USSD with Kannel

Arif Noor
Hi Stipe,

Thank you for the patch, will do a test once I arrived at the office, also I have sent the email to you for the specification of the ussd gateway.

Arif Noor.


-----Original Message-----
From: Stipe Tolj [mailto:[hidden email]]
Sent: Monday, April 11, 2016 11:25 PM
Cc: Arif Noor; [hidden email]
Subject: Re: USSD with Kannel

Am 11.04.2016 17:19, schrieb Stipe Tolj:
>
> I'll prepare a simple patch that let's you resolve the issue.

please try to apply the following patch to the source tree and re-compile.

--
Best Regards,
Stipe Tolj

-------------------------------------------------------------------
Düsseldorf, NRW, Germany

Kannel Foundation                 tolj.org system architecture
http://www.kannel.org/            http://www.tolj.org/

stolj at kannel.org               st at tolj.org
-------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|

RE: USSD with Kannel

Arif Noor
Hi All,

Update : After I patched the kannel the error message are no longer present however MO are still not being delivered to the application but I received new error in SMSBOX log as per below.

2016-04-13 10:38:58 [12246] [5] ERROR: smsbox_req_thread: no sender/receiver, dump follows:
2016-04-13 10:38:58 [12246] [5] DEBUG: Msg object at 0x1378640:
2016-04-13 10:38:58 [12246] [5] DEBUG:  type: sms
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.sender:
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string at 0x1378800:
2016-04-13 10:38:58 [12246] [5] DEBUG:    len:  12
2016-04-13 10:38:58 [12246] [5] DEBUG:    size: 13
2016-04-13 10:38:58 [12246] [5] DEBUG:    immutable: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 2b 36 30 31 30 33 30 36 34 38 3x 3x               +601030648xx
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string dump ends.
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.receiver:
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.udhdata:
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.msgdata:
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string at 0x1378500:
2016-04-13 10:38:58 [12246] [5] DEBUG:    len:  1
2016-04-13 10:38:58 [12246] [5] DEBUG:    size: 2
2016-04-13 10:38:58 [12246] [5] DEBUG:    immutable: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 31                                                1
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string dump ends.
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.time: 1460515138
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.smsc_id:
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string at 0x13784b0:
2016-04-13 10:38:58 [12246] [5] DEBUG:    len:  8
2016-04-13 10:38:58 [12246] [5] DEBUG:    size: 9
2016-04-13 10:38:58 [12246] [5] DEBUG:    immutable: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 73 6d 70 70 55 53 53 44                           smppUSSD
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string dump ends.
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.smsc_number:
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.foreign_id:
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.service:
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.account:
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string at 0x1378460:
2016-04-13 10:38:58 [12246] [5] DEBUG:    len:  6
2016-04-13 10:38:58 [12246] [5] DEBUG:    size: 7
2016-04-13 10:38:58 [12246] [5] DEBUG:    immutable: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 7x 6x 7x 3x 3x 3x                                 xxx126
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string dump ends.
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.id: 852d8fa4-25f3-44fb-856b-39a2fa9d8131
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.sms_type: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.mclass: -1
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.mwi: -1
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.coding: 3
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.compress: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.validity: -1
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.deferred: -1
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.dlr_mask: -1
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.dlr_url:
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.pid: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.alt_dcs: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.rpi: -1
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.charset:
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.boxc_id:
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.binfo:
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string at 0x1378860:
2016-04-13 10:38:58 [12246] [5] DEBUG:    len:  4
2016-04-13 10:38:58 [12246] [5] DEBUG:    size: 5
2016-04-13 10:38:58 [12246] [5] DEBUG:    immutable: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 55 53 53 44                                       USSD
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string dump ends.
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.msg_left: -1
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.split_parts: (nil)
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.priority: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.resend_try: -1
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.resend_time: -1
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.meta_data:
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string at 0x1378890:
2016-04-13 10:38:58 [12246] [5] DEBUG:    len:  65
2016-04-13 10:38:58 [12246] [5] DEBUG:    size: 66
2016-04-13 10:38:58 [12246] [5] DEBUG:    immutable: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 3f 73 6d 70 70 3f 75 73 73 64 5f 68 6c 72 3d 36   ?smpp?ussd_hlr=6
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 30 26 75 73 73 64 5f 6f 70 74 69 6f 6e 61 6c 3d   0&ussd_optional=
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 30 30 31 30 30 34 33 34 35 37 30 44 42 30 46 46   00100434570DB0FF
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 26 75 73 73 64 5f 73 72 76 5f 6f 70 3d 25 31 32   &ussd_srv_op=%12
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 26                                                &
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string dump ends.
2016-04-13 10:38:58 [12246] [5] DEBUG: Msg object ends.

Bearerbox log

7292:2016-04-13 10:38:58 [12229] [6] DEBUG: SMPP[smppUSSD]: Got PDU:
7293:2016-04-13 10:38:58 [12229] [6] DEBUG: SMPP PDU 0x7feef000b390 dump:
7294:2016-04-13 10:38:58 [12229] [6] DEBUG:   type_name: deliver_sm
7295:2016-04-13 10:38:58 [12229] [6] DEBUG:   command_id: 5 = 0x00000005
7296:2016-04-13 10:38:58 [12229] [6] DEBUG:   command_status: 0 = 0x00000000
7297:2016-04-13 10:38:58 [12229] [6] DEBUG:   sequence_number: 505 = 0x000001f9
7298:2016-04-13 10:38:58 [12229] [6] DEBUG:   service_type: "USSD"
7299:2016-04-13 10:38:58 [12229] [6] DEBUG:   source_addr_ton: 1 = 0x00000001
7300:2016-04-13 10:38:58 [12229] [6] DEBUG:   source_addr_npi: 1 = 0x00000001
7301:2016-04-13 10:38:58 [12229] [6] DEBUG:   source_addr: "601030648xx"
7302:2016-04-13 10:38:58 [12229] [6] DEBUG:   dest_addr_ton: 0 = 0x00000000
7303:2016-04-13 10:38:58 [12229] [6] DEBUG:   dest_addr_npi: 0 = 0x00000000
7304:2016-04-13 10:38:58 [12229] [6] DEBUG:   destination_addr: NULL
7305:2016-04-13 10:38:58 [12229] [6] DEBUG:   esm_class: 0 = 0x00000000
7306:2016-04-13 10:38:58 [12229] [6] DEBUG:   protocol_id: 0 = 0x00000000
7307:2016-04-13 10:38:58 [12229] [6] DEBUG:   priority_flag: 0 = 0x00000000
7308:2016-04-13 10:38:58 [12229] [6] DEBUG:   schedule_delivery_time: NULL
7309:2016-04-13 10:38:58 [12229] [6] DEBUG:   validity_period: NULL
7310:2016-04-13 10:38:58 [12229] [6] DEBUG:   registered_delivery: 0 = 0x00000000
7311:2016-04-13 10:38:58 [12229] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000
7312:2016-04-13 10:38:58 [12229] [6] DEBUG:   data_coding: 15 = 0x0000000f
7313:2016-04-13 10:38:58 [12229] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000
7314:2016-04-13 10:38:58 [12229] [6] DEBUG:   sm_length: 1 = 0x00000001
7315:2016-04-13 10:38:58 [12229] [6] DEBUG:   short_message: "1"
7316:2016-04-13 10:38:58 [12229] [6] DEBUG:   ussd_service_op:
7317:2016-04-13 10:38:58 [12229] [6] DEBUG:    Octet string at 0x7feef0006220:
7318:2016-04-13 10:38:58 [12229] [6] DEBUG:      len:  1
7319:2016-04-13 10:38:58 [12229] [6] DEBUG:      size: 2
7320:2016-04-13 10:38:58 [12229] [6] DEBUG:      immutable: 0
7321:2016-04-13 10:38:58 [12229] [6] DEBUG:      data: 12                                                .
7322:2016-04-13 10:38:58 [12229] [6] DEBUG:    Octet string dump ends.
7323:2016-04-13 10:38:58 [12229] [6] DEBUG:   ussd_hlr: "60"
7324:2016-04-13 10:38:58 [12229] [6] DEBUG:   ussd_optional: "00100434570DB0FF"
7325:2016-04-13 10:38:58 [12229] [6] DEBUG:   ussd_srv_op:
7326:2016-04-13 10:38:58 [12229] [6] DEBUG:    Octet string at 0x7feef0001150:
7327:2016-04-13 10:38:58 [12229] [6] DEBUG:      len:  1
7328:2016-04-13 10:38:58 [12229] [6] DEBUG:      size: 2
7329:2016-04-13 10:38:58 [12229] [6] DEBUG:      immutable: 0
7330:2016-04-13 10:38:58 [12229] [6] DEBUG:      data: 12                                                .
7331:2016-04-13 10:38:58 [12229] [6] DEBUG:    Octet string dump ends.
7332:2016-04-13 10:38:58 [12229] [6] DEBUG: SMPP PDU dump ends.

Seems like NULL destination are processed but smsbox won't proceed. Anything else than can I do from my side to get this working

Thank you,
Arif Noor


-----Original Message-----
From: users [mailto:[hidden email]] On Behalf Of Arif Noor
Sent: Tuesday, April 12, 2016 9:26 AM
To: Stipe Tolj
Cc: [hidden email]
Subject: RE: USSD with Kannel

Hi Stipe,

Thank you for the patch, will do a test once I arrived at the office, also I have sent the email to you for the specification of the ussd gateway.

Arif Noor.


-----Original Message-----
From: Stipe Tolj [mailto:[hidden email]]
Sent: Monday, April 11, 2016 11:25 PM
Cc: Arif Noor; [hidden email]
Subject: Re: USSD with Kannel

Am 11.04.2016 17:19, schrieb Stipe Tolj:
>
> I'll prepare a simple patch that let's you resolve the issue.

please try to apply the following patch to the source tree and re-compile.

--
Best Regards,
Stipe Tolj

-------------------------------------------------------------------
Düsseldorf, NRW, Germany

Kannel Foundation                 tolj.org system architecture
http://www.kannel.org/            http://www.tolj.org/

stolj at kannel.org               st at tolj.org
-------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|

Re: USSD with Kannel

elthox
could you paste your debug logs while you call "get-url" of your app?

On Wed, Apr 13, 2016 at 5:35 AM, Arif Noor <[hidden email]> wrote:
Hi All,

Update : After I patched the kannel the error message are no longer present however MO are still not being delivered to the application but I received new error in SMSBOX log as per below.

2016-04-13 10:38:58 [12246] [5] ERROR: smsbox_req_thread: no sender/receiver, dump follows:
2016-04-13 10:38:58 [12246] [5] DEBUG: Msg object at 0x1378640:
2016-04-13 10:38:58 [12246] [5] DEBUG:  type: sms
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.sender:
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string at 0x1378800:
2016-04-13 10:38:58 [12246] [5] DEBUG:    len:  12
2016-04-13 10:38:58 [12246] [5] DEBUG:    size: 13
2016-04-13 10:38:58 [12246] [5] DEBUG:    immutable: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 2b 36 30 31 30 33 30 36 34 38 3x 3x               +601030648xx
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string dump ends.
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.receiver:
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.udhdata:
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.msgdata:
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string at 0x1378500:
2016-04-13 10:38:58 [12246] [5] DEBUG:    len:  1
2016-04-13 10:38:58 [12246] [5] DEBUG:    size: 2
2016-04-13 10:38:58 [12246] [5] DEBUG:    immutable: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 31                                                1
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string dump ends.
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.time: 1460515138
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.smsc_id:
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string at 0x13784b0:
2016-04-13 10:38:58 [12246] [5] DEBUG:    len:  8
2016-04-13 10:38:58 [12246] [5] DEBUG:    size: 9
2016-04-13 10:38:58 [12246] [5] DEBUG:    immutable: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 73 6d 70 70 55 53 53 44                           smppUSSD
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string dump ends.
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.smsc_number:
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.foreign_id:
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.service:
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.account:
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string at 0x1378460:
2016-04-13 10:38:58 [12246] [5] DEBUG:    len:  6
2016-04-13 10:38:58 [12246] [5] DEBUG:    size: 7
2016-04-13 10:38:58 [12246] [5] DEBUG:    immutable: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 7x 6x 7x 3x 3x 3x                                 xxx126
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string dump ends.
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.id: 852d8fa4-25f3-44fb-856b-39a2fa9d8131
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.sms_type: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.mclass: -1
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.mwi: -1
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.coding: 3
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.compress: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.validity: -1
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.deferred: -1
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.dlr_mask: -1
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.dlr_url:
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.pid: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.alt_dcs: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.rpi: -1
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.charset:
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.boxc_id:
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.binfo:
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string at 0x1378860:
2016-04-13 10:38:58 [12246] [5] DEBUG:    len:  4
2016-04-13 10:38:58 [12246] [5] DEBUG:    size: 5
2016-04-13 10:38:58 [12246] [5] DEBUG:    immutable: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 55 53 53 44                                       USSD
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string dump ends.
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.msg_left: -1
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.split_parts: (nil)
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.priority: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.resend_try: -1
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.resend_time: -1
2016-04-13 10:38:58 [12246] [5] DEBUG:  sms.meta_data:
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string at 0x1378890:
2016-04-13 10:38:58 [12246] [5] DEBUG:    len:  65
2016-04-13 10:38:58 [12246] [5] DEBUG:    size: 66
2016-04-13 10:38:58 [12246] [5] DEBUG:    immutable: 0
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 3f 73 6d 70 70 3f 75 73 73 64 5f 68 6c 72 3d 36   ?smpp?ussd_hlr=6
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 30 26 75 73 73 64 5f 6f 70 74 69 6f 6e 61 6c 3d   0&ussd_optional=
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 30 30 31 30 30 34 33 34 35 37 30 44 42 30 46 46   00100434570DB0FF
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 26 75 73 73 64 5f 73 72 76 5f 6f 70 3d 25 31 32   &ussd_srv_op=%12
2016-04-13 10:38:58 [12246] [5] DEBUG:    data: 26                                                &
2016-04-13 10:38:58 [12246] [5] DEBUG:  Octet string dump ends.
2016-04-13 10:38:58 [12246] [5] DEBUG: Msg object ends.

Bearerbox log

7292:2016-04-13 10:38:58 [12229] [6] DEBUG: SMPP[smppUSSD]: Got PDU:
7293:2016-04-13 10:38:58 [12229] [6] DEBUG: SMPP PDU 0x7feef000b390 dump:
7294:2016-04-13 10:38:58 [12229] [6] DEBUG:   type_name: deliver_sm
7295:2016-04-13 10:38:58 [12229] [6] DEBUG:   command_id: 5 = 0x00000005
7296:2016-04-13 10:38:58 [12229] [6] DEBUG:   command_status: 0 = 0x00000000
7297:2016-04-13 10:38:58 [12229] [6] DEBUG:   sequence_number: 505 = 0x000001f9
7298:2016-04-13 10:38:58 [12229] [6] DEBUG:   service_type: "USSD"
7299:2016-04-13 10:38:58 [12229] [6] DEBUG:   source_addr_ton: 1 = 0x00000001
7300:2016-04-13 10:38:58 [12229] [6] DEBUG:   source_addr_npi: 1 = 0x00000001
7301:2016-04-13 10:38:58 [12229] [6] DEBUG:   source_addr: "601030648xx"
7302:2016-04-13 10:38:58 [12229] [6] DEBUG:   dest_addr_ton: 0 = 0x00000000
7303:2016-04-13 10:38:58 [12229] [6] DEBUG:   dest_addr_npi: 0 = 0x00000000
7304:2016-04-13 10:38:58 [12229] [6] DEBUG:   destination_addr: NULL
7305:2016-04-13 10:38:58 [12229] [6] DEBUG:   esm_class: 0 = 0x00000000
7306:2016-04-13 10:38:58 [12229] [6] DEBUG:   protocol_id: 0 = 0x00000000
7307:2016-04-13 10:38:58 [12229] [6] DEBUG:   priority_flag: 0 = 0x00000000
7308:2016-04-13 10:38:58 [12229] [6] DEBUG:   schedule_delivery_time: NULL
7309:2016-04-13 10:38:58 [12229] [6] DEBUG:   validity_period: NULL
7310:2016-04-13 10:38:58 [12229] [6] DEBUG:   registered_delivery: 0 = 0x00000000
7311:2016-04-13 10:38:58 [12229] [6] DEBUG:   replace_if_present_flag: 0 = 0x00000000
7312:2016-04-13 10:38:58 [12229] [6] DEBUG:   data_coding: 15 = 0x0000000f
7313:2016-04-13 10:38:58 [12229] [6] DEBUG:   sm_default_msg_id: 0 = 0x00000000
7314:2016-04-13 10:38:58 [12229] [6] DEBUG:   sm_length: 1 = 0x00000001
7315:2016-04-13 10:38:58 [12229] [6] DEBUG:   short_message: "1"
7316:2016-04-13 10:38:58 [12229] [6] DEBUG:   ussd_service_op:
7317:2016-04-13 10:38:58 [12229] [6] DEBUG:    Octet string at 0x7feef0006220:
7318:2016-04-13 10:38:58 [12229] [6] DEBUG:      len:  1
7319:2016-04-13 10:38:58 [12229] [6] DEBUG:      size: 2
7320:2016-04-13 10:38:58 [12229] [6] DEBUG:      immutable: 0
7321:2016-04-13 10:38:58 [12229] [6] DEBUG:      data: 12                                                .
7322:2016-04-13 10:38:58 [12229] [6] DEBUG:    Octet string dump ends.
7323:2016-04-13 10:38:58 [12229] [6] DEBUG:   ussd_hlr: "60"
7324:2016-04-13 10:38:58 [12229] [6] DEBUG:   ussd_optional: "00100434570DB0FF"
7325:2016-04-13 10:38:58 [12229] [6] DEBUG:   ussd_srv_op:
7326:2016-04-13 10:38:58 [12229] [6] DEBUG:    Octet string at 0x7feef0001150:
7327:2016-04-13 10:38:58 [12229] [6] DEBUG:      len:  1
7328:2016-04-13 10:38:58 [12229] [6] DEBUG:      size: 2
7329:2016-04-13 10:38:58 [12229] [6] DEBUG:      immutable: 0
7330:2016-04-13 10:38:58 [12229] [6] DEBUG:      data: 12                                                .
7331:2016-04-13 10:38:58 [12229] [6] DEBUG:    Octet string dump ends.
7332:2016-04-13 10:38:58 [12229] [6] DEBUG: SMPP PDU dump ends.

Seems like NULL destination are processed but smsbox won't proceed. Anything else than can I do from my side to get this working

Thank you,
Arif Noor


-----Original Message-----
From: users [mailto:[hidden email]] On Behalf Of Arif Noor
Sent: Tuesday, April 12, 2016 9:26 AM
To: Stipe Tolj
Cc: [hidden email]
Subject: RE: USSD with Kannel

Hi Stipe,

Thank you for the patch, will do a test once I arrived at the office, also I have sent the email to you for the specification of the ussd gateway.

Arif Noor.


-----Original Message-----
From: Stipe Tolj [mailto:[hidden email]]
Sent: Monday, April 11, 2016 11:25 PM
Cc: Arif Noor; [hidden email]
Subject: Re: USSD with Kannel

Am 11.04.2016 17:19, schrieb Stipe Tolj:
>
> I'll prepare a simple patch that let's you resolve the issue.

please try to apply the following patch to the source tree and re-compile.

--
Best Regards,
Stipe Tolj

-------------------------------------------------------------------
Düsseldorf, NRW, Germany

Kannel Foundation                 tolj.org system architecture
http://www.kannel.org/            http://www.tolj.org/

stolj at kannel.org               st at tolj.org
-------------------------------------------------------------------

Reply | Threaded
Open this post in threaded view
|

RE: USSD with Kannel

Arif Noor

Hi Elton.

 

Below are the SMSLOG that call get-url when I initiate PSSR

 

2016-04-13 15:51:26 [12361] [10] DEBUG: Parsing URL `http://xxx.xxx.xxx.xxx:8080/USSDMO/mo.aspx?msisdn=%2B601030648xx&Msg=*126%23&shortcode=126&metadata=%3Fsmpp%3Fussd_hlr%3D60192040152%26ussd_imsi%3D502195700771324%26ussd_optional%3D0010022C570DFA41%26ussd_srv_op%3D%2501%26ussd_vlr%3D60194030063%26&ussdID=38cb8518-a862-42c1-9646-e2c3ea55854b':

2016-04-13 15:51:26 [12361] [10] DEBUG:   Scheme: http://

2016-04-13 15:51:26 [12361] [10] DEBUG:   Host: xxx.xxx.xxx.xxx

2016-04-13 15:51:26 [12361] [10] DEBUG:   Port: 8080

2016-04-13 15:51:26 [12361] [10] DEBUG:   Username: (null)

2016-04-13 15:51:26 [12361] [10] DEBUG:   Password: (null)

2016-04-13 15:51:26 [12361] [10] DEBUG:   Path: /USSDMO/mo.aspx

2016-04-13 15:51:26 [12361] [10] DEBUG:   Query: msisdn=%2B601030648xx&Msg=*126%23&shortcode=126&metadata=%3Fsmpp%3Fussd_hlr%3D60192040152%26ussd_imsi%3D502195700771324%26ussd_optional%3D0010022C570DFA41%26ussd_srv_op%3D%2501%26ussd_vlr%3D60194030063%26&ussdID=38cb8518-a862-42c1-9646-e2c3ea55854b

2016-04-13 15:51:26 [12361] [10] DEBUG:   Fragment: (null)

2016-04-13 15:51:26 [12361] [10] DEBUG: Connecting nonblocking to <xxx.xxx.xxx.xxx>

2016-04-13 15:51:26 [12361] [10] DEBUG: HTTP: Opening connection to `xxx.xxx.xxx.xxx:8080' (fd=28).

2016-04-13 15:51:26 [12361] [10] DEBUG: Socket connecting

2016-04-13 15:51:26 [12361] [9] DEBUG: Get info about connecting socket

2016-04-13 15:51:26 [12361] [9] DEBUG: HTTP: Sending request:

2016-04-13 15:51:26 [12361] [9] DEBUG: Octet string at 0x7f31840008e0:

2016-04-13 15:51:26 [12361] [9] DEBUG:   len:  363

2016-04-13 15:51:26 [12361] [9] DEBUG:   size: 1024

2016-04-13 15:51:26 [12361] [9] DEBUG:   immutable: 0

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 47 45 54 20 2f 55 53 53 44 4d 4f 2f 6d 6f 2e 61   GET /USSDMO/mo.a

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 73 70 78 3f 6d 73 69 73 64 6e 3d 25 32 42 36 30   spx?msisdn=%2B60

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 31 30 33 30 36 34 38 3x 3x 26 4d 73 67 3d 2a 31   1030648xx&Msg=*1

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 32 36 25 32 33 26 73 68 6f 72 74 63 6f 64 65 3d   26%23&shortcode=

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 31 32 36 26 6d 65 74 61 64 61 74 61 3d 25 33 46   126&metadata=%3F

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 73 6d 70 70 25 33 46 75 73 73 64 5f 68 6c 72 25   smpp%3Fussd_hlr%

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 33 44 36 30 31 39 32 30 34 30 31 35 32 25 32 36   3D60192040152%26

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 75 73 73 64 5f 69 6d 73 69 25 33 44 35 30 32 31   ussd_imsi%3D5021

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 39 35 37 30 30 37 37 31 33 32 34 25 32 36 75 73   95700771324%26us

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 73 64 5f 6f 70 74 69 6f 6e 61 6c 25 33 44 30 30   sd_optional%3D00

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 31 30 30 32 32 43 35 37 30 44 46 41 34 31 25 32   10022C570DFA41%2

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 36 75 73 73 64 5f 73 72 76 5f 6f 70 25 33 44 25   6ussd_srv_op%3D%

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 32 35 30 31 25 32 36 75 73 73 64 5f 76 6c 72 25   2501%26ussd_vlr%

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 33 44 36 30 31 39 34 30 33 30 30 36 33 25 32 36   3D60194030063%26

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 26 75 73 73 64 49 44 3d 33 38 63 62 38 35 31 38   &ussdID=38cb8518

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 2d 61 38 36 32 2d 34 32 63 31 2d 39 36 34 36 2d   -a862-42c1-9646-

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 65 32 63 33 65 61 35 35 38 35 34 62 20 48 54 54   e2c3ea55854b HTT

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 50 2f 31 2e 31 0d 0a 43 6f 6e 6e 65 63 74 69 6f   P/1.1..Connectio

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 6e 3a 20 6b 65 65 70 2d 61 6c 69 76 65 0d 0a 55   n: keep-alive..U

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 73 65 72 2d 41 67 65 6e 74 3a 20 4b 61 6e 6e 65   ser-Agent: Kanne

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 6c 2f 73 76 6e 2d 72 35 31 35 34 4d 0d 0a 48 6f   l/svn-r5154M..Ho

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 73 74 3a 20 31 37 32 2e 31 36 3x 2x 3x 3x 2x 3x   st: xxx.xxx.xx.x

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 31 31 3a 38 30 38 30 0d 0a 0d 0a                  xx:8080....

2016-04-13 15:51:26 [12361] [9] DEBUG: Octet string dump ends.

2016-04-13 15:51:26 [12361] [9] DEBUG: HTTP: Status line: <HTTP/1.1 200 OK>

2016-04-13 15:51:26 [12361] [9] DEBUG: HTTP: Received response:

2016-04-13 15:51:26 [12361] [9] DEBUG: Octet string at 0x7f3184001190:

2016-04-13 15:51:26 [12361] [9] DEBUG:   len:  204

2016-04-13 15:51:26 [12361] [9] DEBUG:   size: 1024

2016-04-13 15:51:26 [12361] [9] DEBUG:   immutable: 0

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 43 61 63 68 65 2d 43 6f 6e 74 72 6f 6c 3a 20 70   Cache-Control: p

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 72 69 76 61 74 65 0d 0a 43 6f 6e 74 65 6e 74 2d   rivate..Content-

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 54 79 70 65 3a 20 74 65 78 74 2f 68 74 6d 6c 3b   Type: text/html;

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 20 63 68 61 72 73 65 74 3d 75 74 66 2d 38 0d 0a    charset=utf-8..

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 53 65 72 76 65 72 3a 20 4d 69 63 72 6f 73 6f 66   Server: Microsof

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 74 2d 49 49 53 2f 38 2e 35 0d 0a 58 2d 41 73 70   t-IIS/8.5..X-Asp

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 4e 65 74 2d 56 65 72 73 69 6f 6e 3a 20 34 2e 30   Net-Version: 4.0

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 2e 33 30 33 31 39 0d 0a 58 2d 50 6f 77 65 72 65   .30319..X-Powere

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 64 2d 42 79 3a 20 41 53 50 2e 4e 45 54 0d 0a 44   d-By: ASP.NET..D

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 61 74 65 3a 20 57 65 64 2c 20 31 33 20 41 70 72   ate: Wed, 13 Apr

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 20 32 30 31 36 20 30 37 3a 35 30 3a 32 34 20 47    2016 07:50:24 G

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 4d 54 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67   MT..Content-Leng

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 74 68 3a 20 33 0d 0a 0d 0a 32 30 30               th: 3....200

2016-04-13 15:51:26 [12361] [9] DEBUG: Octet string dump ends.

 

The previous log provided was also from smsbox but it doesn’t seem to call the get-url and giving the no sender/receiver error. Please do let me know if you need any further details.

 

Thanks,

Arif Noor.

 

 

From: Elton Hoxha [mailto:[hidden email]]
Sent: Wednesday, April 13, 2016 3:05 PM
To: Arif Noor
Cc: Stipe Tolj; [hidden email]
Subject: Re: USSD with Kannel

 

could you paste your debug logs while you call "get-url" of your app?

 

 

Reply | Threaded
Open this post in threaded view
|

Re: USSD with Kannel

elthox
Also please debug logs of submit SM after you are receiving initial PSSR.

On Wed, Apr 13, 2016 at 9:57 AM, Arif Noor <[hidden email]> wrote:

Hi Elton.

 

Below are the SMSLOG that call get-url when I initiate PSSR

 

2016-04-13 15:51:26 [12361] [10] DEBUG: Parsing URL `http://xxx.xxx.xxx.xxx:8080/USSDMO/mo.aspx?msisdn=%2B601030648xx&Msg=*126%23&shortcode=126&metadata=%3Fsmpp%3Fussd_hlr%3D60192040152%26ussd_imsi%3D502195700771324%26ussd_optional%3D0010022C570DFA41%26ussd_srv_op%3D%2501%26ussd_vlr%3D60194030063%26&ussdID=38cb8518-a862-42c1-9646-e2c3ea55854b':

2016-04-13 15:51:26 [12361] [10] DEBUG:   Scheme: http://

2016-04-13 15:51:26 [12361] [10] DEBUG:   Host: xxx.xxx.xxx.xxx

2016-04-13 15:51:26 [12361] [10] DEBUG:   Port: 8080

2016-04-13 15:51:26 [12361] [10] DEBUG:   Username: (null)

2016-04-13 15:51:26 [12361] [10] DEBUG:   Password: (null)

2016-04-13 15:51:26 [12361] [10] DEBUG:   Path: /USSDMO/mo.aspx

2016-04-13 15:51:26 [12361] [10] DEBUG:   Query: msisdn=%2B601030648xx&Msg=*126%23&shortcode=126&metadata=%3Fsmpp%3Fussd_hlr%3D60192040152%26ussd_imsi%3D502195700771324%26ussd_optional%3D0010022C570DFA41%26ussd_srv_op%3D%2501%26ussd_vlr%3D60194030063%26&ussdID=38cb8518-a862-42c1-9646-e2c3ea55854b

2016-04-13 15:51:26 [12361] [10] DEBUG:   Fragment: (null)

2016-04-13 15:51:26 [12361] [10] DEBUG: Connecting nonblocking to <xxx.xxx.xxx.xxx>

2016-04-13 15:51:26 [12361] [10] DEBUG: HTTP: Opening connection to `xxx.xxx.xxx.xxx:8080' (fd=28).

2016-04-13 15:51:26 [12361] [10] DEBUG: Socket connecting

2016-04-13 15:51:26 [12361] [9] DEBUG: Get info about connecting socket

2016-04-13 15:51:26 [12361] [9] DEBUG: HTTP: Sending request:

2016-04-13 15:51:26 [12361] [9] DEBUG: Octet string at 0x7f31840008e0:

2016-04-13 15:51:26 [12361] [9] DEBUG:   len:  363

2016-04-13 15:51:26 [12361] [9] DEBUG:   size: 1024

2016-04-13 15:51:26 [12361] [9] DEBUG:   immutable: 0

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 47 45 54 20 2f 55 53 53 44 4d 4f 2f 6d 6f 2e 61   GET /USSDMO/mo.a

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 73 70 78 3f 6d 73 69 73 64 6e 3d 25 32 42 36 30   spx?msisdn=%2B60

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 31 30 33 30 36 34 38 3x 3x 26 4d 73 67 3d 2a 31   1030648xx&Msg=*1

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 32 36 25 32 33 26 73 68 6f 72 74 63 6f 64 65 3d   26%23&shortcode=

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 31 32 36 26 6d 65 74 61 64 61 74 61 3d 25 33 46   126&metadata=%3F

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 73 6d 70 70 25 33 46 75 73 73 64 5f 68 6c 72 25   smpp%3Fussd_hlr%

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 33 44 36 30 31 39 32 30 34 30 31 35 32 25 32 36   3D60192040152%26

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 75 73 73 64 5f 69 6d 73 69 25 33 44 35 30 32 31   ussd_imsi%3D5021

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 39 35 37 30 30 37 37 31 33 32 34 25 32 36 75 73   95700771324%26us

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 73 64 5f 6f 70 74 69 6f 6e 61 6c 25 33 44 30 30   sd_optional%3D00

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 31 30 30 32 32 43 35 37 30 44 46 41 34 31 25 32   10022C570DFA41%2

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 36 75 73 73 64 5f 73 72 76 5f 6f 70 25 33 44 25   6ussd_srv_op%3D%

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 32 35 30 31 25 32 36 75 73 73 64 5f 76 6c 72 25   2501%26ussd_vlr%

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 33 44 36 30 31 39 34 30 33 30 30 36 33 25 32 36   3D60194030063%26

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 26 75 73 73 64 49 44 3d 33 38 63 62 38 35 31 38   &ussdID=38cb8518

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 2d 61 38 36 32 2d 34 32 63 31 2d 39 36 34 36 2d   -a862-42c1-9646-

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 65 32 63 33 65 61 35 35 38 35 34 62 20 48 54 54   e2c3ea55854b HTT

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 50 2f 31 2e 31 0d 0a 43 6f 6e 6e 65 63 74 69 6f   P/1.1..Connectio

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 6e 3a 20 6b 65 65 70 2d 61 6c 69 76 65 0d 0a 55   n: keep-alive..U

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 73 65 72 2d 41 67 65 6e 74 3a 20 4b 61 6e 6e 65   ser-Agent: Kanne

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 6c 2f 73 76 6e 2d 72 35 31 35 34 4d 0d 0a 48 6f   l/svn-r5154M..Ho

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 73 74 3a 20 31 37 32 2e 31 36 3x 2x 3x 3x 2x 3x   st: xxx.xxx.xx.x

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 31 31 3a 38 30 38 30 0d 0a 0d 0a                  xx:8080....

2016-04-13 15:51:26 [12361] [9] DEBUG: Octet string dump ends.

2016-04-13 15:51:26 [12361] [9] DEBUG: HTTP: Status line: <HTTP/1.1 200 OK>

2016-04-13 15:51:26 [12361] [9] DEBUG: HTTP: Received response:

2016-04-13 15:51:26 [12361] [9] DEBUG: Octet string at 0x7f3184001190:

2016-04-13 15:51:26 [12361] [9] DEBUG:   len:  204

2016-04-13 15:51:26 [12361] [9] DEBUG:   size: 1024

2016-04-13 15:51:26 [12361] [9] DEBUG:   immutable: 0

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 43 61 63 68 65 2d 43 6f 6e 74 72 6f 6c 3a 20 70   Cache-Control: p

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 72 69 76 61 74 65 0d 0a 43 6f 6e 74 65 6e 74 2d   rivate..Content-

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 54 79 70 65 3a 20 74 65 78 74 2f 68 74 6d 6c 3b   Type: text/html;

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 20 63 68 61 72 73 65 74 3d 75 74 66 2d 38 0d 0a    charset=utf-8..

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 53 65 72 76 65 72 3a 20 4d 69 63 72 6f 73 6f 66   Server: Microsof

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 74 2d 49 49 53 2f 38 2e 35 0d 0a 58 2d 41 73 70   t-IIS/8.5..X-Asp

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 4e 65 74 2d 56 65 72 73 69 6f 6e 3a 20 34 2e 30   Net-Version: 4.0

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 2e 33 30 33 31 39 0d 0a 58 2d 50 6f 77 65 72 65   .30319..X-Powere

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 64 2d 42 79 3a 20 41 53 50 2e 4e 45 54 0d 0a 44   d-By: ASP.NET..D

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 61 74 65 3a 20 57 65 64 2c 20 31 33 20 41 70 72   ate: Wed, 13 Apr

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 20 32 30 31 36 20 30 37 3a 35 30 3a 32 34 20 47    2016 07:50:24 G

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 4d 54 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67   MT..Content-Leng

2016-04-13 15:51:26 [12361] [9] DEBUG:   data: 74 68 3a 20 33 0d 0a 0d 0a 32 30 30               th: 3....200

2016-04-13 15:51:26 [12361] [9] DEBUG: Octet string dump ends.

 

The previous log provided was also from smsbox but it doesn’t seem to call the get-url and giving the no sender/receiver error. Please do let me know if you need any further details.

 

Thanks,

Arif Noor.

 

 

From: Elton Hoxha [mailto:[hidden email]]
Sent: Wednesday, April 13, 2016 3:05 PM
To: Arif Noor
Cc: Stipe Tolj; [hidden email]
Subject: Re: USSD with Kannel

 

could you paste your debug logs while you call "get-url" of your app?

 

 


Reply | Threaded
Open this post in threaded view
|

RE: USSD with Kannel

Arif Noor

Hi Elton,

 

Kindly find the attachment for the logs. Note that this was done manually since the application are not functioning yet since I need to get the MO through first.

 

Thank you,

Arif Noor.

 

From: Elton Hoxha [mailto:[hidden email]]
Sent: Wednesday, April 13, 2016 8:30 PM
To: Arif Noor
Cc: Stipe Tolj; [hidden email]
Subject: Re: USSD with Kannel

 

Also please debug logs of submit SM after you are receiving initial PSSR.

 

 


Bearerbox.txt (17K) Download Attachment
Smsbox.txt (17K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: USSD with Kannel

elthox
Hi Arif,

I believe your issue is related to Telco provider.

1 - To send an USSD request, you have to send a submit_sm packet with this TLV with value "2", which its sent accordingly by you. When you receive a deliver_sm packet with this TLV in response, the value will be "18", instead telco sends you 12 which is a reserved code and might interrupt the session (im not sure what does 12 code causes).
2 - Also submit_sm_resp from Telco is not including message id, producing an error.

These two issues need to be addressed by them.

On Thu, Apr 14, 2016 at 3:22 AM, Arif Noor <[hidden email]> wrote:

Hi Elton,

 

Kindly find the attachment for the logs. Note that this was done manually since the application are not functioning yet since I need to get the MO through first.

 

Thank you,

Arif Noor.

 

From: Elton Hoxha [mailto:[hidden email]]
Sent: Wednesday, April 13, 2016 8:30 PM
To: Arif Noor
Cc: Stipe Tolj; [hidden email]
Subject: Re: USSD with Kannel

 

Also please debug logs of submit SM after you are receiving initial PSSR.

 

 


Reply | Threaded
Open this post in threaded view
|

RE: USSD with Kannel

Arif Noor

Hi There,

 

I receive update from the Telco which they mentione that the value 12 was in hexa which 0x12 = 18,  does kannel ussd_service_op using hexadecimal?

 

Regards,

 

 

From: Elton Hoxha [mailto:[hidden email]]
Sent: Thursday, April 14, 2016 3:28 PM
To: Arif Noor
Cc: Stipe Tolj; [hidden email]
Subject: Re: USSD with Kannel

 

Hi Arif,

 

I believe your issue is related to Telco provider.

 

1 - To send an USSD request, you have to send a submit_sm packet with this TLV with value "2", which its sent accordingly by you. When you receive a deliver_sm packet with this TLV in response, the value will be "18", instead telco sends you 12 which is a reserved code and might interrupt the session (im not sure what does 12 code causes).

2 - Also submit_sm_resp from Telco is not including message id, producing an error.

 

These two issues need to be addressed by them.

Reply | Threaded
Open this post in threaded view
|

RE: USSD with Kannel

Arif Noor
In reply to this post by elthox

Hi Again,

 

Is it possible to hardcode the smsbox with the desired destination since we keep receiving this error.

 

2016-04-21 16:17:52 [13809] [5] ERROR: smsbox_req_thread: no sender/receiver, dump follows:

 

Thank you and Regards,

Arif Noor

 

 

From: Elton Hoxha [mailto:[hidden email]]
Sent: Thursday, April 14, 2016 3:28 PM
To: Arif Noor
Cc: Stipe Tolj; [hidden email]
Subject: Re: USSD with Kannel

 

Hi Arif,

 

I believe your issue is related to Telco provider.

 

1 - To send an USSD request, you have to send a submit_sm packet with this TLV with value "2", which its sent accordingly by you. When you receive a deliver_sm packet with this TLV in response, the value will be "18", instead telco sends you 12 which is a reserved code and might interrupt the session (im not sure what does 12 code causes).

2 - Also submit_sm_resp from Telco is not including message id, producing an error.

 

These two issues need to be addressed by them.

 

On Thu, Apr 14, 2016 at 3:22 AM, Arif Noor <[hidden email]> wrote:

Hi Elton,

 

Kindly find the attachment for the logs. Note that this was done manually since the application are not functioning yet since I need to get the MO through first.

 

Thank you,

Arif Noor.

 

From: Elton Hoxha [mailto:[hidden email]]
Sent: Wednesday, April 13, 2016 8:30 PM
To: Arif Noor
Cc: Stipe Tolj; [hidden email]
Subject: Re: USSD with Kannel

 

Also please debug logs of submit SM after you are receiving initial PSSR.

 

 

 

12