[OpenSER-Users] How to controle minutes per user ?

DanB danb at sms4sip.com
Mon Jul 28 07:36:29 CEST 2008


Hello Thiago,

One way to work-arround:

1. Use the group module to group the users in 2 and 3 minutes.
2. Attach a Session-Expires header with the number of minutes you want your
session to last maximum based on the group where the user belongs to.
3. Forward your request to a B2BUA (I use Yate for this purpose, but
Asterisk and other solutions should also do fine), extract in B2BUA the
value of this header and use it as the timer for your session.

Good luck!

DanB

On Mon, Jul 28, 2008 at 1:55 AM, Thiago Rondon <thiago.rondon at gmail.com>wrote:

> Hello,
>
> I'm with a server openser running smoothly.
>
> - Users are authenticating. (MySQL)
> - I succeeded in redirecting the calls to my "supplier" voip.
>
> But I can not control the number of minutes that each user can use,
> that is, I would like to organize users by groups to say:
>
> -- Group A users can make connections/calls up to 2 minutes.
> -- Group B users can make connections/calls up to 3 minutes.
>
> Thank you very much!
> -Thiago
>
> _______________________________________________
> Users mailing list
> Users at lists.openser.org
> http://lists.openser.org/cgi-bin/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20080728/a4031589/attachment.htm 


More information about the Users mailing list