[Kamailio-Devel] RFC: Dialog: Feature-Extensions

Jerome Martin jmartin at longphone.fr
Wed Sep 17 11:04:05 CEST 2008


For a visual idea, here are a diagram and its source ...

On Wed, 2008-09-17 at 10:48 +0200, Jerome Martin wrote:
> On Wed, 2008-09-17 at 09:58 +0200, Klaus Darilion wrote:
> > 
> > Jerome Martin schrieb:
> > >     . adding a new state to the state_machine, RINGING
> > 
> > 
> > I think if a more detailed state machine is needed, maybe we still 
> > should stay with the standard conform state machine but add 
> > "sub-states", e.g. RINGING would be a sub-state of the "early" state.
> 
> Yes, I was thinking the same yesterday night while looking at it.
> Basically the changes would be :
> 1) add sub states trying and ringing for EARLY
> 2) move deleted dialog in a dialog_archive table after deleting them
> from memory
> 3) add sub states redirected, failed, cancelled, timed-out, terminated
> to DELETED
> 4) add ability to have one dialog per branch, saving the R-URI,
> P-Asserted-Identity, and destination IP used for relay
> 5) store additional data in the dialog table/structure:
>    . for DELETED/redirected, the redirect uri
>    . for DELETED/failed, the reply code and reason
>      (I am unsure is cancelled is just a specific case of this with 487,
> because currently it is the TMCB_DELETED callback that triggers the
> event TDEL in the state machine, and I believe this CB is triggered on
> CANCEL, before we have a chance to see any 487)
>    . for DELETED/terminated, the origin of the BYE (caller/callee/proxy)
> and dialog_duration
> 
> Of course, the things I want to save here are pretty custom, so I think
> a more generic mechanism should be found so that everyone could
> customise this to his needs.
> 
> Regards,
-- 
Jérôme Martin | LongPhone
Responsable Architecture Réseau
122, rue la Boetie | 75008 Paris
Tel :  +33 (0)1 56 26 28 44
Fax : +33 (0)1 56 26 28 45
Mail : jmartin at longphone.fr
Web : www.longphone.com <http://www.longphone.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SIP-dialog.png
Type: image/png
Size: 19796 bytes
Desc: not available
Url : http://lists.kamailio.org/pipermail/devel/attachments/20080917/0e7e2295/attachment-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SIP-dialog.dia
Type: application/x-dia-diagram
Size: 2474 bytes
Desc: not available
Url : http://lists.kamailio.org/pipermail/devel/attachments/20080917/0e7e2295/attachment-0001.bin 


More information about the Devel mailing list