static int smsc_connect () { m3ua_asp *asp_node = (m3ua_asp *) malloc (sizeof (m3ua_asp)); if (!asp_node) return MALLOC_FAILURE; memset (asp_node, 0, sizeof (m3ua_asp)); m3ua_init (asp_node, "./config/smsc_rear.ini"); local_asp_node = asp_node; m3ua_as *as_node = NULL; as_node = (m3ua_as *) malloc (sizeof (m3ua_as)); if (!as_node) return MALLOC_FAILURE; m3ua_as_config (as_node, "./config/smsc_rear.ini"); as_node->parent = asp_node; m3ua_handshake (as_node); /* do handshake and initialize it to use */ /* has to be blocking */ local_as = as_node; /* *register the attributes, * store them to be used *by other entities, */ register_route (as_node); m3ua_do_audit (as_node); return SUCCESS; }
m3_s32 um3_m3ua_init(void) { m3_s32 ret; ret = m3ua_init(); return ret; }