Author Topic: SMS access denied  (Read 7502 times)

Anders

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
SMS access denied
« on: November 07, 2012, 05:12:45 pm »
Hi,

I'm trying to get our Huawei E367U modem to work with NetXMS to send SMS. I believe I've configured NetXMS correctly and the output from the NetXMS initial bootup seems to support that:

Code: [Select]
Nov  7 15:49:49 monjj01 netxmsd[31752]: Loading Generic SMS Driver (configuration: /dev/ttyUSB0,9600,8,n,1)
Nov  7 15:49:49 monjj01 netxmsd[31752]: SMS init: port={/dev/ttyUSB0}, speed=9600, data=8, parity=NONE, stop=1
Nov  7 15:49:49 monjj01 netxmsd[31752]: SMS: port opened
Nov  7 15:49:49 monjj01 netxmsd[31752]: SMS init: ATZ sent, got {#015#012^BOOT:45195587,0,0,0,99#015#012}
Nov  7 15:49:49 monjj01 netxmsd[31752]: SMS init: ATE0 sent, got {#015#012OK#015#012}
Nov  7 15:49:49 monjj01 netxmsd[31752]: SMS init: ATI3 sent, got {ATE0#015}
Nov  7 15:49:49 monjj01 netxmsd[31752]: GSM modem on /dev/ttyUSB0,9600,8,n,1 initialized successfully. Hardware ID: "ATE0".

NetXMS configuration:
Code: [Select]
SMSDriver = /usr/lib/libnxsms_generic.so
SMSDrvConfig = /dev/ttyUSB0,9600,8,n,1

(In order to rule out setting issues, I have tried using minicom with the following device settings: /dev/ttyUSB0 and 9600, 8n1 to manually send SMS and its been successfull).

But when I click on Tools -> Send SMS and enter the following data:
Phonenr: 4670XXXXXXX
Message: test test test

I get a error message stating that it: "cannot send a message to 4670XXXXXXX: access denied", please see the attached screenshot.
I've tried different combinations like +4670XXXXXXX or simply 070XXXXXXX, but everything gives me the same error message.
The user that I'm attempting to send SMS with is the default administrator user, created upon initial install of NetXMS and I've checked so that it has permissions to send SMS.

I'm clueless to what to try next, any help would be appreciated.

Regards

Anders

Victor Kirhenshtein

  • Lead Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 7140
    • View Profile
Re: SMS access denied
« Reply #1 on: November 08, 2012, 02:18:59 pm »
Hi!

You have to set server configuration's variable AllowDirectSMS to 1, otherwise server will only allow SMS sending through event processing policy.

Best regards,
Victor

Anders

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Re: SMS access denied
« Reply #2 on: November 08, 2012, 03:23:11 pm »
Thanks Victor! That solved my problem.

Hopefully this post can be useful for someone else that runs into the same problem :)