On Friday 05 May 2006 09:52, Greg Fausak wrote:
> Howdy,
>
> I've been hibernating for a while.
>
> What's this?
>
> Call Dialogs :-)
>
> What does it mean?
as in a SIP dialog :-)
>
> I've checked out the docs, is it something that can
> be used programming for other purposes. Is there an
> example of a call dialog config file?
>
Yes, I am currently building a SIP security proxy (SSP) module that
uses the dialog modules callbacks to track the SIP dialog life span.
Also we will be implementing SIP Session Timer support (SST) soon on
top of the new dialog module.
Here is a snippit from my openser.cfg.m4 file that uses the dialogs in
the SSP:
...
modparam("dialog", "dlg_flag", FLAG_DIALOG)
...
route {
...
if (method=="INVITE" || method=="ACK") {
setflag(FLAG_DIALOG);
t_on_reply("ONREPLY_RELAY");
ifelse(DEBUG_MODE, `ON', `xlog("L_INFO", "[$mi] loose_route() set
dialog flag, set t_on_reply(ONREPLY RELAY)\n");', `')
}
...
Now in the dialog module the dlg_create callback is called in the SSP
that I registered so I can look at the INVITE message.
The registering of callbacks is done just like the tm module so I will
not include an example. The real secret is knowing when to set the
DIALOG flag in the openser.cfg :-)
Hope this helps,
ronw
> ---greg
>
> On 4/14/06, Andreas Granig <[EMAIL PROTECTED]> wrote:
> > Bogdan-Andrei Iancu wrote:
> > > the devel version includes a new module for providing dialog
> > > support. For more about it, please see:
> > > http://openser.org/docs/modules/1.1.x/dialog.html
> >
> > Very nice, thanks :o)
> >
> > Happy Easter,
> > Andy
> >
> > _______________________________________________
> > Users mailing list
> > [email protected]
> > http://openser.org/cgi-bin/mailman/listinfo/users
>
> --
> Greg Fausak
> [EMAIL PROTECTED]
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://openser.org/cgi-bin/mailman/listinfo/users
--
Ron Winacott - SOMA Networks, Inc.
Work: 1-416-348-1580 - [EMAIL PROTECTED]
---
The scientists of today think deeply instead of clearly. One must be
sane to think clearly, but one can think deeply and be quite insane.
- Nikola Tesla
_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel