sms_client - Cannot send sms with my GSM Modem
Hello
I Want to send a sms alert which use in nagios. But, when i try to send sms from "sms_client", I got the error message. Here is what was i do host:/etc/sms # sms_client mynumber "Test" And here is the error messages : Dialing SMSC 0855xxxxxx... WARNING: read() Timeout WARNING: read() Timeout ERROR: Timeout: searching for +<CR><LF>+ failed after 10 seconds ERROR: MODEM: Setting Local echo Failed Total Elapsed Time: 16 Seconds and here is configuration in "sms_modem" file ; [SIZE="3"][SIZE="2"][SIZE="1"]# -------------------------------------------------------------------- # SMS Modem Configuration file # -------------------------------------------------------------------- { # ------------------------------------------------------------ MDM_lock_dir = "/var/lock" # Lock directory # MDM_device = "modem" # Modem Device Name # MDM_device = "ttyS0" # Modem Device Name Examples: # # MDM_device = "term/00m" # UNIXWARE MDM_device = "ttyS0" # Linux COM1 # MDM_device = "ttyS1" # Linux COM2 # # MDM_device = "cua/a" # SOLARIS # MDM_lock_platform = "SOLARIS" # Set this so that we generate # Solaris compatible lock file # names # ------------------------------------------------------------ # MDM_pause_after_connect = 3000000# Pause after the connection # string for 3 seconds # MDM_pause_on_DELAYED = 60 # Pause when dial fails with # DELAYED condition, in secs. # ------------------------------------------------------------ MDM_command_prefix = "AT" # MDM_init_command = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" MDM_init_command = "Z" MDM_dial_command = "DT" # Default unmark MDM_number_prefix = "" # Number to dial to get an # external line. MDM_set_local_echo_off = "E0" MDM_disable_echo_test = NO # Test and Set local echo # YES/NO # ------------------------------------------------------------ MDM_dtr_hangup_sleep = 3000000 # How many microseconds should MDM_dtr_init_sleep = 1000000 # I lower DTR during # init/hangup # MDM_max_rings = 7 # default = 4 # ------------------------------------------------------------ MDM_command_suffix = "\r" MDM_response_prefix = "\r\n" MDM_response_suffix = "\r\n" # ------------------------------------------------------------ MDM_flow_control = "Hardware" # Software or Hardware # ------------------------------------------------------------ MDM_hangup_command = "H" # Default unmark # MDM_hangup_command = "H0" # MDM_attention_command = "+++" MDM_soft_hangup_retries = 0 # Number of times I should # continue sending hangup code # If 0 then don't bother # and rely on lowering DTR MDM_guard_time = 1750000 # Microsecond delay before and # After transmitting # attention command MDM_esc_time = 125000 # Microsecond delay between each # character of the attention command # ------------------------------------------------------------ MDM_lock_action = "BLOCK" MDM_lock_retry_delay = 5000000 # Microsecond delay to wait before # retrying for modem lock. } # -------------------------------------------------------------------- I use Wavecom Fastrack wm20392 as my GSM Modem with serial cable connectivity. Can someone help me solving this problem ? |
All times are GMT -5. The time now is 01:11 AM. |