New: Closeddial module

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

New: Closeddial module

Sergio Gutierrez
Hello to all developers and users.

I just have commited a new module to OpenSIPS which is called closeddial.

This module is intended to offer a functionality similar to Centrex to OpenSIPS, allowing to define groups of closed dialing, using abbreviated codes.

Closeddial uses a database table, where the relationship between users, their abbreviated dialing codes and their grouping through a particular attribute is stored.

An example which illustrates the idea behind module:

Supposing that the following is the content of closeddial table on database

User            closeddial_code          group_id           new_uri
135             00                              companyA        [hidden email]
357             01                              companyA        [hidden email]
579             02                              companyA        [hidden email]
024             00                              companyB        [hidden email]
246             01                              companyB        [hidden email]
468             02                              companyB        [hidden email]

Users defined within group companyA can use abbreviated codes to dial to others users, instead of using full username; their abbreviated codes will not collide with codes defined for group companyB, because group_id is determined by using from username, before looking the uri to rewrite.

group_id value can be left to be determined by querying database, or can be passed from script, in case it be determined from other mechanism (for example, an avp loaded at register time).

I hope this module be useful in your deployments of opensips.

Feel free to send me any doubts or feedback about module, through users lists, or directly to my mail.

Best regards.

--
Sergio GutiƩrrez

_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
Reply | Threaded
Open this post in threaded view
|

Re: [OpenSIPS-Users] New: Closeddial module

Brett Nemeroff
This is interesting, but I wonder...

Seems like it would be more useful if this was integrated also into the register function so that dynamic clients can be grouped. 

Said another way, seems like "new_uri" doesn't really make sense. It should point either a new_uri or to an already registered contact. If it was integrated into register, you'd put the user into a group when they register, then the lookup function would also need to pass the group.

Maybe I'm thinking about this wrong.. Good idea tho. :)
-Brett


On Sat, Feb 7, 2009 at 6:04 PM, Sergio Gutierrez <[hidden email]> wrote:
Hello to all developers and users.

I just have commited a new module to OpenSIPS which is called closeddial.

This module is intended to offer a functionality similar to Centrex to OpenSIPS, allowing to define groups of closed dialing, using abbreviated codes.

Closeddial uses a database table, where the relationship between users, their abbreviated dialing codes and their grouping through a particular attribute is stored.

An example which illustrates the idea behind module:

Supposing that the following is the content of closeddial table on database

User            closeddial_code          group_id           new_uri
135             00                              companyA        [hidden email]
357             01                              companyA        [hidden email]
579             02                              companyA        [hidden email]
024             00                              companyB        [hidden email]
246             01                              companyB        [hidden email]
468             02                              companyB        [hidden email]

Users defined within group companyA can use abbreviated codes to dial to others users, instead of using full username; their abbreviated codes will not collide with codes defined for group companyB, because group_id is determined by using from username, before looking the uri to rewrite.

group_id value can be left to be determined by querying database, or can be passed from script, in case it be determined from other mechanism (for example, an avp loaded at register time).

I hope this module be useful in your deployments of opensips.

Feel free to send me any doubts or feedback about module, through users lists, or directly to my mail.

Best regards.

--
Sergio GutiƩrrez

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel