It was in regards to me loose routing problems I had.. but in my call traces, I simply wasn't getting a BYE back from the carrier.<div><br class="webkit-block-placeholder"></div><div>Since I've gotten that resolved, my dialog count is nice and clean. nothing left open for the dialog expiration timeout. Have you looked at the output of:</div>
<div>opensipsctl fifo dlg_list ?</div><div><br><br><div class="gmail_quote">On Fri, Mar 6, 2009 at 10:21 AM, Robert Borz <span dir="ltr"><<a href="mailto:robert.borz@web.de">robert.borz@web.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I'm sure not setting the profile twice. I wrapped the part by setting a flag and now I additionally used the is_in_profile() method to preventing setting the profile twice.<br>
<br>
Hmm, I've really no idea at the moment.<br>
<br>
Can you give me the subject of the thread you're meaning? Which mailing list?<br>
<br>
Thank you.<br>
<div class="im"><br>
<br>
Robert.<br>
<br>
________________________________________<br>
From: <a href="mailto:brett@nemeroff.com">brett@nemeroff.com</a> [mailto:<a href="mailto:brett@nemeroff.com">brett@nemeroff.com</a>]<br>
</div>Sent: Friday, March 06, 2009 4:10 PM<br>
<div><div></div><div class="h5">To: <a href="mailto:robert.borz@web.de">robert.borz@web.de</a><br>
Cc: <a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>; <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
Subject: Re: [OpenSIPS-Users] Restrict Simultaneous-Use<br>
<br>
Is it possible that you are setting the profile more than once ever? if you are, that could be the problem. I don't think anything prevents that from happening, and if you added it twice, the destruction of the dialog would only reduce the count by one, instead of two. I may be wrong here.. The times I've had dialogs left open that couldn't get cleared, I had record-routing problems (see list history!) or I was doing something silly with setting the profiles<br>
<br>
BTW, I do this now. I'm not sure if it's even necessary. I'm using 1.4, so I don't have a create_dialog() function..<br>
if (!is_in_profile("SRC","$si")) {<br>
set_dlg_profile("SRC","$si");<br>
}<br>
<br>
Now, if I could pull avps from memory. that'd be sweet. :) I'm going to upgrade when 1.5 is released and then we'll start with the memcache fun. :)<br>
-BRett<br>
<br>
<br>
<br>
On Fri, Mar 6, 2009 at 9:04 AM, Robert Borz <<a href="mailto:robert.borz@web.de">robert.borz@web.de</a>> wrote:<br>
Hi Brett,<br>
<br>
thanks for the hints, but doesn't work for me.<br>
The did information in the record route header and the BYEs are there.<br>
I also tried the other two match modes, with no success. :-(<br>
<br>
Any idea?<br>
<br>
<br>
Regards,<br>
Robert<br>
<br>
________________________________________<br>
From: <a href="mailto:brett@nemeroff.com">brett@nemeroff.com</a> [mailto:<a href="mailto:brett@nemeroff.com">brett@nemeroff.com</a>]<br>
Sent: Friday, March 06, 2009 3:32 PM<br>
To: <a href="mailto:robert.borz@web.de">robert.borz@web.de</a><br>
Cc: <a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>; <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
Subject: Re: [OpenSIPS-Users] Restrict Simultaneous-Use<br>
<br>
Check to be sure you really get the BYE at the end of the call.<br>
<br>
Also take a look at the bye and see if the 'did=' is in there, if it's not (ie: if the other end UAC removes it, which it really shouldn't) then you may need to change your dialog match mode. See the dialog module docs for that.<br>
<br>
-Brett<br>
<br>
On Fri, Mar 6, 2009 at 7:25 AM, Robert Borz <<a href="mailto:robert.borz@web.de">robert.borz@web.de</a>> wrote:<br>
Hi Bogdan,<br>
<br>
now I'm currently using the svn head of opensips version 1.5.<br>
<br>
I succeeded in pushing the channel value from the radius server into opensips by an SIP-AVP in the auth-reply. :-)<br>
<br>
But I've got problems with the dialog profiling. Maybe I'm missing something here. At the moment I've got the following configuration for the dialog module:<br>
<br>
----------------------------------------------------------------------------<br>
loadmodule "dialog.so"<br>
modparam("dialog", "dlg_flag", 4)<br>
modparam("dialog", "profiles_with_value", "caller")<br>
----------------------------------------------------------------------------<br>
<br>
<br>
Following the link you told me I do the following in my invite-route after radius_proxy_authorize():<br>
<br>
----------------------------------------------------------------------------<br>
if (create_dialog() && set_dlg_profile("caller", "$fu")) {<br>
xlog("L_INFO", "created dialog/added profile");<br>
}<br>
xlog("L_INFO", "SIP-AVP ===> $avp(s:channels)");<br>
<br>
if (is_avp_set("$avp(s:channels)/n") && avp_check("$avp(s:channels)", "gt/i:0")) {<br>
get_profile_size("caller", "$fu", "$avp(s:active_channels)");<br>
xlog("L_INFO", "===> User has $avp(s:active_channels) active channels!");<br>
}<br>
setflag(4);<br>
----------------------------------------------------------------------------<br>
<br>
The log statements prints "===> User has 1 active channels!" when the first invite comes in. But the number doesn't decrease when the dialog gets finished. With the next invite (doesn't matter if the previous dialog is alive), it prints " ===> User has 2 active channels!" and so forth.<br>
<br>
Any idea what's wrong here?<br>
<br>
<br>
Regards,<br>
Robert<br>
<br>
<br>
-----Original Message-----<br>
From: <a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> [mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>]<br>
Sent: Thursday, March 05, 2009 5:55 PM<br>
To: <a href="mailto:robert.borz@web.de">robert.borz@web.de</a><br>
Cc: <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
Subject: Re: [OpenSIPS-Users] Restrict Simultaneous-Use<br>
<br>
Robert,<br>
<br>
if you do auth via RADIUS, you can push some AVPs in the reply:<br>
<br>
<a href="http://www.opensips.org/html/docs/modules/1.4.x/auth_radius.html#id227162" target="_blank">http://www.opensips.org/html/docs/modules/1.4.x/auth_radius.html#id227162</a><br>
<br>
The 1.5.0 is plan to be release in 2 weeks from now, if no major bugs<br>
are discovered :)<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Robert Borz wrote:<br>
> Hi Bogdan,<br>
><br>
> thank you for this hint. I'll check it out.<br>
><br>
> Yes, I also do auth over radius. Currently I've still OpenSER v1.3.2 installed on debian/lenny and it is working fine.<br>
><br>
> Currently I'm thinking of updating to the latest OpenSIPS release. What's the current schedule for the first stable 1.5 release?<br>
><br>
><br>
> Regards,<br>
> Bogdan<br>
><br>
><br>
> -----Original Message-----<br>
> From: <a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a> [mailto:<a href="mailto:users-bounces@lists.opensips.org">users-bounces@lists.opensips.org</a>] On Behalf Of Bogdan-Andrei Iancu<br>
> Sent: Thursday, March 05, 2009 4:57 PM<br>
> To: <a href="mailto:robert.borz@web.de">robert.borz@web.de</a><br>
> Cc: <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
> Subject: Re: [OpenSIPS-Users] Restrict Simultaneous-Use<br>
><br>
> Hi Robert,<br>
><br>
> Well, you can use the avp_radius module to load from a RADIUS server the<br>
> number of maximum allowed calls:<br>
> <a href="http://www.opensips.org/html/docs/modules/devel/avp_radius.html" target="_blank">http://www.opensips.org/html/docs/modules/devel/avp_radius.html</a><br>
><br>
> This is the most generic way to do it.<br>
><br>
> Do you do auth via RADIUS also ?<br>
><br>
> Regards,<br>
> Bogdan<br>
><br>
> Robert Borz wrote:<br>
><br>
>> Hi Bogdan,<br>
>><br>
>> thanks a lot. Looks really pretty with the example you showed.<br>
>><br>
>> My problem is that, depending on the amount of concurrent calls a user can do, the user belongs to a different group in radius. Imagine a user belonging to the group 'pots' has a simultaneous call limit of 1, a user belonging to the group 'isdn' has a limit of 2 concurrent calls...<br>
>><br>
>> All rate information/customer attributes is/are stored in the radius and we want to keep it like this. So I think I've to get the information about how many calls the user can do out of the radius into SER to use the example. Any idea how to do that?<br>
>><br>
>><br>
>> Regards,<br>
>> Robert<br>
>><br>
>> -----Original Message-----<br>
>> From: <a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a> [mailto:<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>]<br>
>> Sent: Thursday, March 05, 2009 12:49 PM<br>
>> To: <a href="mailto:robert.borz@web.de">robert.borz@web.de</a><br>
>> Cc: <a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
>> Subject: Re: [OpenSIPS-Users] Restrict Simultaneous-Use<br>
>><br>
>> Hi Robert,<br>
>><br>
>> You do not need Radius for this. OpenSIPS can do this by itself. See a<br>
>> nice tutorial on this topic:<br>
>> <a href="http://www.opensips.org/index.php?n=Resources.DocsTutConcurrentCalls" target="_blank">http://www.opensips.org/index.php?n=Resources.DocsTutConcurrentCalls</a><br>
>><br>
>> Regards,<br>
>> Bogdan<br>
>><br>
>> Robert Borz wrote:<br>
>><br>
>><br>
>>> Hi,<br>
>>><br>
>>> currently I'm using a FreeRADIUS server for authentication and billing purposes. Now I want to restrict the count of simultaneous calls a user can do. For this I implemented it with the "Simultaneous-Use" check in FreeRADIUS and it works fine, for outgoing calls initiated from my customers. Just trying to initiate a second call when one is still up, the request is rejected (Proxy authorization fails for the new call).<br>
>>><br>
>>> But incoming calls from the PSTN come in over an Asterisk machine. There's no proxy authorization for invites from the Asterisk, just a from_gw() check. So how I can restrict the amount of simultaneous calls per user for incoming _and_ outgoing calls?<br>
<br>
<br>
<br>
>>><br>
>>> Any hint would be really appreciated...<br>
>>><br>
>>><br>
>>> Regards,<br>
>>> Robert<br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> Users mailing list<br>
>>> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
>>> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
>>><br>
>>><br>
>>><br>
>>><br>
>><br>
>><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
><br>
><br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
<br>
</div></div></blockquote></div><br></div>