Re: Kannel & USSD status

2019-01-20 Thread Davor Spasoski
Your USSD provider should give instructions how to use the api. Smpp is merely 
used to convey the messages to/from the user by using the standard pdus 
(submit_sm and deliver_sm). Probably some TLVs will be used (imsi is a good 
example) and other notable difference is that ussd is session based, so you 
might have session_id as a parameter somewhere.
Anyway, you need to study your provider’s api and ussd as a service a little 
bit.

—Davor

> On Jan 20, 2019, at 5:35 PM, Damian Dimmich  
> wrote:
>
> Hi,
>
> I'm in the process of setting up USSD -> web application integration with a 
> mobile telecoms provider (I have SMPP 3.4 based access to their gateway, and 
> they support USSD messaging).
>
> While looking at options for setting this up, and kannel came up, however 
> looking through the mail archives it's not entirely clear that USSD is 
> supported out of the box with Kannel, potentially requiring 
> patches/recompilation.
>
> I've got  kannel  1.4.4-4 running on a debian 9 machine, and connect to that 
> via a python smpp client library, however I can't seem to figure out how to 
> simulate initiating a USSD session.  Are there some command line 
> tools/clients that can do this or is more a case of write your own?  I've 
> spotted fakesmsc but can't see how to generate ussd traffic from that.
>
> Ideally I'd like to configure kannel/smsbox/sms-service to call into an HTTP 
> api with a session id/phone number/subscriberid - so that I can go back and 
> forth between the user and my server to get answers to a few questions.
>
> Using SMPPSim's inject_mo I can simulate SMS and SMS responses already to my 
> HTTP based application server.
>
> Thank you very much for any pointers in advance,  I attach my current config 
> below.
>
> Damian
>
>
> group = core
> admin-port = 13000
> admin-password = bar
> admin-deny-ip = ""
> admin-allow-ip = "*.*.*.*"
> smsbox-port = 13003
> wdp-interface-name = "*"
> log-file = "/var/log/kannel/bearerbox.log"
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
>
> group = smsbox
> # smsbox-id = mysmsbox
> bearerbox-host = localhost
> sendsms-port = 1025
> global-sender = 1000
> log-level = 0
> log-file = "/var/log/kannel/smsbox.log"
> mo-recode = true
> sendsms-port = 13013
>
> group = smsc
> smsc = smpp
> smsc-id = SMPPSim
> host = 10.10.10.1
> port = 2775
> transceiver-mode = 1
> smsc-username = smppclient1
> smsc-password = password
> system-type = 'VMA'
> #service-type = 'test'
> interface-version = 34
> system-id = smppclient
> preferred-smsc-id = SMPPSim
>
> group = sms-service
> keyword = default
> # get-url = "http://localhost:8000/api/v1/sms/?phone=%p=%a;
> # accept-x-kannel-headers = true
> post-url = "http://localhost:8000/api/v1/sms/;
> catch-all = true
>
> group = smpp-tlv
> name = ussd_service_op
> tag = 0x0501
> type = integer
> length = 1
>
>



Disclaimer: one.Vip DOOEL Skopje
This e-mail (including any attachments) is confidential and may be protected by 
legal privilege. If you are not the intended recipient, you should not copy it, 
re-transmit it, use it or disclose its contents, but should return it to the 
sender immediately and delete your copy from your system. Any unauthorized use 
or dissemination of this message in whole or in part is strictly prohibited. 
Please note that e-mails are susceptible to change. one.Vip DOOEL Skopje shall 
not be liable for the improper or incomplete transmission of the information 
contained in this communication nor for any delay in its receipt or damage to 
your system.
Please, do not print this e-mail unless it is necessary! Think about saving the 
environment!

Напомена: оне.Вип ДООЕЛ Скопје
Оваа електронска порака (вклучувајќи ги и прилозите) е доверлива и може да биде 
заштитена со правни привилегии. Доколку не сте лицето на кое таа му е наменета 
пораката, не треба да ја копирате, дистрибуирате или да ја откривате нејзината 
содржина, туку веднаш да ја препратите до испраќачот и да ја избришете 
оригиналната порака и сите нејзини копии од Вашиот компјутерски систем. Секое 
неовластено користење на оваа порака во целост или делови од истата е строго 
забрането. Ве молиме да забележите дека електронските пораки се подложни на 
промени. оне.Вип ДООЕЛ Скопје не презема одговорност за несоодветно или 
нецелосно пренесување на информациите содржани во оваа комуникација, ниту пак 
за било какво задоцнување на приемот или оштетувања на вашиот систем.
Ве молиме не ја печатете оваа порака освен ако не е неопходно! Зачувајте ја 
природата!


Kannel & USSD status

2019-01-20 Thread Damian Dimmich

Hi,

I'm in the process of setting up USSD -> web application integration 
with a mobile telecoms provider (I have SMPP 3.4 based access to their 
gateway, and they support USSD messaging).


While looking at options for setting this up, and kannel came up, 
however looking through the mail archives it's not entirely clear that 
USSD is supported out of the box with Kannel, potentially requiring 
patches/recompilation.


I've got  kannel  1.4.4-4 running on a debian 9 machine, and connect to 
that via a python smpp client library, however I can't seem to figure 
out how to simulate initiating a USSD session.  Are there some command 
line tools/clients that can do this or is more a case of write your 
own?  I've spotted fakesmsc but can't see how to generate ussd traffic 
from that.


Ideally I'd like to configure kannel/smsbox/sms-service to call into an 
HTTP api with a session id/phone number/subscriberid - so that I can go 
back and forth between the user and my server to get answers to a few 
questions.


Using SMPPSim's inject_mo I can simulate SMS and SMS responses already 
to my HTTP based application server.


Thank you very much for any pointers in advance,  I attach my current 
config below.


Damian


group = core
admin-port = 13000
admin-password = bar
admin-deny-ip = ""
admin-allow-ip = "*.*.*.*"
smsbox-port = 13003
wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"

group = smsbox
# smsbox-id = mysmsbox
bearerbox-host = localhost
sendsms-port = 1025
global-sender = 1000
log-level = 0
log-file = "/var/log/kannel/smsbox.log"
mo-recode = true
sendsms-port = 13013

group = smsc
smsc = smpp
smsc-id = SMPPSim
host = 10.10.10.1
port = 2775
transceiver-mode = 1
smsc-username = smppclient1
smsc-password = password
system-type = 'VMA'
#service-type = 'test'
interface-version = 34
system-id = smppclient
preferred-smsc-id = SMPPSim

group = sms-service
keyword = default
# get-url = "http://localhost:8000/api/v1/sms/?phone=%p=%a;
# accept-x-kannel-headers = true
post-url = "http://localhost:8000/api/v1/sms/;
catch-all = true

group = smpp-tlv
name = ussd_service_op
tag = 0x0501
type = integer
length = 1