×

Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Regular Contributor
    Join Date
    Jul 2005
    Posts
    95

    Incomplete INVITE header shows up in SIP Emulator when sending INVITE

    Hi ,

    I am using the Series 60 2nd Editon FP2 SDK and have downloaded and installed the SIP Plugin V4.0 which is meant for Series 60 2nd Edition FP2 . The ChipFlip example works so I know that my SIP environment is set up properly.
    I have written a small program that just registers itself and can send an INVITE.
    However when my application sends an INVITE I get a 415 Unsupported Media Type Error.
    Now, I am using the ECOM Plugin to register my app capabilities.
    I have simply used the Example Plugin that ships with the SDK and only made the following two changes before I built it.
    I have set the default_data field to the UID I pass to CSIP::NewL() which is the UID3 of my app.
    Also, I have set the opaque_data field as follows :

    Code:
     opaque_data = "<SIP_CLIENT ALLOW_STARTING=\"YES\"><SIP_HEADERS><ACCEPT value=\"application/sdp\"/></SIP_HEADERS><SDP_LINES><LINE name=\"m\" value=\"application 1025 tcp MyAppName\"/></SDP_LINES></SIP_CLIENT>";
    I am using 1025 for the port number in the opaque_data field.I dont know whats the purpose of this number . Can this be any random number ?. I am using 1025 because the ChipFlip example that works is using the same.

    Now, I run the same copy of my app at the same time on two emulators each of which is using a different ip address.
    Each copy registers successfully but when I try to send an Invite from one copy to the other I get 415 Unsupported Media Type.
    I have noticed the following :
    The INVITE header of the ChipFlip example that works is as follows :

    Code:
    [0x0828 11:43:17] SipHandleManagerImpl: 4653128 ProcessUdpEvent: received datagram:
    INVITE sip:player2@realm SIP/2.0
    Route: <sip:10.0.0.237;lr>
    Via: SIP/2.0/UDP 10.0.0.181:5060;branch=z9hG4bKzYHB6md0aBVUr
    From: sip:player1@realm;tag=PK3B6tsSnR
    To: sip:player2@realm
    Supported: 100rel,sec-agree
    Contact: sip:player1@10.0.0.181
    CSeq: 2381 INVITE
    Call-ID: KdLB6oSkOkTySolWSHFTdoSaORQZUx
    s: subject
    Max-Forwards: 70
    Content-Type: application/sdp
    Content-Length: 150
    v=0
    o=player1 3359859197 3359859198 IN IP4 10.0.0.181
    s=SipSession
    c=IN IP4 10.0.0.181
    t=0 0
    m=application 49152 TCP Chipflip
    a=direction:both
    And the INVITE header of my app is as follows :

    Code:
    [0x0e80 11:50:15] SipHandleManagerImpl: 4653128 ProcessUdpEvent: received datagram:
    INVITE sip:player2@realm SIP/2.0
    Route: <sip:10.0.0.237;lr>
    Via: SIP/2.0/UDP 10.0.0.181:5060;branch=z9hG4bKO5ikAWJUBed0h
    From: sip:player1@realm;tag=94akANYeUu
    To: sip:player2@realm
    Contact: sip:player1@10.0.0.181
    Supported: sec-agree
    CSeq: 7770 INVITE
    Call-ID: PmSkATvz2-pnuwaFDyaeW2vvPmZUyd
    Max-Forwards: 70
    Content-Length: 0
    As can be clearly seen that in the case of my app after Call-ID field I directly have Max-Forwards and the Content-Length is 0.All,the other fields which can be seen in the INVITE header of ChipFlip are missing.
    Why are these fields missing in the case of the INVITE header of my app ? . Do I need to add those fields myself somewhere or do something else ? . If yes, then please tell me how to do that.

    Thanks a lot

  2. #2
    Registered User
    Join Date
    May 2007
    Posts
    14

    Re: Incomplete INVITE header shows up in SIP Emulator when sending INVITE

    hi,
    can you tell me how to obtain these header fields??

Similar Threads

  1. Recording in Amr Format
    By losym in forum Symbian Media (Closed)
    Replies: 12
    Last Post: 2009-03-26, 06:41
  2. SIP Invite Procedures
    By jgarinf in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2008-11-05, 14:41
  3. SIP: BYE/ 481 (No Dialog Found)!!!!!!!!!!
    By Mini Pillai in forum Symbian Networking & Messaging (Closed)
    Replies: 13
    Last Post: 2007-02-09, 04:52
  4. 415 Unsupported Media Type Error when sending an INVITE through SIP
    By razas in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2006-06-14, 06:49
  5. Sending SIP message, how to add authentication header?
    By PrinceAlbertz in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2006-06-01, 13:25

Posting Permissions

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