×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 19
  1. #1
    Registered User
    Join Date
    May 2004
    Posts
    7

    AHHHHHHHHHH....SIP decline

    hello!there

    i have a problem with sending "invite" message for ages
    but i still can't get it out till now

    actually the callee can receive my message
    but it sends "decline" message right away
    i feel very confused.... can somebody help me out?

    this is the decline content

    [0x0310 21:12:14] SipUdpHandle: 5048472 SendMessage: sending datagram:
    INVITE sip:player2@140.115.228.30 SIP/2.0
    Via: SIP/2.0/UDP 140.115.228.32;branch=z9hG4bKeb8f53d45a53aa3ef99e5a67dfe4a3c7
    Route: <sip:140.115.228.32;lr>
    Via: SIP/2.0/UDP 140.115.228.31:5060;branch=z9hG4bKd31XF2D1SIFny
    From: <sip:player1@realm>;tag=PRxXFflqhs
    To: <sip:player2@realm>
    Contact: <sip:player1@140.115.228.31;comp=sigcomp>
    Supported: sec-agree
    CSeq: 8057 INVITE
    Call-ID: yQ1XF9STHYCacMjaNAkgPnrN1rJ4dO
    Max-Forwards: 69
    Content-Length: 0

    [0x0310 21:12:14] SipUdpHandle: 5048472 SendMessage: sending datagram:
    SIP/2.0 100 Trying
    Via: SIP/2.0/UDP 140.115.228.31:5060;branch=z9hG4bKd31XF2D1SIFny
    To: <sip:player2@realm>
    From: <sip:player1@realm>;tag=PRxXFflqhs
    Call-ID: yQ1XF9STHYCacMjaNAkgPnrN1rJ4dO
    CSeq: 8057 INVITE
    Content-Length: 0

    [0x0310 21:12:14] SipHandleManagerImpl: 4980808 ProcessUdpEvent: received datagram:
    SIP/2.0 603 Decline
    Via: SIP/2.0/UDP 140.115.228.32;branch=z9hG4bKeb8f53d45a53aa3ef99e5a67dfe4a3c7,SIP/2.0/UDP 140.115.228.31:5060;branch=z9hG4bKd31XF2D1SIFny
    To: sip:player2@realm;tag=ZkajL5A78s
    From: sip:player1@realm;tag=PRxXFflqhs
    Call-ID: yQ1XF9STHYCacMjaNAkgPnrN1rJ4dO
    CSeq: 8057 INVITE
    Content-Length: 0

    this is the SipAppCapabilities.xml file
    - <SIP_APPLICATION UID="101FBF71" ALLOW_STARTING="YES">
    - <SIP_HEADERS>
    <ACCEPT value="application/sdp" />
    <ACCEPT value="" />
    </SIP_HEADERS>
    - <SDP_LINES>
    <LINE name="m" value="application 1025 tcp Chipflip" />
    </SDP_LINES>
    </SIP_APPLICATION>

    because i didn't use SDP so i think it might work with this line
    <ACCEPT value="" />

    well but it still doesn't work /_\
    can anyone help me out? or just tell me where could probably find the solution? thanks a billion!!!!!!!!!

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    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:

    603 Decline

    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.

  3. #3
    Registered User
    Join Date
    Dec 2004
    Posts
    8

    Hello UKELADY

    Hi UKELADY,
    i am also getting the same kinda problem. I want to know wheather u rectified the issue.A lso which SIP stack are u using. is it Series60 SIP-Plug in?

    In my case i am able to REGISTER the both Phones(Emulators) to the SIP stack.

    While sending the INVITE the same error which u got is arising
    and almost the same log which u put here is getting printed.
    Thank in Advace..

    Val kilmer..

  4. #4
    Regular Contributor
    Join Date
    Oct 2004
    Location
    India
    Posts
    138

    This is strange

    Hi,
    I use Series60 sdk2.0 sip plug-in v 1.0

    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
    application: Warship
    you can view the screen shot at

    http://www.geocities.com/ruchaitu/SIPSharedialog.JPG

    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.

  5. #5
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    > What i think might be the problem is the INVITE message is not given to our application.

    Yeah, it is very likely...

    Please, search the forum for SipAppCapabilities.xml and ClientInstaller.

  6. #6
    Registered User
    Join Date
    Nov 2004
    Posts
    38

    App IS installed - Same problem though

    Hello,

    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...

    <SIP_APPLICATION UID="0x096F56F0" ALLOW_STARTING="YES">
    <SIP_HEADERS>
    <ACCEPT value="application/myapp"/>
    <ACCEPT value=""/>
    </SIP_HEADERS>
    </SIP_APPLICATION>

    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)

  7. #7
    Regular Contributor
    Join Date
    Oct 2004
    Location
    India
    Posts
    138

    But my SipAppCapabilities.xml is like this.

    <SIP_APPLICATION UID="101FBF6F" ALLOW_STARTING="YES">
    <SIP_HEADERS>
    <ACCEPT value="application/sdp"/>
    <ACCEPT value=""/>
    </SIP_HEADERS>
    <SDP_LINES>
    <LINE name="m" value="application 1025 tcp Warship"/>
    </SDP_LINES>
    </SIP_APPLICATION>

    does this have any effect the way the entire SIP works,
    Searching the forum for "SipAppcapabilities.xml" or "ClinentInstaller" has no effect

    -chaitu

  8. #8
    Registered User
    Join Date
    Nov 2004
    Posts
    38

    Works now

    Do not prepend the App UID with 0x.

    Rob.

  9. #9
    Regular Contributor
    Join Date
    Oct 2004
    Location
    India
    Posts
    138

    It's not working

    Rob, your solution didn't worked with me, i still have the problem. i have a few qstns towards the SipAppCapabilities.xml.

    1) For all SIP applications do i need to have an <SIP_APPLICATION> entry in the xml file--IS IT SO?

    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.

    -chaitu

  10. #10
    Registered User
    Join Date
    Nov 2004
    Posts
    38

    Hope this helps

    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">
    <SIP_HEADERS>
    <ACCEPT value="application/SIPExample"/>
    <ACCEPT value=""/>
    </SIP_HEADERS>
    </SIP_APPLICATION>


    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:

    Content-Type: application/SIPExample
    Content-Length: 0

    2. Besure you use the correct versions of sipclientinstaller and sipclientuninstaller when installing your sipappcapabilities.xml file. There are two versions:

    For emulator:

    \Epoc32\release\wins\udeb

    For terminal:

    \Epoc32\release\thumb\urel

    Hope this helps,
    Rob.

  11. #11
    Regular Contributor
    Join Date
    Oct 2004
    Location
    India
    Posts
    138

    thaks rob

    Rob,
    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.

    <SIP_APPLICATION UID="0DF9837E" ALLOW_STARTING="NO">
    <SIP_HEADERS>
    <ACCEPT value="application/SIPEX"/>
    <ACCEPT value=""/>
    </SIP_HEADERS>
    </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
    -chaitu

    (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.

  12. #12
    Registered User
    Join Date
    Nov 2004
    Posts
    38

    Just a guess

    I would assume that you want ALLOW_STARTING="YES" rather than "NO".

    Rob.

  13. #13
    Regular Contributor
    Join Date
    Oct 2004
    Location
    India
    Posts
    138

    No!

    No it didn't work, i think there may e a problem with the SipClientInstaller or some other thing.
    thanks for your try.

  14. #14
    Regular Contributor
    Join Date
    Oct 2004
    Location
    India
    Posts
    138

    it is working.mistake was with me.

    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.

    <SIP_APPLICATION UID="0DF9837E" ALLOW_STARTING="NO">
    <SIP_HEADERS>
    <ACCEPT value="application/SIPEX"/>
    <ACCEPT value=""/>
    </SIP_HEADERS>
    </SIP_APPLICATION>

    3) After changing the contents execute the SipClientInstaller.exe
    4) Now do the same for the B copy of SDK.

    Now execute the application, it will work fine in sending and recieving SIP requests.

    The mistake which i did all these days is that I had never executed the SipClientInstaller.exe and SipClientUnInstaller.exe in the correct order.

    Sorry friends for bugging you all these days.

    -chaitu

  15. #15
    Registered User
    Join Date
    May 2003
    Posts
    187

    SIP Decline

    Hi,

    I did the same thing on 6600 but I'm still getting the decline message?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •