/*************************************************************************************** * * IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. * * By downloading, copying, installing or using the software you agree to this license. * If you do not agree to this license, do not download, install, * copy or use the software. * * Copyright (C) 2014-2022, Happytimesoft Corporation, all rights reserved. * * Redistribution and use in binary forms, with or without modification, are permitted. * * Unless required by applicable law or agreed to in writing, software distributed * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific * language governing permissions and limitations under the License. * ****************************************************************************************/ #include "sys_inc.h" #include "hqueue.h" #include "linked_list.h" #include "rfc_md5.h" #include "word_analyse.h" #include "digcalc.h" #include "hsip.h" #include "sip_util.h" /*******************************************************\ 外部全局变量 \*******************************************************/ extern HSIP_CLASS hsip; /*******************************************************/ MSGTSTR g_msg_str[] = { {SIP_MT_NULL, "SIP_MT_NULL"}, {SIP_MT_ACK, "SIP_MT_ACK"}, {SIP_MT_BYE, "SIP_MT_BYE"}, {SIP_MT_CAN, "SIP_MT_CAN"}, {SIP_MT_INV, "SIP_MT_INV"}, {SIP_MT_OPT, "SIP_MT_OPT"}, {SIP_MT_REG, "SIP_MT_REG"}, {SIP_MT_MSG, "SIP_MT_MSG"} }; char * sip_get_msg_type_string(SIP_MT mt) { uint32 i; for (i=0; i> %s:%u [%s]\r\n", inet_ntoa(in), ntohs(tx_port), time_str); log_lock_end(msg_buf); } }