Juha,
you are confusing some things here.
o Juha Heinanen on 10/01/2011 06:45 PM:
it should be possible to define more than one sbc profile for the same
request. for example, there may be need to limit the number of
simultaneous calls from an uri AND to an uri. at the same time, from
uri may need to be anonymized and the request may need to be accounted
for. it is very inefficient and cumbersome if sip proxy needs to route
the same request four times to sems in order to achieve the goals of
this example.
who would want to do something like that?
it's much simpler:
call_control=limit_from,limit_to,limit_fdomain,accounting
limit_from_module=cc_pcalls
limit_from_uuid=$fU
limit_from_max_calls=2
limit_to_module=cc_pcalls
limit_to_uuid=$tU
# using default limit
limit_fdomain_module=cc_pcalls
limit_fdomain_uuid=$fd
limit_fdomain_max_calls=$H(P-Domain-Limit)
accounting_module=myaccounting
accounting_uuid=$H(P-Calling-User)
anonymizer can be either set in the profile, or a separate anonymizer
cc to be called (if there's special logic in it).
how about allowing more that one active sbc profile to be specified for
the request, for example, allowing more than one P-App-Param header,
the sbc profile ultimatively defines the SBC behaviour. CC modules can
operate on the sbc profile. e.g. an anonymizer cc module can modify
call_profile.from and possibly call_profile.append_headers.
where each header describes one profile for the request:
P-App-Param: profile=call_control;uuid=$fu;max_calls=1
P-App-Param: profile=call_control;uuid=$ru;max_calls=3
P-App-Param: profile=anonymizer
P-App-Param: profile=accounting;uuid=$var(calling_user)
without this kind of capability, i don't see it possible to use sems sbc
in other than very simple applications.
even without the call control possibilities, I've used sems sbc in
quite complex scenarios, as it's behaviour can be made purely dynamic
based on the message - and the application logic may better reside in
an application server before that, not in the sbc.
anyway, we may add more app server type of logic into the sbc (e.g.
lua or rules based cc module), if you would like to combine it. otoh,
we can make the invocation of the cc dynamic.
Stefan
-- juha
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev
--
frafos.com
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev