[sr-dev] git:master: domain: API framework to be used by other modules

Daniel-Constantin Mierla miconda at gmail.com
Fri Jul 17 13:15:02 CEST 2009


Hi Jan,

On 17.07.2009 11:37 Uhr, Jan Janak wrote:
> Module: sip-router
> Branch: master
> Commit: dd5490500f006f86e520958c5ca2646a1e3a96b7
> URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=dd5490500f006f86e520958c5ca2646a1e3a96b7
>
> Author: Jan Janak <jan at iptel.org>
> Committer: Jan Janak <jan at iptel.org>
> Date:   Fri Jul 17 00:15:39 2009 +0200
>
> domain: API framework to be used by other modules
>
>   
just wondering if worth to extend core a bit so that modules can 
register callbacks for is_myself check. Therefore, if (uri==myself) can 
match entries in the domain module.

Architecturally, the core function goes like now and if no match, then 
executes the eventual callbacks. This way does not matter if domain is 
db only/cache mode or other modules do checks against other storages 
(radius, web app, etc).

Cheers,
Daniel

-- 
Daniel-Constantin Mierla
http://www.asipto.com/index.php/sip-router-bootcamp/




More information about the sr-dev mailing list