Discussion Board

Results 1 to 12 of 12
  1. #1
    Regular Contributor hazmat's Avatar
    Join Date
    Apr 2007
    Posts
    50
    Hi all,

    I'm sending G711 codec over RTP and application succssessfully keep sending it.Problem is that i'm not getting it at receiver end.

    I've Started the iRtpAPI sessions at both ends as application is full duplex and i'm trying to establish a Voice path between two E65 phones.

    TUint localPort = 30002;
    TUint remortPort = 30002;

    remoteAdd = INET_ADDR( 10,1,7,142 );
    remoteAdd.SetPort( remortPort );

    TBool aEnableRTCP = EFalse;
    TInt err;
    TRtpSdesParams params;
    TCreateSessionParams sessionParams;
    sessionParams.iPriority = TCreateSessionParams::EPriorityStandard ;
    sessionParams.iSocketBufSize = KSocketBufSize;

    iRtpAPI = CRtpAPI::NewL( *this );

    err = iRtpAPI->OpenL(
    params,
    NULL,
    &iSocketServer,
    NULL );

    if( !err )
    {
    _LIT8( KLog, "Open RTPAPI" );
    iObserver->WriteRTPApiLog( KLog(), 0 );
    }

    err = iRtpAPI->StartConnection();

    if( ! err )
    {
    _LIT8( KLog, "Connection Started" );
    iObserver->WriteRTPApiLog( KLog(), 0 );
    }

    iSessionId = iRtpAPI->CreateSessionL( sessionParams,
    localPort,
    aEnableRTCP,
    NULL );

    When session is creeated i called

    RegisterRtpObserver,CreateTransmitStreamLand CreateReceiveStreamL


    iOutputStreamId = iRtpAPI->CreateTransmitStreamL( iSessionId, params, iSSRC);

    iInputStreamId = iRtpAPI->CreateReceiveStreamL( iSessionId,
    params );



    Here i'm registering observer to receive RTP packet

    TInt err = iRtpAPI->RegisterRtpObserver( iSessionId,
    *this );

    this is the declaration of overridden pure function which is not callled.Please let me know if I'm missing any thing.Second i'm sending G. 711 payload so i set the payload type 46 and both streams are created at both ends.

    void RtpPacketReceived( TRtpId aStreamId,
    const TRtpRecvHeader &aHeaderInfo,
    const TDesC8 &aPayloadData );


    Please at least give me any clue y it does't work i'm so close to finish my work.

    Thanks in advance,

    Haroon Azmat

  2. #2
    Regular Contributor hazmat's Avatar
    Join Date
    Apr 2007
    Posts
    50
    Any clue plz!

    Thnaks in advance,
    Haroon Azmat

  3. #3
    Regular Contributor hazmat's Avatar
    Join Date
    Apr 2007
    Posts
    50
    Hi,

    Is there any special range of port number for RTP.This question is raised in one of the previous thread and he fixed the problem by changing port number.


    Thnaks in advance,

    Haroon Azmat

  4. #4
    Regular Contributor hazmat's Avatar
    Join Date
    Apr 2007
    Posts
    50
    please put any comments on it...Anybody who is secceeded in receiving and sending RTP.Please share some line of code if u like.I'm stuck and really dont know what would be next step for getting out of it.

    Thanks in Advance,

    Haroon Azmat

  5. #5
    Registered User elfelipe's Avatar
    Join Date
    Jul 2007
    Posts
    3
    Hi Hazmat!
    I'm facing with the same problem, did you find the solution for your problem?

    thanks,
    fE

  6. #6
    Registered User meskausk's Avatar
    Join Date
    Jun 2003
    Posts
    22
    Hey,

    check the following example (it does work).
    http://www.forum.nokia.com/info/sw.n..._0_en.zip.html

    thanks,
    paulius
    cheers,
    paulius

  7. #7
    Registered User nidhigupta's Avatar
    Join Date
    Mar 2008
    Posts
    14
    The Example seems to be very complicated.
    Can anyone please provide a simple example ellaborating to capture RTP packets using RtpPacketReceived callback.

    I have already tried using RTPExample. But it is not also that informative.

    Thanks and Regards
    Nidhi

  8. #8
    Registered User nidhigupta's Avatar
    Join Date
    Mar 2008
    Posts
    14
    Hi Hazmat,

    I am also facing problem in sending and receiving packets using CRtpAPI. Can you please suggest what changes you had done for fixing the problem? It would be really a great help.

    Thanks in advance.
    Best Regards
    Nidhi

  9. #9
    Registered User El-Fakhrany's Avatar
    Join Date
    Feb 2008
    Posts
    10
    Quote Originally Posted by meskausk View Post
    Hey,

    check the following example (it does work).
    http://www.forum.nokia.com/info/sw.n..._0_en.zip.html

    thanks,
    paulius
    Hi paulius,

    did you create the .sis file for this example ?

    thanks,
    Fakharany

  10. #10
    Registered User nidhigupta's Avatar
    Join Date
    Mar 2008
    Posts
    14
    Hi,

    Sending of RTP packets is now working properly after changing
    remoteAdd = INET_ADDR( 10,1,7,142 );
    to remoteAdd.SetAddress(INET_ADDR( 10,1,7,142 ));

    But problem is still their in receiving of RTP packets. Can anyone please help!

    Best Regards
    Nidhi

  11. #11
    Registered User Nicolae's Avatar
    Join Date
    Nov 2007
    Posts
    31
    i find this exemple is very simply and is that you search
    http://wiki.forum.nokia.com/index.ph...RTPexample.zip

  12. #12
    Registered User nidhigupta's Avatar
    Join Date
    Mar 2008
    Posts
    14
    Hi Nicolae,

    Thanks a lot for the help. Problem is now resolved.
    Actually problem in my case was with capability list. It was required to add Accept-Contact extension header.

    Regards
    Nidhi

Similar Threads

  1. exe - destructor not being called
    By nubiah in forum Symbian C++
    Replies: 4
    Last Post: 2007-07-27, 10:25
  2. Callback function not being invoked at all
    By koh888 in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2007-01-31, 12:03
  3. ActiveObject RunL is called just once
    By lskmao in forum Symbian C++
    Replies: 3
    Last Post: 2007-01-18, 15:15
  4. Errors building project in VS.2003
    By jensesaat in forum Symbian C++
    Replies: 11
    Last Post: 2006-11-13, 16:54
  5. Python C++ Extension with Callback crashing
    By diggerdeep in forum Python
    Replies: 2
    Last Post: 2005-11-10, 16:33

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved