Any Solution for PjSIP APS implementation ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

Any solution / fix made for APS issue in PjSIP for Symbian platform?

ISSUE :

Source Location : pjmedia\src\pjmedia\symbian_sound_aps.cpp

After input steam and output stream initialized of Audio Proxy Server, 
the queue handler sends the recorder data via an interface to 
pjmedia_snd_rec_cb  recCb_;
 
case ERecordQueue:
        if (buffer.iCommand == EAPSRecordData)
        {
         iObserver->RecCb(buffer);
        }

The above case sends recorded data via interface to below method,

void CPjAudioEngine::RecCb(TAPSCommBuffer &buffer)
    {
    pj_int16_t buf[160];
    pj_assert(buffer.iBuffer[0] == 1 && buffer.iBuffer[1] == 0);

    for (int i=0; i<160; ++i)
     buf[i] = pjmedia_alaw2linear(buffer.iBuffer[i+2]);

    recCb_(userData_, 0, buf, sizeof(buf));
    }

The method looks for 160 bytes, which as been lopped using for loop. But 
the problem here is only buffer size of 14 is received per each frame. 
So  while trying to loop it 160 times using for loop the app. crashes 
with user 21 panic(symbian panic code) which means out of bounce exception.

So what could be the solution for this problem? i have publisher ID, 
developer certificate and also made a sample application which does not 
look for any buffer size using APS for testing, which works fine.
The problem in PjSIP is the buffer size .. please some one suggest your 
the view and ideas for this problem.

-- 
Thanks And Regards,
Srivatsan.D,







[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux