modules/sca/sca_dialog.h
ce6a9ca2
 /*
  * $Id$
  *
  * Copyright (C) 2012 Andrew Mortensen
  *
  * This file is part of the sca module for sip-router, a free SIP server.
  *
  * The sca module is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or
  * (at your option) any later version
  *
  * The sca module is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
9e1ff448
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
ce6a9ca2
  *
  *
  */
d694ceba
 #ifndef SCA_DIALOG_H
 #define SCA_DIALOG_H
 
 struct _sca_dialog {
     str		id;	/* call-id + from-tag + to-tag */
     str		call_id;
     str		from_tag;
     str		to_tag;
 
     int		notify_cseq;
     int		subscribe_cseq;
 };
 typedef struct _sca_dialog		sca_dialog;
 
058b0aa8
 #define SCA_DIALOG_EMPTY(d) \
 	((d) == NULL || (SCA_STR_EMPTY( &(d)->call_id ) && \
 			    SCA_STR_EMPTY( &(d)->from_tag ) && \
 			    SCA_STR_EMPTY( &(d)->to_tag )))
 
 int	sca_dialog_build_from_tags( sca_dialog *, int, str *, str *, str * );
4a0acc45
 int	sca_dialog_create_replaces_header( sca_dialog *, str * );
058b0aa8
 
d694ceba
 #endif /* SCA_DIALOG_H */