| SMS Gateway · Registration Requirement |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| naderamer101 |
Posted: Jul 16 2009, 01:43 PM
|
|
Member ![]() ![]() Group: Members Posts: 10 Member No.: 1806 Joined: 9-June 09 |
Dear Admin,
I Am configuring SNMP2SMS Add-on. after installation of the add-on, I changed the parameter & I used the test button under settings & message is delivered successfully but whenever I try to test it by sending a real SNMP Trap, the SMS doesn't reach the LogLog table & the following error is logged under activity log: "SMS 007 - Message queue failure. Empty mobile number." I tried to assign to N a direct mobile number (N=0097150xxxxxx) or a variable (N={Community}) after creating the correspondant phonebook contact. in my case, {Community} will be equal to server so I created server in the phonebbok with a phone number assigned to it but in both case i am getting the same error. could you help please? Thanks |
| admin |
Posted: Jul 17 2009, 05:17 AM
|
|
Administrator ![]() ![]() ![]() Group: Admin Posts: 1071 Member No.: 1 Joined: 5-May 03 |
Could you please post the exact command you are using and snmp2sms logs? Thank you.
-------------------- |
| naderamer101 |
Posted: Jul 17 2009, 09:13 AM
|
|
Member ![]() ![]() Group: Members Posts: 10 Member No.: 1806 Joined: 9-June 09 |
Dear Admin,
here is the Command: cmd.exe /c c:\inetpub\wwwroot\cgi-bin\cmd\CSendCmd.exe Mode=SendSMS;M="Trap Rcvd! {DateTime}\nSource:{SourceAddress}\nEnterprise:SquareOne\nCommunity:{Community}\nDeviceName:{DeviceName}\nGenericTrap:{GenericTrap}\nSpecificTrap:{SpecificTrap}\nDeviceDescription:{DeviceDescription}\nDeviceLocation:{DeviceLocation}\nDeviceUpTime:{DeviceUpTime}\nVariableBindings:\n{VariableBindings}";N=0097150560270;Commmethod=SMPP-1; & here is the Log: 7/17/2009 12:49:13 PM Trap received from 192.168.1.2. 7/17/2009 12:49:13 PM Execute command: cmd.exe /c c:\inetpub\wwwroot\cgi-bin\cmd\CSendCmd.exe Mode=SendSMS;M="Trap Rcvd! 7/17/2009 12:49:13 PM\nSource:192.168.1.2\nEnterprise:SquareOne\nCommunity:Sophos\nDeviceName:{DeviceName}\nGenericTrap:6\nSpecificTrap:3\nDeviceDescription:{DeviceDescription}\nDeviceLocation:{DeviceLocation}\nDeviceUpTime:0\nVariableBindings:\n.iso.org.dod.internet.private.enterprises.2604.2.1.1.2.1.3=File \Device\HarddiskVolume2\VMWARE VPCs\Visual GSM\Windows 2003 Server-DC\Windows Server 2003 Standard Edition.vmdk not checked. Files larger than 4GB are not supported by on-access scanning. \n.iso.org.dod.internet.private.enterprises.2604.2.1.1.2.2.2=7.6.9\n";N=0097150560270;Commmethod=SMPP-1; Command output: SMS 007 - Message queue failure. Empty mobile number. Note: This message can be customized under Manager->Console| "HTTP2SMS Return Message" tab. |
| admin |
Posted: Jul 17 2009, 09:42 AM
|
|
Administrator ![]() ![]() ![]() Group: Admin Posts: 1071 Member No.: 1 Joined: 5-May 03 |
Thanks. Could you please check if there's a carriage return or line break within the contents of the variables passed to commandline?
Please try moving ';N=xxxxxx;Commmethod=xxxx' to the front, e.g. cmd.exe /c c:\inetpub\wwwroot\cgi-bin\cmd\CSendCmd.exe Mode=SendSMS;;N=0097150560270;Commmethod=SMPP-1;M="Trap Rcvd! {DateTime}\nSource:{SourceAddress}\nEnterprise:SquareOne\nCommunity:{Community}\nDeviceName:{DeviceName}\nGenericTrap:{GenericTrap}\nSpecificTrap:{SpecificTrap}\nDeviceDescription:{DeviceDescription}\nDeviceLocation:{DeviceLocation}\nDeviceUpTime:{DeviceUpTime}\nVariableBindings:\n{VariableBindings}" -------------------- |
![]() |
![]() ![]() ![]() |