Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
453 views
in Technique[技术] by (71.8m points)

sip - exosip always answer twice when receive invite event

I'm new in sip and use exosip to develop a sip gateway.
I found my gate way is always send answer twice, but the log in my program just print once.
I don't know what happened and how to fix this problem.

duplicate answer


UPDATE: I update my version to 5.2.0, but the problem still exists. Also, I found there exists duplicated RTP connections: duplicated RTP connection

The question most bothers me is that audio packets are duplicated, which makes high packet loss rate: packet loss

question from:https://stackoverflow.com/questions/65938443/exosip-always-answer-twice-when-receive-invite-event

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

In version 5.1.2, there was a major rewrite of DNS, UDP, TCP and TLS management. The rewrite was required to maximize performance and to reach the same results with select and epoll implementations. Those changes introduced issues resolved in incremental steps and 3 versions were published in a row: exosip 5.1.2, 5.1.3 and finally 5.2.0

Your issue was fixed only in 5.2.0 with this ChangeLog line:

* fix duplicate packets for TCP and TLS when several outgoing NICT are happening at the same time [since 5.1.2]

The git fix is this one:

https://git.savannah.nongnu.org/cgit/exosip.git/commit/?id=1fdc54ed38eaf5155f5702240586c472f2cc73d4

You can read the full ChangeLog here for details.

There as been 3 commits since 5.2.0 in the git which may be nice to have. access git here

Make sure you also use latest osip 5.2.0 or access git here. There was only one additionnal commit which is also interesting.

NOTE: In my own tests: I have seen only retransmission of REQUESTs, but I would not be surprised if the bug was also affecting ANSWERS? If you use already the latest version, please write me a mail.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...