Hello All,
Can anyone please direct me towards how to receive a SIP invitation. What are the steps that i have to Follow
So far i have done the following things.
1.>1.>Created a class which Derives from MSIPObserver and MSIPConnectionObserver
2.> have overridden all the methods that are present in the these interfaces and each method contains a message box which will be displayed if anything come to them.(as far as i think)
3.> Created the following register Method which registers to my Local 'Asterisk' server.
Now, I am running a SIP phone (X-LITE) which is registered with the same server. And i am sending a Invite to my Emulator. But i am not able to receive anything.Code:TUint iapoint=SelectIAPL(); iSIP=CSIP::NewL(KAppUid, *this); iConnection=CSIPConnection::NewL(*iSIP, iapoint, *this); CSIPFromHeader* fromHead = CSIPFromHeader::DecodeL(_L8("sip:3000@127.0.0.1")); CleanupStack::PushL(fromHead); CSIPToHeader* aor=CSIPToHeader::DecodeL(_L8("sip:3000@127.0.0.1")); CleanupStack::PushL(aor); CSIPAddress* addr=CSIPAddress::DecodeL(_L8("sip:3000@127.0.0.1")); CleanupStack::PushL(addr); CSIPContactHeader* contact=CSIPContactHeader::NewL(addr); CleanupStack::Pop(addr); CleanupStack::PushL(contact); CSIPRefresh* refresh=CSIPRefresh::NewLC(); iRegistration=CSIPRegistrationBinding::NewL(*iConnection, aor, contact,refresh); CleanupStack::Pop(3); //aor,contact,refresh iRegistrationTx=iRegistration->RegisterL(); }
Also,I am not too sure weather or not i understand SIPResolverPlugin and how is it used . Is is really important to include it in the program.
many thanks



