Using Global Macro Variables in action SMS send

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Malgorzata
Posts: 6
Joined: Mon Aug 14, 2006 5:41 am

Using Global Macro Variables in action SMS send

Post by Malgorzata »

Hi!

Recently I have installed new version of HostMonitor 6.10 I try to use my defined Global Macro Variables as a destination phone number in action Send sms, but a get modem error every time. When I use phone number directly everything is ok and sms is send.
I use the same Global Macro Variable as a destination phone numer to send sms by SMSGateway - Execute external program option. And it's working.

Could you help me with this problem.

Regards,
Margaret
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: Using Global Macro Variables in action SMS send

Post by KS-Soft Europe »

Malgorzata wrote:Recently I have installed new version of HostMonitor 6.10 I try to use my defined Global Macro Variables as a destination phone number in action Send sms, but a get modem error every time.
What exact Error do you get? Do you see the phone number in error string?
Malgorzata wrote:Could you help me with this problem.
I could not reproduce such problem. I have defined global variable like:
udv_sms_number in Profiles > Global Macro Variables window and have specified %udv_sms_number% as "Dest. number" in action Properties window. Everithing works fine.
Here is action properties:

Code: Select all

Action: Send SMS
Phone     : %udv_sms_number%
Msg class : 2
Message   : Mail to customer
Start after: 1 consecutive "good" result(s)
Retries: until status changes
Regards,
Max
Malgorzata
Posts: 6
Joined: Mon Aug 14, 2006 5:41 am

Re: Using Global Macro Variables in action SMS send

Post by Malgorzata »

This is the error which I get:

Code: Select all

Sending...
Com port open .. Ok
GSM modem initialization .. Ok
Error: Cannot send message to %udv_t_gs%. GSM modem error.
Com port close .. Ok
GSM modem deinitialization .. Ok
Where %udv_t_gs% is my macro variables defined in Profiles -> Global Defined Variables.
Everything looks like in yours but it does not work.

Regards,
Margaret
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: Using Global Macro Variables in action SMS send

Post by KS-Soft Europe »

Strange. There is new version of KSGsmXLib.ocx. http://www.ks-soft.net/download/ksgsmxlib.zip
Could you try it? Note: you should stop HostMonitor service or exit from aplication before update.

Regards,
Max
Malgorzata
Posts: 6
Joined: Mon Aug 14, 2006 5:41 am

Re: Using Global Macro Variables in action SMS send

Post by Malgorzata »

KS-Soft Europe wrote:Strange. There is new version of KSGsmXLib.ocx. http://www.ks-soft.net/download/ksgsmxlib.zip
Could you try it? Note: you should stop HostMonitor service or exit from aplication before update.

Regards,
Max
After update I got different error, enclosed below:

Code: Select all

Sending...
Com port open .. Ok
GSM modem initialization .. Ok
Error: Cannot send message to %udv_t_gs%. GSM modem error. +CMS ERROR: 500 "Unknown error" was returned on AT command: AT+CMGS=25>0001000D81F5746FF575FFF500F00CD4F29C0E6A97E7F3F0B90C
Com port close .. Ok
GSM modem deinitialization .. Ok
Regards,
Margaret
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: Using Global Macro Variables in action SMS send

Post by KS-Soft Europe »

I assume, you are trying to send SMS message using SMS test window (Test button)? In such case Global defined variables really do not work. But it works, when you specify such variable into Dest. phone field in Action Properties window.

You may specify particular log file for SMS action (Options > GSM tab > Log File field) and you may control SMS sending using that log file.

Regards,
Max
Malgorzata
Posts: 6
Joined: Mon Aug 14, 2006 5:41 am

Re: Using Global Macro Variables in action SMS send

Post by Malgorzata »

KS-Soft Europe wrote:I assume, you are trying to send SMS message using SMS test window (Test button)? In such case Global defined variables really do not work. But it works, when you specify such variable into Dest. phone field in Action Properties window.

You may specify particular log file for SMS action (Options > GSM tab > Log File field) and you may control SMS sending using that log file.

Regards,
Max
Yes, I try to send SMS by test button. When I specify such variable into Dest. phone field in Action Properties window it work fine. Thank You very very much for your help and time.

Regards,
Margaret
Post Reply