Re: Kannel USSD gateway over SMPP

2021-08-11 Thread Jean Claude Adams
Hi Jasurbek,

Yes, you can handle it. Check this link
https://mehulbhatt.wordpress.com/2012/04/10/connect-kannel-to-a-ussd-centered/

Need to add kannel-tlv



On Wed, Aug 11, 2021 at 2:52 PM Jasurbek Abdurakhmonov 
wrote:

> Hi, I'd like to ask about the USSD gateway it is possible to handle USSD
> requests using kannel.
> I've credentials to connect mobile operator SMSC can I handle incoming
> requests using kannel and redirect them to my PHP application?
>


-- 
Jean-Claude Adams
Entrepreneur
Phone: +595 981 833415
Skype: arrobasoft
Visit us at arrobasoft <http://www.arrobasoft.net/>


Re: kannel configuration to register SMS service subscribers

2018-10-03 Thread Jean-Claude Adams
Hi Yahya,

I guest you need to a webservice can update or insert all the messages into
your database.

use get-url config into sms-service

# SMS SERVICE Two
group = sms-service
keyword = default
#keyword-regex = default
#text = "Service two auto reply goes here"
accept-x-kannel-headers = true
catch-all = true
max-messages = 1
omit-empty = true
concatenation = true
get-url = "
http://localhost/handler?key=%k=%p=%P=%a=%B_id=%i=%s
"

You can use this kind of parameters.

I hope helps.

Best regards


On Wed, Oct 3, 2018 at 3:04 AM Yahya M.  wrote:

> I am using kannel 1.4.4 and I want to register subscribers based on the
> keyword they send to my short code number. So far I am using smsbox.log to
> register subscribers manually by adding them to appropriate group.
>
>
> What I want is some script that can be called when message arrives and
> save the phone number that sent message to appropriate database based on
> the sent keyword and at the same time, send them auto reply.
>
> Thanks. Regards.
>
> Here is my kannel.conf file
>
> # CORE
> group = core
> admin-port = 13000
> admin-password = myPass
> status-password = myPass
> log-file = /var/log/kannel/kannel.log
> log-level = 0
> access-log = /var/log/kannel/access.log
> smsbox-port = 13001
> store-type = spool
> store-location = /var/spool/kannel/store
> smsbox-max-pending = 100
> #dlr-storage = mysql
> dlr-storage = internal
>
> # SMSBOX
> group = smsbox
> bearerbox-host = localhost
> bearerbox-port = 13001
> sendsms-port = 13131
> sendsms-chars = "0123456789+ "
> log-file = /var/log/kannel/smsbox.log
> log-level = 0
> access-log = /var/log/kannel/access.log
> mo-recode = true
> #immediate-sendsms-reply = true
> global-sender = 6506
>
> ## SMSC smpp1
> group = smsc
> smsc = smpp
> smsc-id = smpp1
> allowed-smsc-id = smpp1
> preferred-smsc-id = smpp1
> host = SMSC_IP
> port = SMSC_Port
> transceiver-mode = yes
> smsc-username = username
> smsc-password =  myPass
> system-type = "VMA"
> log-file = /var/log/kannel/smsc-smpp1.log
> log-level = 0
> throughput = 10
>
>
>
>
> # SENDSMS-USER
> group = sendsms-user
> default-smsc = none
> username = myUsername
> password = myPass
> max-messages = 6
> concatenation = true
>
>
> # SMS SERVICE HELP
> group = sms-service
> keyword = HELP
> text = "Text to be sent to users who send Help"
> omit-empty = true
> max-messages = 3
> concatenation = true
>
>
>
> # SMS SERVICE One
> group = sms-service
> keyword-regex = ^O$
> text = "Service one auto-reply goes here"
> omit-empty = true
> max-messages = 2
> concatenation = true
>
>
> # SMS SERVICE Two
> group = sms-service
> keyword-regex = ^B$
> text = "Service two auto reply goes here"
> omit-empty = true
> max-messages = 2
> concatenation = true
>
>
> # SMS SERVICE default
> group = sms-service
> keyword = default
> text = "Dear customer, you have sent a wrong keyword. "
> omit-empty = true
> max-messages = 2
> concatenation = true
>
>
>
>

-- 
Lic. Jean-Claude Adams
Entrepreneur
phone: +595 971 371794
skype: arrobasoft
Visit us at arrobasoft
<http://www.arrobasoft.com>