/********************************************************************16**
(c) COPYRIGHT 1989-2001 by Trillium Digital Systems, Inc.
All rights reserved.
This software is confidential and proprietary to Trillium
Digital Systems, Inc. No part of this software may be reproduced,
stored, transmitted, disclosed or used in any form or by any means
other than as expressly provided by the written license agreement
between Trillium and its licensee.
Trillium warrants that for a period, as provided by the written
license agreement between Trillium and its licensee, this
software will perform substantially to Trillium specifications as
published at the time of shipment and the media used for delivery
of this software will be free from defects in materials and
workmanship.
TRILLIUM MAKES NO OTHER WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY OR FITNESS FOR
A PARTICULAR PURPOSE WITH REGARD TO THIS SOFTWARE OR ANY RELATED
MATERIALS.
IN NO EVENT SHALL TRILLIUM BE LIABLE FOR ANY INDIRECT, SPECIAL,
OR CONSEQUENTIAL DAMAGES IN CONNECTION WITH OR ARISING OUT OF
THE USE OF, OR INABILITY TO USE, THIS SOFTWARE, WHETHER BASED
ON BREACH OF CONTRACT, TORT (INCLUDING NEGLIGENCE), PRODUCT
LIABILITY, OR OTHERWISE, AND WHETHER OR NOT IT HAS BEEN ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.
Restricted Rights Legend
This software and all related materials licensed hereby are
classified as "restricted computer software" as defined in clause
52.227-19 of the Federal Acquisition Regulation ("FAR") and were
developed entirely at private expense for nongovernmental purposes,
are commercial in nature and have been regularly used for
nongovernmental purposes, and, to the extent not published and
copyrighted, are trade secrets and confidential and are provided
with all rights reserved under the copyright laws of the United
States. The Government's rights to the software and related
materials are limited and restricted as provided in clause
52.227-19 of the FAR.
IMPORTANT LIMITATION(S) ON USE
The use of this software is limited to the Use set
forth in the written License Agreement between Trillium and
its Licensee. Among other things, the Use of this software
may be limited to a particular type of Designated Equipment.
Before any installation, use or transfer of this software, please
consult the written License Agreement or contact Trillium at
the location set forth below in order to confirm that you are
engaging in a permissible Use of the software.
Trillium Digital Systems, Inc.
12100 Wilshire Boulevard, suite 1800
Los Angeles, CA 90025-7118, USA
Tel: +1 (310) 442-9222
Fax: +1 (310) 442-1162
Email: tech_support@trillium.com
Web: http://www.trillium.com
*********************************************************************17*/
/********************************************************************20**
Name: SIP Service User
Type: C source file
Desc: Code for SIP Service User
File: sv_bdy3.c
Sid: sv_utl.c@@/main/1 - Tue Jul 3 13:59:19 2001
Prg:
*********************************************************************21*/
/* header include files (.h) */
#include "envopt.h" /* environment options */
#include "envdep.h" /* environment dependent */
#include "envind.h" /* environment independent */
#include "gen.h" /* general */
#include "ssi.h" /* system services */
#include "cm_inet.h" /* common socket library */
#include "cm_tpt.h" /* common transport library */
#include "cm_dns.h" /* common DNS */
#include "cm_rtp.h" /* RTP payload types */
#include "lso.h" /* LM interface */
#include "sot.h" /* Upper interface */
/* MR8991 #include "so.h" /* SIP layer */
/* MR8991 #include "so_cm.h" /* SIP common functions */
/* MR8991 #include "so_err.h" /* SIP error defines */
#include "cm_hash.h" /* common hash list */
#include "cm_llist.h" /* common linked list */
#include "cm_tkns.h" /* common tokens library */
#include "cm_sdp.h" /* common sdp library */
#include "cm_abnf.h" /* sv002.101 : common abnf library */
#include "cm_mblk.h" /* common memory block library */
#include "hit.h" /* HIT interface */
#include "lhi.h" /* TUCL Layer Manager */
#include "sv.h"
#include "wpt.h" /* wrapper defines */
#include "so_macros.h"
#include "jb.h" /* JB (jitter buffer) defines */
#include "demoapp.h" /* for access to global application variables */
/* header/extern include files (.x) */
#include "gen.x" /* general */
#include "ssi.x" /* system services */
#include "cm_inet.x" /* common socket library */
#include "cm_tpt.x" /* common transport library */
#include "cm5.x" /* common timers */
#include "cm_hash.x" /* common hash list */
#include "cm_xtree.x" /* common radix tree */
#include "cm_llist.x" /* common linked list */
#include "cm_tkns.x" /* common tokens library */
#include "cm_sdp.x" /* common sdp library */
#include "cm_mblk.x" /* common memory block library */
#include "cm_dns.x" /* common DNS */
#include "cm_abnf.x" /* sv002.101 : common abnf library */
#include "cm_lib.x" /* system services */
#include "lso.x" /* LM interface */
#include "sot.x" /* Upper interface */
/* MR8991 #include "so.x" /* SIP layer */
/* MR8991 #include "so_mh.x" */
/* MR8991 #include "so_cm.x" /* SIP common functions */
/* MR8991 #include "so_utl.x" /* SIP utility functions */
#include "sv.x" /* SIP core functions */
#include "hit.x" /* HIT interfaceX */
#include "lhi.x" /* TUCL Layer Manager X*/
#include "so_acc.x"
#include "wpt.x" /* wrapper structures */
/* local defines */
/* local typedefs */
/* local externs */
/* forward references */
/* public variable declarations */
/* Reference to SIP message definition in ABNF database so_db.c */
/* GTC - WAS: PUBLIC CmAbnfElmDef soMsgDefSipMessage; */
EXTERN CmAbnfElmDef soMsgDefSipMessage;
/* GTC - WAS: PUBLIC CmAbnfElmDef cmMsgDefSdp; */
EXTERN CmAbnfElmDef cmMsgDefSdp;
/* sv002.101 : sotConRsp is nolonger private */
PUBLIC S16 svSetupSotConRsp ARGS((SoEvnt **sndEvnt,
U8 entId,
UConnId suConnId,
U16 callNmb, /*sv002.101 U8 to U16*/
U8 cLegNmb,
U8 tranNmb,
Txt *msg));
/* sv002.101 : sotRelRsp is nolonger private */
PUBLIC S16 svSetupSotRelRsp ARGS((SoEvnt **sndEvnt,
U8 entId,
U16 callNmb,
U8 cLegNmb,
U8 tranNmb,
Txt *msg,
U8 eventType));
PRIVATE S16 svSetupSotConReq ARGS((SoEvnt** sndEvnt,
U8 entId,
UConnId suConnId,