Hi Bogdan, Call scenario is application subject, so no API for call scenario. However, the idea (and the implementation) of call duration timer should be simple: On pjsua callback on_call_state(), check if the call state is confirmed, start timer, e.g: using pjsua_schedule_timer(), to fire your timer callback which will disconnect the call. BR, nanang On Sat, Mar 6, 2010 at 5:00 PM, Bogdan Martinescu <contact at yolau.net> wrote: > Hi, > I am currently developing a SIP application based on the PJSUA API. > I would like to implement a function that automatically disconnects a call > after lets say 5 minutes. > I've looked at the PJSUA command line app that I know is developed with the > API and I saw that it has this future so I am thinking that it must be a way > to properly do it using the API, the problem is that I don't know how... > If you have any ideas please share them with me. > Thank you, > Bogdan M > > _______________________________________________ > 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 > >