Hello,

NITESH BANSAL wrote on 02/26/2015 10:47 AM:
> I am looking for an open source SBC, sems being one of them.
> I have some question ref sems SBC:
> 1. I saw that we can write call control modules for SBC, which can be
> invoked at start, end and connect. But is it possible to
> define some specific handling for individual SIP messages. For
> example: we receive a SIP 302 redirect with list of uris to be
> tried for SIP redirection, is it possible to write some custom logic
> to handle this SIP message, custom logic would be setting some
> timers and rewriting the request URI?

have a look at the "extended call control interface" -
https://github.com/sems-server/sems/blob/master/apps/sbc/ExtendedCCInterface.h

and the template for call control modules
https://github.com/sems-server/sems/blob/master/apps/sbc/call_control/template/CCTemplate.cpp

> 2. Are call control modules the only way to add business logic ref a
> SIP call.
You might also try out CC DSM - that is a call control module which
you can write in the DSM language:

https://github.com/sems-server/sems/blob/master/doc/dsm/dsm_sbc_syntax.txt

e.g. something like
transition "received 302" establishing - B2B.otherReply(#code==302) / {
...
} -> establishing;

> 3. Is it possible to fetch information from 2 legs of a dialog  while
> writing the business logic?
you'll need to pass events to the other leg. Usually I do the main
logic in the A leg, and pass events e.g. in DSM with
sbc.relayReliableEvent(...) or just postEvent(...)

hth
Stefan

_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to