Commit 64a124389aed9c6f0dbf6b06b9ddec8fd3dcf999
1 parent
2fb4b729
修复返回值错误问题
Showing
1 changed file
with
2 additions
and
2 deletions
src/decoder/gb28181/sip/SipServer.cpp
@@ -517,7 +517,7 @@ int SipServer::RequestInvite_UDP(const char* dst_channel, int rtpPort) { | @@ -517,7 +517,7 @@ int SipServer::RequestInvite_UDP(const char* dst_channel, int rtpPort) { | ||
517 | else { | 517 | else { |
518 | LOG_ERROR("eXosip_call_send_initial_invite error: call_id={}", call_id); | 518 | LOG_ERROR("eXosip_call_send_initial_invite error: call_id={}", call_id); |
519 | } | 519 | } |
520 | - return ret; | 520 | + return call_id; |
521 | } | 521 | } |
522 | 522 | ||
523 | int SipServer::RequestInvite_TCP_a(const char* dst_channel, int rtpPort) { | 523 | int SipServer::RequestInvite_TCP_a(const char* dst_channel, int rtpPort) { |
@@ -579,7 +579,7 @@ int SipServer::RequestInvite_TCP_a(const char* dst_channel, int rtpPort) { | @@ -579,7 +579,7 @@ int SipServer::RequestInvite_TCP_a(const char* dst_channel, int rtpPort) { | ||
579 | else { | 579 | else { |
580 | LOG_ERROR("eXosip_call_send_initial_invite error: call_id={}", call_id); | 580 | LOG_ERROR("eXosip_call_send_initial_invite error: call_id={}", call_id); |
581 | } | 581 | } |
582 | - return ret; | 582 | + return call_id; |
583 | } | 583 | } |
584 | 584 | ||
585 | void SipServer::cacheCatalog() { | 585 | void SipServer::cacheCatalog() { |