×

Discussion Board

Results 1 to 12 of 12

Hybrid View

  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

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
  •  
×