[reSIProcate-users] Invite session status
Hi all, I'm looking for helps.
I'm using 1.4.1, and sometime my UA got the assert error when I answer the invite or re-INVITE - becuase the state is not correctly,
So I've worte code to query the session state before provideOffer and provideAnswer, does these code is correctly ?
For UAS:
1:hold and un-hold call
if (sis->isAccepted() == true)
{
sis->provideOffer(sdpContent);
}
2: send ACK with SDP
if (sis->isConnected() == true)
{
sis->provideAnswer(sdpContent);
}
3: answer re-INVITE
if (sis->isConnected() == true)
{
sis->provideAnswer(sdpContent);
}
For UAC:
1: hold and un-hold
if (cis->isEarly() == false)
{
cis->provideOffer(sdpContent);
}
2: answer re-INVITE
if (cis->isEarly() == false)
{
cis->provideOffer(sdpContent);
}
Thanks