I'm not using Nokia's SIP stack so don't know how it behaves in this kind of situations, but please look into RFC 3261 (SIP: Session Initiation Protocol). There is written:
The callee's machine was successfully contacted but the user
explicitly does not wish to or cannot participate. The response MAY
indicate a better time to call in the Retry-After header field. This
status response is returned only if the client knows that no other
end point will answer the request.
The problem which ur facing happened to me in a different form.
1. I have installe the SIP plug-in
2. I have builded the Columbus(war ship) example came with the SIP plug-in(by NOKIA)
3. Then i have written my own example which registers and send's INVITE to the other emulator.
when i executed my example, i was able to register and send INITE message to the other emulator.
but on the other side of the emulator "SHARING REQUEST" dialog comes up with the folloing details.
player name: player2
you can view the screen shot at
if you accept that WARSHIP game starts automatically,
if you reject that a "603 Decline" message is sent to the other emulator.
Over all the INVITE message which i sent from one emulator is not reaching the other end(my program) but somebody is taking care of that INVITE message and displaying the SHARING REQUEST.
what i did was i have removed the WARSHIP application,
and executed the application again,
This time i am getting the "603 Decline" message as you pple are experiencing,
What i think might be the problem is the INVITE message is not given to our application.
I'm having the same issue, that being, receiving a 603 decline response from the emulator when sending an invite to my app.
Howver if I run sipclientUNinstaller and uninstall the app from the stack and then invite the app the response changes to 415 Unsupported Media type so I'm quite certain the app is installed with the stack.
I'm using a minimal sipappcapabilities.xml as well...
I also tried installing the Chipflip example (shipped with 2.0 Plugin) using this xml, only changing the UID and the app name to Chipflip. After I send invite I receive the Sharing request dialog for chipflip on the emulator. Of course the game will not work due to missing SDP info missing from sipappcapabilities.xml file.
So, what am I missing here? Has anyone been able to have the "Sharing request" dialog appear for there own app??
Thanks in advance,
Rob. (Crunch time)
But my SipAppCapabilities.xml is like this.
1) For all SIP applications do i need to have an <SIP_APPLICATION> entry in the xml file--IS IT SO?
I'm not the expert but I believe you do. Page 17 of the Series 60 Pgrommers guide.pdf states:
Also if SDP is not used, following structure for the xml can be used:
<SIP_APPLICATION UID="0F4F9AEE" ALLOW_STARTING="NO">
2)After removing the Default(Warship example) entry in the XML file, i have written my own entry(<SIP_APPLICATION> ) with minimal values but i couldn't avoid the (413 unsupported media)error message.
Here are the scenerios which I discovered:
1. 415 unsupported media type is received when the appclication has not been installed using sip sipclientinstaller OR the app has been uninstalled using sipclientuninstaller
2. 603 decline is received when the app has been installed using sipclientinstaller but the format of the sipappcapabilities.xml is incorrect. In my case I had prepended 0x to the app UID.
3. When sipappcapabilities.xml is correct and the app is registered using sipclientinstaller AND "registered" appears in the SIP settings of the emulator (registered with your own SIP server or server emulator via provider) and the app is not running in the emulator, you will receive the sharing request dialog in the emulator as a result of a SIP:INVITE for your app.
A couple of things:
1. Using the minimal sipappcapabilities.xml above, the invite message I send contains:
Thanks for your Quick reply,
Your explanation has given a clear understanding of the Error messages that occur in SIP(ofcourse i faced all of them in different situations).
Earlier, i got this "UnSupported media" Error,
but now i am getting "603 decline" error--according to you this error comes only if the SipAppCapabilities.xml file's format is wrong, here is my xml file for the SIp application.
If this file is wrong may be i may have a mistake at
1)UID -- i copied it from my mmp file (the secomd number)
2)Application Name: It is my (VC++)Project Name, and also the same name of my ".APP" file in the z:\system\apps\ directory.
so thses 2 data are correct.
3)SIPClientInstaller: After changing the XML file i have executed the SipClientInstaller.exe(of wins/udeb directory), then a blank emulator screen comes and then disappears after some time.i guess this is what happens when you execute the sipclientinstaller.exe
where can i find more info about SipClientInstaller.exe
(earlier i got the game sharing dialog,
->but i have removed the warship application and now i got the UnSupported media errors
->After i came to know about SipClientInstaller, i used it and now i am having this decline error)
->how do you register an application using SipClientInstaller, i know only to execute it onve you the XML file.
->My SIp profile is showing as "Registered" as it's status in SIP settings.
i guess everythign except the SIP XML file is correct.
Sorry friends, finally the SIP example is working,
the mistake i did was the order in which i executed the SipClientInstaller.exe and SipClientUninstaller.exe.
the way we should do is.
1) First after making sure that Warship game is working.
2)Execute the SipClientUnInstaller.exe
3)Change the contents of the SipAppCapabilities.xml file with the following format, i mean this is a format for a simple SIP app with no other capabilities.
changing the contents means -- replace the existing data,
if you have 2 SIP_APPLICATION tags in a single xml file, the SipAppClientInstaller.exe panics.