开源 企业版 高校版 私有云 模力方舟 AI 队友
代码拉取完成,页面将自动刷新
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
已有帐号? 立即登录
文件
master
分支 (24)
标签 (112)
master
3.1
3.2
2.4
3.0
feature/tls_postgres
dialog_custom_ping_interval
uuid_doc_fix
feature/rtp_relay
feature/sql-cacher-iterators
coverity_scan
feature/pi
2.3
2.2
feature/new-globals-syntax
1.11
2.1
1.9
1.10
1.8
3.1.7
3.2.4
3.1.6
3.2.3
3.1.5
3.2.2
3.1.4
3.2.1
3.2.0
3.2.0-rc1
3.1.3
2.4.11
3.2.0-beta
2.4.10
3.1.2
3.0.5
2.4.9
3.0.4
3.1.1
3.1.0
master
分支 (24)
标签 (112)
master
3.1
3.2
2.4
3.0
feature/tls_postgres
dialog_custom_ping_interval
uuid_doc_fix
feature/rtp_relay
feature/sql-cacher-iterators
coverity_scan
feature/pi
2.3
2.2
feature/new-globals-syntax
1.11
2.1
1.9
1.10
1.8
3.1.7
3.2.4
3.1.6
3.2.3
3.1.5
3.2.2
3.1.4
3.2.1
3.2.0
3.2.0-rc1
3.1.3
2.4.11
3.2.0-beta
2.4.10
3.1.2
3.0.5
2.4.9
3.0.4
3.1.1
3.1.0
克隆/下载
克隆/下载
提示
下载代码请复制以下命令到终端执行
为确保你提交的代码身份被 Gitee 正确识别,请执行以下命令完成配置
初次使用 SSH 协议进行代码克隆、推送等操作时,需按下述提示完成 SSH 配置
1 生成 RSA 密钥
2 获取 RSA 公钥内容,并配置到 SSH公钥
在 Gitee 上使用 SVN,请访问 使用指南
使用 HTTPS 协议时,命令行会出现如下账号密码验证步骤。基于安全考虑,Gitee 建议 配置并使用私人令牌 替代登录密码进行克隆、推送等操作
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # 私人令牌
master
分支 (24)
标签 (112)
master
3.1
3.2
2.4
3.0
feature/tls_postgres
dialog_custom_ping_interval
uuid_doc_fix
feature/rtp_relay
feature/sql-cacher-iterators
coverity_scan
feature/pi
2.3
2.2
feature/new-globals-syntax
1.11
2.1
1.9
1.10
1.8
3.1.7
3.2.4
3.1.6
3.2.3
3.1.5
3.2.2
3.1.4
3.2.1
3.2.0
3.2.0-rc1
3.1.3
2.4.11
3.2.0-beta
2.4.10
3.1.2
3.0.5
2.4.9
3.0.4
3.1.1
3.1.0
opensips
/
parser
/
msg_parser.h
opensips
/
parser
/
msg_parser.h
msg_parser.h 17.75 KB
一键复制 编辑 原始数据 按行查看 历史
Bogdan-Andrei Iancu 提交于 2021年12月15日 15:58 +08:00 . Solve the problem of recognizing the local SIP msg
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579
/*
* Copyright (C) 2001-2003 FhG Fokus
*
* This file is part of opensips, a free SIP server.
*
* opensips 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
*
* opensips 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
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* History
* -------
* 2003年01月28日 removed scratchpad (jiri)
* 2003年02月28日 scratchpad compatibility abandoned (jiri)
* 2003年03月06日 enum_request_method changed to begin with 1;
* 0 reserved for invalid values; (jiri)
* 2003年03月31日 removed sip_msg->repl_add_rm (andrei)
* 2003年04月01日 2 macros added: GET_NEXT_HOP and GET_RURI (janakj)
* 2003年04月04日 structure for parsed inbound uri added (jiri)
* 2003年04月11日 updated the sip_uri structure (lots of fields added) (andrei)
* 2003年04月12日 added msg_flags to sip_msg (andrei)
* 2003年11月02日 added diversion header field to sip_msg (jh)
* 2004年11月08日 added force_send_socket (andrei)
* 2005年02月25日 uri types added (sip, sips & tel) (andrei)
* 2006年02月17日 Session-Expires, Min-SE (dhsueh@somanetworks.com)
* 2007年09月09日 added sdp structure (osas)
* 2011年04月20日 added support for URI unknown parameters (osas)
*/
#ifndef MSG_PARSER_H
#define MSG_PARSER_H
#include <strings.h>
#include <sys/time.h>
#include "../str.h"
#include "../lump_struct.h"
#include "../flags.h"
#include "../ip_addr.h"
#include "../md5utils.h"
#include "../qvalue.h"
#include "../config.h"
#include "parse_def.h"
#include "parse_cseq.h"
#include "parse_content.h"
#include "parse_via.h"
#include "parse_fline.h"
#include "parse_body.h"
#include "hf.h"
#include "../trim.h"
/* convenience short-cut macros */
#define REQ_LINE(_msg) ((_msg)->first_line.u.request)
#define REQ_METHOD first_line.u.request.method_value
#define REQ_METHOD_S first_line.u.request.method
#define REPLY_STATUS first_line.u.reply.statuscode
#define REPLY_CLASS(_reply) ((_reply)->REPLY_STATUS/100)
/* number methods as power of two to allow bitmap matching */
enum request_method {
METHOD_UNDEF=0, /* 0 - --- */
METHOD_INVITE=1, /* 1 - 2^0 */
METHOD_CANCEL=2, /* 2 - 2^1 */
METHOD_ACK=4, /* 3 - 2^2 */
METHOD_BYE=8, /* 4 - 2^3 */
METHOD_INFO=16, /* 5 - 2^4 */
METHOD_OPTIONS=32, /* 6 - 2^5 */
METHOD_UPDATE=64, /* 7 - 2^6 */
METHOD_REGISTER=128, /* 8 - 2^7 */
METHOD_MESSAGE=256, /* 9 - 2^8 */
METHOD_SUBSCRIBE=512, /* 10 - 2^9 */
METHOD_NOTIFY=1024, /* 11 - 2^10 */
METHOD_PRACK=2048, /* 12 - 2^11 */
METHOD_REFER=4096, /* 13 - 2^12 */
METHOD_PUBLISH=8192, /* 14 - 2^13 */
METHOD_OTHER=16384 /* 15 - 2^14 */
};
#define FL_FORCE_RPORT (1<<0) /* force rport (top via) */
#define FL_FORCE_ACTIVE (1<<1) /* force active SDP */
#define FL_FORCE_LOCAL_RPORT (1<<2) /* force local rport (local via) */
#define FL_SDP_IP_AFS (1<<3) /* SDP IP rewritten */
#define FL_SDP_PORT_AFS (1<<4) /* SDP port rewritten */
#define FL_SHM_CLONE (1<<5) /* msg cloned in SHM as a single chunk */
#define FL_USE_UAC_FROM (1<<6) /* take FROM hdr from UAC insteas of UAS*/
#define FL_USE_UAC_TO (1<<7) /* take TO hdr from UAC insteas of UAS */
#define FL_USE_UAC_CSEQ (1<<8) /* take CSEQ hdr from UAC insteas of UAS*/
#define FL_REQ_UPSTREAM (1<<9) /* it's an upstream going request */
#define FL_DO_KEEPALIVE (1<<10) /* keepalive request's source after a
* positive reply */
#define FL_USE_MEDIA_PROXY (1<<11) /* use mediaproxy on all messages during
* a dialog */
#define FL_USE_RTPPROXY (1<<12) /* used by rtpproxy to remember if the msg
* callback had already been registered */
#define FL_NAT_TRACK_DIALOG (1<<13) /* trigger dialog tracking from the
* nat_traversal module */
#define FL_USE_SIPTRACE (1<<14) /* used by tracer to check if the tm
* callbacks were registered */
#define FL_SHM_UPDATABLE (1<<15) /* a SHM cloned message can be updated
* (TM used, requires FL_SHM_CLONE) */
#define FL_SHM_UPDATED (1<<16) /* an updatable SHM cloned message that
* had at least one update; if the flag is
* missing, it means the cloned msg was
* never updated.
* (TM used, requires FL_SHM_UPDATABLE) */
#define FL_TM_CB_REGISTERED (1<<17) /* tm callbacks for this message have been
* registered (by setting this flag, you
* will know if any tm callbacks for this
* message have been registered) */
#define FL_TM_FAKE_REQ (1<<18) /* the SIP request is a fake one,
* generated based on the transaction,
* either in failure route or resume
* route */
#define FL_TM_REPLICATED (1<<19) /* message received due to a tm replication */
#define FL_BODY_NO_SDP (1<<20) /* message does not have an SDP body */
#define FL_IS_LOCAL (1<<21) /* the message is a locally generated
* one, not received */
/* define the # of unknown URI parameters to parse */
#define URI_MAX_U_PARAMS 10
#define IFISMETHOD(methodname,firstchar) \
if ( (*tmp==(firstchar) || *tmp==((firstchar) | 32)) && \
strncasecmp( tmp+1, (char *)#methodname+1, methodname##_LEN-1)==0 && \
*(tmp+methodname##_LEN)==' ') { \
fl->type=SIP_REQUEST; \
fl->u.request.method.len=methodname##_LEN; \
fl->u.request.method_value=METHOD_##methodname; \
tmp=buffer+methodname##_LEN; \
}
/*
* Return a URI to which the message should be really sent (not what should
* be in the Request URI. The following fields are tried in this order:
* 1) dst_uri
* 2) new_uri
* 3) first_line.u.request.uri
*/
#define GET_NEXT_HOP(m) \
(((m)->dst_uri.s && (m)->dst_uri.len) ? (&(m)->dst_uri) : \
(((m)->new_uri.s && (m)->new_uri.len) ? (&(m)->new_uri) : (&(m)->first_line.u.request.uri)))
/*
* Return the Reqeust URI of a message.
* The following fields are tried in this order:
* 1) new_uri
* 2) first_line.u.request.uri
*/
#define GET_RURI(m) \
(((m)->new_uri.s && (m)->new_uri.len) ? (&(m)->new_uri) : (&(m)->first_line.u.request.uri))
enum _uri_type{ERROR_URI_T=0, SIP_URI_T, SIPS_URI_T, TEL_URI_T, TELS_URI_T, URN_SERVICE_URI_T, URN_NENA_SERVICE_URI_T};
typedef enum _uri_type uri_type;
struct sip_uri {
str user; /* Username */
str passwd; /* Password */
str host; /* Host name */
str port; /* Port number */
str params; /* Parameters */
str headers;
unsigned short port_no;
unsigned short proto; /* from transport */
uri_type type; /* uri scheme */
/* parameters [+ "=value" parts, if any] */
str transport;
str ttl;
str user_param;
str maddr;
str method;
str lr;
str r2; /* ser specific rr parameter */
str gr; /* GRUU */
str pn_provider; /* RFC 8599 (SIP PN) */
str pn_prid;
str pn_param;
str pn_purr;
/* just values */
str transport_val;
str ttl_val;
str user_param_val;
str maddr_val;
str method_val;
str lr_val; /* lr value placeholder for lr=on a.s.o*/
str r2_val;
str gr_val;
str pn_provider_val;
str pn_prid_val;
str pn_param_val;
str pn_purr_val;
/* unknown params */
str u_name[URI_MAX_U_PARAMS]; /* Unknown param names */
str u_val[URI_MAX_U_PARAMS]; /* Unknown param valss */
unsigned short u_params_no; /* No of unknown params */
};
#include "parse_to.h"
/* Forward declaration */
struct msg_callback;
struct sip_msg {
unsigned int id; /* message id, unique/process*/
struct msg_start first_line; /* Message first line */
struct via_body* via1; /* The first via */
struct via_body* via2; /* The second via */
struct hdr_field* headers; /* All the parsed headers*/
struct hdr_field* last_header; /* Pointer to the last parsed header*/
hdr_flags_t parsed_flag; /* Already parsed header field types */
/* Via, To, CSeq, Call-Id, From, end of header*/
/* pointers to the first occurrences of these headers;
* everything is also saved in 'headers'
* (WARNING: do not deallocate them twice!)*/
struct hdr_field* h_via1;
struct hdr_field* h_via2;
struct hdr_field* callid;
struct hdr_field* to;
struct hdr_field* cseq;
struct hdr_field* from;
struct hdr_field* contact;
struct hdr_field* maxforwards;
struct hdr_field* route;
struct hdr_field* record_route;
struct hdr_field* path;
struct hdr_field* content_type;
struct hdr_field* content_length;
struct hdr_field* authorization;
struct hdr_field* expires;
struct hdr_field* proxy_auth;
struct hdr_field* supported;
struct hdr_field* proxy_require;
struct hdr_field* unsupported;
struct hdr_field* allow;
struct hdr_field* event;
struct hdr_field* accept;
struct hdr_field* accept_language;
struct hdr_field* organization;
struct hdr_field* priority;
struct hdr_field* subject;
struct hdr_field* user_agent;
struct hdr_field* content_disposition;
struct hdr_field* accept_disposition;
struct hdr_field* diversion;
struct hdr_field* rpid;
struct hdr_field* refer_to;
struct hdr_field* session_expires;
struct hdr_field* min_se;
struct hdr_field* ppi;
struct hdr_field* pai;
struct hdr_field* privacy;
struct hdr_field* call_info;
struct hdr_field* www_authenticate;
struct hdr_field* proxy_authenticate;
struct hdr_field* min_expires;
struct hdr_field* feature_caps;
struct hdr_field* replaces;
struct sip_msg_body *body;
char* eoh; /* pointer to the end of header (if found) or null */
char* unparsed; /* here we stopped parsing*/
struct receive_info rcv; /* source & dest ip, ports, proto a.s.o*/
char* buf; /* scratch pad, holds a unmodified message,
* via, etc. point into it */
unsigned int len; /* message len (orig) */
/* attributes of the msg as first/default branch */
str new_uri; /* changed first line uri, when you change this
* don't forget to set parsed_uri_ok to 0 */
str dst_uri; /* Destination URI, must be forwarded to this URI if len!=0 */
qvalue_t ruri_q; /* Q value of RURI */
unsigned int ruri_bflags; /* per-branch flags for RURI*/
/* force sending on this socket */
struct socket_info* force_send_socket;
/* path vector to generate Route hdrs */
str path_vec;
/* end-of-attributes for RURI as first branch*/
/* current uri */
int parsed_uri_ok; /* 1 if parsed_uri is valid, 0 if not, set it to 0
if you modify the uri (e.g change new_uri)*/
struct sip_uri parsed_uri; /* speed-up > keep here the parsed uri*/
/* the same for original uri */
int parsed_orig_ruri_ok;
struct sip_uri parsed_orig_ruri;
/* modifications */
struct lump* add_rm; /* used for all the forwarded requests/replies */
struct lump* body_lumps; /* Lumps that update Content-Length */
struct lump_rpl *reply_lump; /* only for localy generated replies !!!*/
/* whatever whoever want to append to branch comes here */
char add_to_branch_s[MAX_BRANCH_PARAM_LEN];
int add_to_branch_len;
/* index to TM hash table; stored in core to avoid
* unnecessary calculations */
unsigned int hash_index;
/* flags used from script */
flag_t flags;
/* flags used by core - allows to set various flags on the message; may
* be used for simple inter-module communication or remembering
* processing state reached */
unsigned int msg_flags;
str set_global_address;
str set_global_port;
/* used to store a particular time of the message - note that the time is
* not stored when the message was received, but only the first time
* someone gets interested in it - this way we have a consistent timestamp
* of the message, without being affected by lazy callbacks */
struct timeval time;
struct msg_callback *msg_cb;
};
/* pointer to a fakes message which was never received ;
(when this message is "relayed", it is generated out
of the original request)
*/
#define FAKED_REPLY ((struct sip_msg *) -1)
extern int via_cnt;
int parse_msg(char* buf, unsigned int len, struct sip_msg* msg);
int parse_headers(struct sip_msg* msg, hdr_flags_t flags, int next);
char* get_hdr_field(char* buf, char* end, struct hdr_field* hdr);
void free_sip_msg(struct sip_msg* msg);
int clone_headers(struct sip_msg *from_msg, struct sip_msg *to_msg);
/* make sure all HFs needed for transaction identification have been
parsed; return 0 if those HFs can't be found
*/
int check_transaction_quadruple( struct sip_msg* msg );
/* calculate characteristic value of a message -- this value
is used to identify a transaction during the process of
reply matching
*/
inline static int char_msg_val( struct sip_msg *msg, char *cv )
{
str src[8];
if (!check_transaction_quadruple(msg)) {
LM_ERR("can't calculate char_value due to a parsing error\n");
memset( cv, '0', MD5_LEN );
return 0;
}
src[0]= msg->from->body;
src[1]= msg->to->body;
src[2]= msg->callid->body;
src[3]= msg->first_line.u.request.uri;
src[4]= get_cseq( msg )->number;
/* topmost Via is part of transaction key as well ! */
src[5]= msg->via1->host;
src[6]= msg->via1->port_str;
if (msg->via1->branch) {
src[7]= msg->via1->branch->value;
MD5StringArray ( cv, src, 8 );
} else {
MD5StringArray( cv, src, 7 );
}
return 1;
}
/* returns the body of the SIP message (if none, an empty body will be returned)
*/
inline static int get_body(struct sip_msg *msg, str *body)
{
unsigned int hdrs_len;
int ct_len;
if ( parse_headers(msg,HDR_EOH_F, 0)==-1 )
return -1;
if (msg->unparsed){
hdrs_len=(unsigned int)(msg->unparsed-msg->buf);
} else {
return -1;
}
if ((hdrs_len+2<=msg->len) && (strncmp(CRLF,msg->unparsed,CRLF_LEN)==0) )
body->s = msg->unparsed + CRLF_LEN;
else if ( (hdrs_len+1<=msg->len) &&
(*(msg->unparsed)=='\n' || *(msg->unparsed)=='\r' ) )
body->s = msg->unparsed + 1;
else {
/* no body */
body->s = NULL;
body->len = 0;
return 0;
}
/* determin the length of the body */
body->len = msg->buf + msg->len - body->s;
/* double check the len against content-length hdr
(if present, it must be already parsed) */
if (msg->content_length) {
ct_len = get_content_length( msg );
if (ct_len<body->len)
body->len = ct_len;
} else {
/* no ct -> no body */
body->s = NULL;
body->len = 0;
}
return 0;
}
/*
* Get the callid of a message. If returned value is 0, the callid is stored
* in the _cid field, otherwise -1 is returned on error
*/
inline static int get_callid(struct sip_msg* _m, str* _cid)
{
if ((parse_headers(_m, HDR_CALLID_F, 0) == -1)) {
LM_ERR("failed to parse call-id header\n");
return -1;
}
if (_m->callid == NULL) {
LM_ERR("call-id not found\n");
return -1;
}
_cid->s = _m->callid->body.s;
_cid->len = _m->callid->body.len;
trim(_cid);
return 0;
}
/*
* Search through already parsed headers (no parsing done) a non-standard
* header - all known headers are skipped!
*/
#define get_header_by_static_name(_msg, _name) \
get_header_by_name(_msg, _name, sizeof(_name)-1)
inline static struct hdr_field *get_header_by_name( struct sip_msg *msg,
char *s, unsigned int len)
{
struct hdr_field *hdr;
for( hdr=msg->headers ; hdr ; hdr=hdr->next ) {
if(len==hdr->name.len && strncasecmp(hdr->name.s,s,len)==0)
return hdr;
}
return NULL;
}
/*
* Make a private copy of the string and assign it to new_uri (new RURI)
*/
int set_ruri(struct sip_msg* msg, str* uri);
/*
* Make a private copy of the string and assign it to dst_uri
*/
int set_dst_uri(struct sip_msg* msg, str* uri);
void reset_dst_uri(struct sip_msg *msg);
int set_dst_host_port(struct sip_msg *msg, str *host, str *port);
enum rw_ruri_part {
RW_RURI_HOST = 1,
RW_RURI_HOSTPORT,
RW_RURI_USER,
RW_RURI_USERPASS,
RW_RURI_PORT,
RW_RURI_PREFIX,
RW_RURI_STRIP,
RW_RURI_STRIP_TAIL
};
int rewrite_ruri(struct sip_msg *msg, str *sval, int ival,
enum rw_ruri_part part);
/*
* Set the q value of the Request-URI
*/
#define set_ruri_q(_msg,_q) \
(_msg)->ruri_q = _q
/*
* Get the q value of the Request-URI
*/
#define get_ruri_q(_msg) \
(_msg)->ruri_q
/*
* Get the per branch flags for RURI
*/
#define getb0flags(_msg) \
(_msg)->ruri_bflags
/*
* Set the per branch flags for RURI
*/
#define setb0flags( _msg, _flags) \
(_msg)->ruri_bflags = _flags
/*
* Make a private copy of the string and assign it to path_vec
*/
int set_path_vector(struct sip_msg* msg, str* path);
void clear_path_vector(struct sip_msg* msg);
/*
* Parses a buffer containing a well formed SIP message and extracts the bodies
* for FROM , TO , CSEQ and CALL-ID headers.
*/
int extract_ftc_hdrs( char *buf, int len, str *from, str *to, str *cseq,str *callid);
inline static struct timeval *get_msg_time(struct sip_msg *msg)
{
static struct timeval static_time;
if (!msg || msg == (struct sip_msg *)-1) {
gettimeofday(&static_time, NULL);
return &static_time;
}
if (msg->time.tv_sec == 0 && msg->time.tv_usec == 0)
gettimeofday(&msg->time, NULL);
return &msg->time;
}
#endif
Loading...
举报
举报成功
我们将于2个工作日内通过站内信反馈结果给你!
请认真填写举报原因,尽可能描述详细。
请选择举报类型
取消
发送
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

简介

暂无描述
暂无标签
GPL-2.0
使用 GPL-2.0 开源许可协议
取消

发行版

暂无发行版

贡献者

全部

近期动态

不能加载更多了
编辑仓库简介
简介内容
主页
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/phpgoer/opensips.git
git@gitee.com:phpgoer/opensips.git
phpgoer
opensips
opensips
master
点此查找更多帮助

搜索帮助

评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册

AltStyle によって変換されたページ (->オリジナル) /