Author |
Post |
|
#1 Wed Feb 27, 2013 16:35, 145 months ago.
|
Member
Registered: Feb 2013
Location: Lidingö, Sweden
|
Hello.
I use the smstools3 a lot and it is a great, powerful and yet simple system.
I have looked for sending an USSD command to modem via Smstools3 and then retrieve the result. I can se traces of this function in the "eventhandler_ussd" directive but I can not find any other references to it.
So, what is the status for USSD-requests?
Best regards Odd Holstensson
|
|
#2 Wed Mar 13, 2013 20:54, 145 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
What kind of USSD service you are looking for? With external command files anything can be sent to the modem, and external script can parse the result. For example, see the sample Sample config and script for regular_run and balance of prepaid SIM using USSD which is probably the most popular USSD application.
|
|
#3 Thu Mar 14, 2013 03:09, 145 months ago.
|
Member
Registered: Feb 2013
Location: Lidingö, Sweden
Topic owner
|
Hello.
I will use USSD for requesting balance, and for refilling prepaids, but it can be used for other purposes also, therefore the feature request.
The script does not suits my needs, but if anyone can give me an example how to use Perl to send and recieve USSD command, I would appreciate it. Or, how to query the modem and fetch the result?
|
|
#4 Thu Mar 14, 2013 20:09, 145 months ago.
|
Administrator
Registered: May 2009
Location: Jyväskylä, Finland
|
I do not have any examples for Perl, or other external program, but as the modem port is closed when regular_run is executed, any external program can be used. If you just want to send a command to the modem and fetch the result, you probably could use the same method as sample script uses: 1) First the user script is called with argument PRE_RUN. The script writes desired command to the regular_run_cmdfile. 2) smsd will read this file and sends command to the modem. Response is stored to regular_run_statfile. 3) The user script is called again, now with argument POST_RUN. The script can read the response from the statfile. Of course this technique does not allow very sophisticated dialogue with the modem, and in those cases external modem handler is required.
|