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
Thiago Rondon 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.
You would need some way of tracking call state (perhaps via the dialog module, or otherwise a home-spun solution involving state logging) and having an outside SIP UAC issue a BYE for calls of certain categories after a certain period of time.
OpenSER is not call-stateful and has no awareness of calls. It is also a proxy, not a UAC, so it cannot actually originate any new call legs or requests; it is entirely event-driven in that it acts solely on behalf of various endpoints.
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@gmail.comwrote:
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@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users