Hello all.
I have the following problem: When I'm trying to retreive the custom table from my SNMP agent the NULL is returned.
The code:
static int show_dgw_proto_sip_table(scli_interp_t *interp, int argc, char **argv) { sss_dgw_mib_sipProxyTableEntry_t **table=NULL; g_return_val_if_fail(interp, SCLI_ERROR);
if (argc != 2) return SCLI_SYNTAX; if (scli_interp_dry(interp)) return SCLI_OK;
sss_dgw_mib_get_protocolSIPProxyTable(interp->peer, &table, 0); if (interp->peer->error_status) return SCLI_SNMP; ....
After this step I have no errors, but the table is NULL
Any suggestions?
Best regards, Ruslan.
Additional information: scli version: current glib version: 2.16.3 gnet version: 2.0.8 gsnmp version: 0.2.0 smidump version: 0.4.8 (But I've compared the generated source with included in scli and I'm sure, the differences are not the case)
snort dump for request and agent responce is attached. The table definition from MIB (Base OID for the table is: 1.3.6.1.4.1.20379.2.1.3.2.3):
protocolSIPProxyTable OBJECT-TYPE SYNTAX SEQUENCE OF SIPProxyTableEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "" ::= { protocolSIP 3 }
sipProxyTableEntry OBJECT-TYPE SYNTAX SIPProxyTableEntry MAX-ACCESS not-accessible STATUS current DESCRIPTION "" INDEX { sipProxyTableIndex } ::= { protocolSIPProxyTable 1}
SIPProxyTableEntry ::= SEQUENCE { sipProxyTableIndex INTEGER, sipProxyTableSynch INTEGER, sipProxyTableName OCTET STRING, sipProxyTableOutAddr IpAddress, sipProxyTableAlwaysOut INTEGER, sipProxyTableUserName OCTET STRING, sipProxyTablePassword OCTET STRING, sipProxyTableSubstitute OCTET STRING, sipProxyTableRegister INTEGER, sipProxyTableRegistrator OCTET STRING, sipProxyTableRegistratorIP IpAddress, sipProxyTableUsersList OCTET STRING, sipProxyTableReregisterInterval INTEGER, sipProxyTableCallerDomain OCTET STRING, sipProxyTableCalledDomain OCTET STRING, sipProxyTableSubstituteFrom OCTET STRING, sipProxyTableSubstituteIp IpAddress, sipProxyTableFastStart INTEGER }