Hi Nanang , i used original symbian_sound_aps.cpp, the modification which i did is changed audio frame ( audio_frame_ptime ) from 20 to 10 and buffer size in call back method, which is given below. Rest of others is same with no changes. This change works fine with s60 3rd edition fp1 and above, but s60 3rd edition gives other noises. void CPjAudioEngine::RecCb(TAPSCommBuffer &buffer) { pj_int16_t buf[80]; pj_assert(buffer.iBuffer[0] == 1 && buffer.iBuffer[1] == 0); for (int i=0; i<80; ++i) buf[i] = pjmedia_alaw2linear(buffer.iBuffer[i+2]); recCb_(userData_, 0, buf, sizeof(buf)); } Please let me know your comments. Nanang Izzuddin wrote: > Hi Srivatsan, > > How did your problem (recorder callback receiving APS buffer with size > 14 that leads to panic USER 21) sorted out? Just curious since it's > kind of new issue for the APS implementation. (Btw, there was another > buffer issue, G711 frame length variation issue, in the APS > implementation (only for FP1/2 devices), however it has been fixed by > http://trac.pjsip.org/repos/ticket/680). > > When the problem occured, did you use original symbian_sound_aps.cpp > or modified one (e.g: changing codec from G711 codec to another one, > or may be activating VAD)? > > Regards, > nanang > > > On Fri, Jan 2, 2009 at 4:24 PM, Srivatsan <srivatsan at ongobiz.com> wrote: > >> Dear Mukesh , >> >> Ya the problem is sorted out. Thank you very much....PjSIP works with APS >> :-) >> >> Srivatsan wrote: >> >>> Dear Mukesh , >>> >>> APS issue fixed in PjSIP? >>> >>> I have PublisherID and developers certificate.I have made sample >>> application using APS and working fine with no issues. >>> >>> Can you please suggest from which version the issue is fixed in PjSIP? i >>> have downloaded latest source code from PjSIP trunk and tested but still the >>> problem persists. >>> Have you implemented and succeeded with PjSIP APS , please suggest what >>> are the steps taken to fix it. More than a month i struck with the APS >>> problem. >>> >>> Please help me. >>> >>> Mukesh Srivastav wrote: >>> >>>> Dear Srivastav, >>>> APS issues is being fixed now, without PublisherID, you cannot do it. >>>> >>>> >>>> Have a look @ my small web-page: >>>> http://www.geocities.com/muki_champs >>>> >>>> Regards, >>>> Mukesh Kumar, >>>> Sr.Software Engineer, >>>> Mobile Application Developer. >>>> Hyderabad. >>>> India. >>>> +91-9397845485 (M) >>>> <http://www.geocities.com/muki_champs> >>>> >>>> >>>> ------------------------------------------------------------------------ >>>> *From:* Srivatsan <srivatsan at ongobiz.com> >>>> *To:* pjsip list <pjsip at lists.pjsip.org> >>>> *Sent:* Friday, January 2, 2009 12:53:22 PM >>>> *Subject:* [pjsip] Any Solution for PjSIP APS implementation ? >>>> >>>> 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, >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> Visit our blog: http://blog.pjsip.org <http://blog.pjsip.org/> >>>> >>>> pjsip mailing list >>>> pjsip at lists.pjsip.org <mailto:pjsip at lists.pjsip.org> >>>> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >>>> >>>> >> -- >> Thanks And Regards, >> Srivatsan.D, >> >> >> >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip at lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > -- Thanks And Regards, Srivatsan.D,