[Home]

Summary:ASTERISK-14165: [patch] SIP Call-Limit
Reporter:Sébastien Cramatte (scramatte)Labels:
Date Opened:2009-05-19 12:07:06Date Closed:2009-05-28 06:40:45
Priority:MajorRegression?No
Status:Closed/CompleteComponents:Resources/res_config_ldap
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) asterisk.schema
Description:Hello,

It would be nice to add call-limit support to res_config_ldap and schema.
I use Asterisk 1.6 for an ISP and it will be usefull to limit incoming/outgoing call for each account
Comments:By: Sébastien Cramatte (scramatte) 2009-05-19 17:36:45

I suggest  to add a new Attribute type to the schema:  AstAccountStatement

The goal of this attribute is to allow to add raw parameters not available in the schema.

example:

AstAccountStatement:  call-limit=1
AstAccountStatement:  ...

They use something similar in dhcpd ldap patch



By: Gavin Henry (suretec) 2009-05-19 18:28:41

OK, will do and check the code.

Thanks.

By: Leif Madsen (lmadsen) 2009-05-20 07:15:05

This is a feature request. However it looks like suretec will look into potentially adding it if it is trivial.

If it is not, then please close this issue and not leave it open as feature requests without patches are typically closed on the issue tracker. Thanks!

By: Sébastien Cramatte (scramatte) 2009-05-21 07:28:39

I've update the schema to support Voicemail and Call-Limit.
AsteriskExtension object is structural in this schema. I don't want to always bind extension with a posixUser ...

By: Gavin Henry (suretec) 2009-05-21 07:31:01

I can't see your patch due to license.

By: Sébastien Cramatte (scramatte) 2009-05-21 11:10:15

I don't know what happens. I've already sign the licence ...

By: Leif Madsen (lmadsen) 2009-05-22 06:36:12

The license needs to be approved manually, which takes usually 1-2 days, so at this point we just need to wait for it to be approved or rejected (hopefully the former!).

I'll try and keep an eye out, but if you notice the license gets approved before I do, just make a note here for me to change the status of the issue to Confirmed. I'll get an email about it. Thanks!

By: Leif Madsen (lmadsen) 2009-05-26 10:00:27

License accepted!

By: Gavin Henry (suretec) 2009-05-28 06:01:21

What should AstAccountCallLimit relate to? The extension?

By: Sébastien Cramatte (scramatte) 2009-05-28 06:10:26

It's related too SIP or IAX account normaly
Note that I've missed to AstVoicemailContext attribute too.
I've use AstContext instead that is incorrect.

By: Digium Subversion (svnbot) 2009-05-28 06:18:10

Repository: asterisk
Revision: 197409

U   trunk/contrib/scripts/asterisk.ldap-schema
U   trunk/contrib/scripts/asterisk.ldif

------------------------------------------------------------------------
r197409 | ghenry | 2009-05-28 06:18:10 -0500 (Thu, 28 May 2009) | 14 lines

New objectclass AsteriskVoiceMail and AstAccountCallLimit attribute

Added new ObjectClass AsteriskVoiceMail, and AstAccountCallLimit attribute
and cleaned up formatting and tested with OpenLDAP

(closes issue ASTERISK-14165)
Reported by: scramatte
Patches:
     asterisk.schema uploaded by scramatte (license 796)
Tested by: suretec

Review: [full review board URL with trailing slash]


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=197409

By: Gavin Henry (suretec) 2009-05-28 06:20:10

OK, will add AstVoicemailContext.

By: Digium Subversion (svnbot) 2009-05-28 06:25:05

Repository: asterisk
Revision: 197431

U   trunk/contrib/scripts/asterisk.ldap-schema
U   trunk/contrib/scripts/asterisk.ldif

------------------------------------------------------------------------
r197431 | ghenry | 2009-05-28 06:25:04 -0500 (Thu, 28 May 2009) | 9 lines

Added AstVoicemailContext

Added AstVoicemailContext

(closes issue ASTERISK-14165)
Reported by: scramatte
Tested by: suretec


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=197431

By: Digium Subversion (svnbot) 2009-05-28 06:40:16

Repository: asterisk
Revision: 197439

U   branches/1.6.0/configs/res_ldap.conf.sample
U   branches/1.6.0/contrib/scripts/asterisk.ldap-schema
U   branches/1.6.0/contrib/scripts/asterisk.ldif
U   branches/1.6.0/doc/ldap.txt

------------------------------------------------------------------------
r197439 | ghenry | 2009-05-28 06:40:15 -0500 (Thu, 28 May 2009) | 1 line

issue ASTERISK-14165 and issue ASTERISK-14166 from trunk
------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=197439

By: Digium Subversion (svnbot) 2009-05-28 06:40:31

Repository: asterisk
Revision: 197440

U   branches/1.6.1/configs/res_ldap.conf.sample
U   branches/1.6.1/contrib/scripts/asterisk.ldap-schema
U   branches/1.6.1/contrib/scripts/asterisk.ldif
U   branches/1.6.1/doc/ldap.txt

------------------------------------------------------------------------
r197440 | ghenry | 2009-05-28 06:40:31 -0500 (Thu, 28 May 2009) | 1 line

issue ASTERISK-14165 and issue ASTERISK-14166 from trunk
------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=197440

By: Digium Subversion (svnbot) 2009-05-28 06:40:45

Repository: asterisk
Revision: 197441

U   branches/1.6.2/configs/res_ldap.conf.sample
U   branches/1.6.2/contrib/scripts/asterisk.ldap-schema
U   branches/1.6.2/contrib/scripts/asterisk.ldif
U   branches/1.6.2/doc/ldap.txt

------------------------------------------------------------------------
r197441 | ghenry | 2009-05-28 06:40:44 -0500 (Thu, 28 May 2009) | 1 line

issue ASTERISK-14165 and issue ASTERISK-14166 from trunk
------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=197441