×

Discussion Board

Results 1 to 12 of 12
  1. #1
    Regular Contributor
    Join Date
    Apr 2007
    Posts
    50

    callback RtpPacketReceived is not called!

    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
    Join Date
    Apr 2007
    Posts
    50

    Re: callback RtpPacketReceived is not called!

    Any clue plz!

    Thnaks in advance,
    Haroon Azmat

  3. #3
    Regular Contributor
    Join Date
    Apr 2007
    Posts
    50

    Re: callback RtpPacketReceived is not called!

    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
    Join Date
    Apr 2007
    Posts
    50

    Re: callback RtpPacketReceived is not called!

    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
    Join Date
    Jul 2007
    Posts
    3

    Re: callback RtpPacketReceived is not called!

    Hi Hazmat!
    I'm facing with the same problem, did you find the solution for your problem?

    thanks,
    fE

  6. #6
    Registered User
    Join Date
    Jun 2003
    Posts
    22

    Re: callback RtpPacketReceived is not called!

    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
    Join Date
    Mar 2008
    Posts
    14

    Re: callback RtpPacketReceived is not called!

    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
    Join Date
    Mar 2008
    Posts
    14

    Re: callback RtpPacketReceived is not called!

    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
    Join Date
    Feb 2008
    Posts
    10

    Re: callback RtpPacketReceived is not called!

    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
    Join Date
    Mar 2008
    Posts
    14

    Exclamation Re: callback RtpPacketReceived is not called!

    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
    Join Date
    Nov 2007
    Posts
    31

    Re: callback RtpPacketReceived is not called!

    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
    Join Date
    Mar 2008
    Posts
    14

    Re: callback RtpPacketReceived is not called!

    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
    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
    Replies: 3
    Last Post: 2007-01-18, 15:15
  4. Errors building project in VS.2003
    By jensesaat in forum Symbian
    Replies: 11
    Last Post: 2006-11-13, 16:54
  5. Python C++ Extension with Callback crashing
    By diggerdeep in forum Symbian
    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
  •  
×