Support forum

Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
Sending USSD
sp_NewPost Add Reply sp_NewTopic Add Topic
April 11, 2016
3:59 pm
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Pedro,

As far as I can determine, you can send multiple USSD messages after each other to simulate a menu selection with USSD, in your example this would be:
USSD message 1: *100#
USSD message 2: 5
USSD message 3: 2
etc...

There is a certain timeout value for a USSD session so you have to send the messages within a specific time and in the right order. There might also be a delay needed between the USSD messages but that is something you should test.

Unfortunately, I am not able to test it out because I am not aware of any mobile operators in The Netherlands that use services with USSD menus.

Regards, Henk

April 10, 2016
9:33 am
Pedro
Guest
Guests

Hello Henk Helmantel

I wonder, is that possible to do a USSD interaction using Diafaan?

Imagine, i have to type *100#, then when *100# replies i've to put 5, and the 2, etc etc... for most cases networks don't accept to type *100*5*2...#

What should be the best aproach?

January 25, 2016
8:42 pm
Pedro
Guest
Guests

Thank you very Much... It worked like a charm

January 25, 2016
9:21 am
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Pedro,

If you have set the MessageType field of the database record for the message to 'gsm.ussd' but Diafaan SMS Server still tries to send the message as a normal SMS message then it is likely that the SQL Connector does not read the MessageType fields of the database records.

Check this to make sure that the SQL Connector will use the MessageType database field:

- Open the SQL Connector settings
- Select 'Advanced'
- Check if the 'SMSOutMessageType' is set to 'MessageType'

Regards, Henk

January 25, 2016
8:28 am
Pedro
Guest
Guests

Hello
I'd like to know if is it possible to send USSD messages by inserting data into the table messageout?

I tried but i don't get the USSD response message into Messagein table.

When i use the send tab it works perfecly... but when i insert a row into the database it does not work

Thanks

October 13, 2015
2:51 pm
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Gonzales,

I am not sure what you mean with this question, in my answer to Luis I gave a description on how to send a USSD message in Diafaan SMS Server:

You can send a USSD command by sending an empty message with the USSD code as the destination number and with message type 'gsm.ussd'. You can do this from the 'Send message' page of the GSM Modem Gateway in the console program or with a message from one of the connectors.

The USSD response, if there is any, is returned as a received SMS message with message type 'gsm.ussd'.

Can you let me know what additional information you require?

Regards, Henk

October 13, 2015
1:04 pm
Gonzalo
Guest
Guests

Hello Henk I´m Gonzalo.

I read all your posts, but don´t see how can i do to response this ussd message.

March 28, 2014
9:17 am
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

There is missing line in the skeleton script of the Scripting Connector in Diafaan SMS Server 2.1.1.0 and lower that causes the message type to be ignored. You can solve this in the script by adding the line:

messagePacket.Add("MessageType", messageType);

to the PostSendMessage function in the script.

If you add a new Scripting Connector in Diafaan SMS Server 2.1.2.0 or higher, it generates a skeleton script with the correct PostSendMessage function. Older scripts are left intact after an upgrade so if you need to change the message type in an old script, you need to add the missing line to the PostSendMessage function.

Regards, Henk

March 27, 2014
8:33 pm
Luis
Guest
Guests

Hi Henk,

Got the URL working, now I am having problem with the Scripting connector I am trying

in C#

PostSendMessage("*760*1*62343485*123*1234#", "", "", "gsm.ussd", "", "", "", 0);

and get this message

300, Error: Invalid sms number: 760*1*62343485*123*1234#.

March 25, 2014
9:36 pm
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

If you change 'messagetype' in the URI to 'message-type' it should work.

Regards, Henk

March 25, 2014
9:09 pm
Luis
Guest
Guests

Hi Henk,

I got to send a ussd message from the 'Send message' tab on the gateway but when I try to send through a URL using the web connector it gives me error 300, error invalid number.

this is the URL and sending

http://172.28.4.30:9700/http/send-message?username=admin&password=pass&to=%2A%2A760%2A1%2A123%2A62446999%2A1234%23&
messagetype=gsm.ussd&message=

I am using %2A for the asterisks and %23 for the number sign at the end of the command also using gsm.ussd as message type.

is there anything else I should be looking at?

Thank you for your help

Luis Villar

March 20, 2014
9:22 pm
Luis
Guest
Guests

Thank you so much Henk.

March 20, 2014
7:12 pm
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Luis,

You can send a USSD command by sending an empty message with the USSD code as the destination number and with message type 'gsm.ussd'. You can do this from the 'Send message' page of the GSM Modem Gateway in the console program or with a message from one of the connectors.

The USSD response, if there is any, is returned as a received SMS message with message type 'gsm.ussd'.

Regards, Henk

March 20, 2014
6:05 pm
Luis
Guest
Guests

Hi Henk,

We are using a 8 por modem pool that has worked like a charm sending and receiving SMS messages. My question es is if I can also send USSD commands and receive the USSED response over the diafaan server.

Thank you.

Luis Villar

Henk I Just noticed a wrote messgetype instead of message-type. this fixed my problem

thank you

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 672

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1141

Posts: 3899

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1488