Author Message
IrwantoMursetiono
Joined: Oct 30, 2005
Messages: 0
Offline
I have tried to use sms_test.php but the response was always "Fault: Connection Failed:"

AES 4.0 IP Addr : 192.168.0.253
CM 4.0 IP Addr : 10.35.65.27

I have successfully login to CM directly from AES console using "telnet 10.35.65.27 5023", using login "aes" and password "aes123"

This is my saw.ini :
------------------------------------
[ACP]
Name=
ProxyHost=localhost
ProxyPort=4001
ProxyPortRange=16
CMHost=10.35.65.27
CMPort=5023
ProxyFile=proxyhost
ProxyOptions=-n -T
OSSI_ResponseTimeout=10
------------------------------------

This is error_log file :
------------------------------------
PHP_DEBUG: Thu Jun 26 15:13:59 2008: SOAP_WebService instantiated
PHP_DEBUG: Thu Jun 26 15:13:59 2008: Station Model CTOR
PHP_DEBUG: Thu Jun 26 15:13:59 2008: Constructing model
PHP_DEBUG: Thu Jun 26 15:13:59 2008: Enabling 'list' model features
PHP_DEBUG: Thu Jun 26 15:13:59 2008: Establishing OSSI connector
PHP_INFO: Thu Jun 26 15:13:59 2008: station model acquiring read-only connection
PHP_DEBUG: Thu Jun 26 15:13:59 2008: Connecting to proxy for host 10.35.65.27:5023 at localhost:4001
PHP_DEBUG: Thu Jun 26 15:13:59 2008: Sending to proxy: r9f52b0a7d3e767e9e17c63a827278cd7SMS\taes\t******\t\t10.35.65.27\t5023
PHP_DEBUG: Thu Jun 26 15:13:59 2008: Waiting for connector handshaking response
PHP_WARNING: Thu Jun 26 15:14:09 2008: Socket read timed out
PHP_DEBUG: Thu Jun 26 15:14:09 2008: Closing Socket Connection to ossicm
PHP_DEBUG: Thu Jun 26 15:14:09 2008: Response Received:
PHP_DEBUG: Thu Jun 26 15:14:09 2008: Closing Socket
PHP_DEBUG: Thu Jun 26 15:14:09 2008: PHP Notice/Warning (2): fclose(): supplied argument is not a valid stream resource in /opt/mvap/web/sms/include/OSSIConnector.class.php at line 282.
PHP_DEBUG: Thu Jun 26 15:14:09 2008: OSSI Connector Failed with params: array (\n 'Host' => 'localhost',\n 'Port' => '4001',\n 'Login' => 'aes',\n 'Writable' => false,\n 'SocketFailure' => NULL,\n 'OSSIFailure' => false,\n 'LogonRequired' => false,\n 'ServerStatus' => 'active',\n)
PHP_ERR: Thu Jun 26 15:14:09 2008: Connection could not be established for list station operation.
PHP_DEBUG: Thu Jun 26 15:14:10 2008: ==========> OSSIConnector::dtor() invoked; disconnecting
------------------------------------

Thank you for your help.
JohnBiggs
Joined: Jun 20, 2005
Messages: 1141
Location: Rural, Virginia
Offline
have you tried any command other than 'list station' The list commands frequently time out because CM takes 'too long' to create the list and AES gets tired of waiting. Start with something simpler like 'display station xxxx'. And see if you get the same results (BTW.. I commend you on the completeness of the information you provided).l

INnorder to get the list commands to not time out you (the application) will need to utilize the "count" attribute to limit the amount of returned data from CM. Search the usage.doc documenation contained in the SMS SDK for more details on the subject of the requests timing out. the 'start' attribute provides a starting point for the list command. The SMS Web Portal list station sample application provides an example of this from a coding perspective.

John
IrwantoMursetiono
Joined: Oct 30, 2005
Messages: 0
Offline
Yes, now its works! :)
Thank you for your solution.
Go to:   
Mobile view