/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SIP_PARSE_URI_H
#define _SIP_PARSE_URI_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <sip.h>
/*
* SIP-URI = "sip:" [ userinfo ] hostport
* uri-parameters [ headers ]
* SIPS-URI = "sips:" [ userinfo ] hostport
* uri-parameters [ headers ]
* uri-parameters = *( ";" uri-parameter)
* uri-parameter = transport-param / user-param / method-param
* / ttl-param / maddr-param / lr-param / other-param
* transport-param = "transport="
* "udp" / "tcp" / "sctp" / "tls"/ other-transport)
* other-transport = token
* headers = "?" header *( "&" header )
*/
typedef struct sip_uri_sip_s {
/*
* opaque uri opaque part
* query uri query
* path uri path
* regname uri reg-name
*/
typedef struct sip_uri_abs_s {
/*
* structure for a parsed URI
* sip_uri_scheme URI scheme
* sip_uri_user user name
* sip_uri_password password for the user
* sip_uri_host host name
* sip_uri_port port number for the host (0 = none specified)
* sip_uri_errflags error flags
* sip_uri_issip is this a SIP URI.
* sip_uri_isteluser user is a telephone-subscriber
*/
typedef struct sip_uri {
union {
} specific;
#ifdef __cplusplus
}
#endif
#endif /* _SIP_PARSE_URI_H */