Four years ago, I has a class 4 routing demo project which require to handle 1000 CPS. I spent about one month to play with pjsip 0.9.0 to implement a B2BUA which could handle more than 2000 Call Leg Per Second, UDP transport. The beginning design was also use multiple pjsip worker threads. It worked very well at lad. But it had some race condition/dead lock when try to handle real traffic. I remember one deadlock case was INVITE retransmission timer timeout hanling at one thread and at the same time the other thread got 100 Trying packet from network. my solution was offload all CPU/IO bound processing logic to other threads and use only one thead to call pjsip_endpt_handle_events() and all other pjsip funcs. I would like to spend more time to trace but that project ended soon because of business reason. regards, Gang On Sat, Jul 6, 2013 at 12:31 AM, Matt Williams <Matt.Williams at metaswitch.com > wrote: > Hi, > > I'm working on Project Clearwater (*http://www.projectclearwater.org/*<http://www.projectclearwater.org/>), > an open source highly-scalable IMS (IP Multimedia Subsystem) implementation. > > We're using PJSIP as our SIP stack. Most of the trails I've seen on the > mailing list have been about using PJSIP for SIP clients, but is anyone > using it (like us) server-side, e.g. for proxies or B2BUAs? Each instance > of our "bono" edge proxy server supports 50000 incoming SIP/TCP connections > (and the limitation we then hit is with Amazon AWS EC2, not the software > itself), but we're unable to have more than one transport thread (i.e. > running pjsip_endpt_handle_events). If we have more than one, we see > crashes that seem to be related to concurrent accesses to shared data > structures from multiple threads. > > Does anyone have any experience of running multiple transport threads, or > any pointers for using PJSIP at high scale? I'm happy to investigate more > (and share crash dumps if that's useful), but wanted to check whether > anyone else had seen this first. > > Thanks, > > Matt > > > _______________________________________________ > 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20130731/b1bb7183/attachment-0001.html>