1753861 Members
7442 Online
108809 Solutions
New Discussion юеВ

Re: wrong return value.

 
astra
Frequent Advisor

wrong return value.

hi,

I am using M3UA_oamcmd API for creating network.

//Sample.c
int subCnxId;
M3uaCmdParms data;
M3uaOamAddress address;

/* Fill the configuration structure */
address[0] = 0 ;
data.network.ni = 2 ;
data.network.variant = 1 ;

subCnxId = 1;

if (M3UA_oamcmd (cnxId,
subCnxId,
0,
0,
nwk,
address,
M3UA_create,
&data
) == -1 )
{
printf("ss7errno %d %s\n",
ss7errno,
ss7errno_print(ss7errno));
exit(-1);
}

but when I am running it is giving ss7error:22
means
[EAPIBUSY] A manual or automatic switchover is in progress. Retry the call later.

Could you tell me why it is happening.
Or I have to set some value before creating connection.

TIA
-Amit
3 REPLIES 3
Hein van den Heuvel
Honored Contributor

Re: wrong return value.

hmm,
I don't see nwk declared ( and M3uaOamObject ?)
Is that a simple int (passed by value)
Or a structure (passed by address)

fwiw,
Hein
astra
Frequent Advisor

Re: wrong return value.

Hi,

here command is "M3UA_create" and Object could be { nwk, sg, sgp, ipsp, ss7dpc, local_as,remote_as, lpc } so I just set the value of
M3uaOamObject object;
object = nwk;
In my case I directly pass.

Now let me know about your opinion about that error ?

Thanks in advance.
-Amit

Hein van den Heuvel
Honored Contributor

Re: wrong return value.

My opinion about that error is that the call is made at a wrong time, or with the wrong parameters.
This is based on nothing more, and nothing less, than your prior link question.

How 'new' is this code? Has it ever worked?
Has something similar ever worked for you?
What part is new / different?
What elements that you pass can you investigate for correctness, perhpas through an inquiry call?

Good luck!
Hein/