Re: [OpenSIPS-Users] An error exists in recording the number of ongoing sessions at RTP Proxies

2013-03-12 Thread microx
Hi all, I still have no solution to this issue. The relevant code of my script about the statistics is attached in the previous post and list below. From the source code of set_dlg_profile in dlg_profile.c (see the following), I doubt the cause is profile value is not protected by a critical

Re: [OpenSIPS-Users] An error exists in recording the number of ongoing sessions at RTP Proxies

2013-03-05 Thread Bogdan-Andrei Iancu
Hi, If you would share the relevant script, we might help :) Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 03/05/2013 03:31 AM, microx wrote: Hi all, Can someone help me solve this problem? It seems that the lock mechanism works correctly

Re: [OpenSIPS-Users] An error exists in recording the number of ongoing sessions at RTP Proxies

2013-03-04 Thread microx
Hi all, Can someone help me solve this problem? It seems that the lock mechanism works correctly and the cause is malfunctioning of set_dlg_profile. I say so because in the critical section, the other printed information are correct and only get_profile_size is not correct all the time. I

Re: [OpenSIPS-Users] An error exists in recording the number of ongoing sessions at RTP Proxies

2013-02-27 Thread microx
Hi Bogdan-Andrei, I tried to use the get_static_lock and release_static_lock to set up the critical session. However, I still get an incorrect result (please refer to the attached log). It is likely that I misuse the locking mechanism and thus I also provide the corresponding code. Please

[OpenSIPS-Users] An error exists in recording the number of ongoing sessions at RTP Proxies

2013-02-20 Thread microx
Hi all, In my environment, I have one outbound proxy, two proxy servers and two RTP proxies. The outbound proxy uses ds_select_dst() to dispatch SIP requests to the two proxy servers. When receiving an INVITE request, a proxy server runs a round-robin algorithm to select an RTP proxy for

Re: [OpenSIPS-Users] An error exists in recording the number of ongoing sessions at RTP Proxies

2013-02-20 Thread microx
Hi Bogdan-Andrei, Very grateful for your quick reply. I did think that the error results from my own critical session but I cannot resolve this issue since the version I use is 1.8.2. I will try the locking mechanism as you suggest. Many thanks. Best regards, Chen-Che -- View this message