Open ftsef opened 2 weeks ago
I was able to send a BYE package manually to hangup the SIP-participant.
As I previously suspected adding the right tag
to the BYE FROM header works.
For the given sip log above the BYE package the FROM header should've looked like:
From: <sip:+1234567890@testserver>;tag=ab420917-013e-4c75-9006-7c0b032d3b2ez
Full example:
BYE sip:asterisk@192.168.178.42:5060 SIP/2.0
Via: SIP/2.0/UDP 123.123.123.123:5060;rport;branch=z9hG4bK.EycnBDy9dYjujMoL;alias
Max-Forwards: 70
Call-ID: 0f1f0682-90d5-4a62-b54e-e2a8cbfe0086
CSeq: 12644 BYE
Content-Length: 0
From: <sip:+1234567890@testserver>;tag=ab420917-013e-4c75-9006-7c0b032d3b2e
To: "1108" <sip:1108@192.168.178.42:5060>;tag=d3cd97c4-5ffd-424d-a37c-e2a7597cd274
My fix/workaround so far is to read the FROM-tag from the next ACK and store it in the current calls TO-tag. This works in my use case. I don't know if that a good solution in general.
https://github.com/ftsef/sip/commit/8971505c1ec8dbe551ecd56a6231bba047d13f08
Hmm, interesting. Could you please open a PR then? I can test it with other SIP Trunk Providers too.
Hello, I’ve discovered an issue that a
BYE
send from the LIVEKIT-SIP Server is not recognized by Asterisk. The SIP log showed a481 Call/Transaction Does Not Exist
.It's reproducable on multiple Systems by on of the following steps:
The SIP participant will not be hung up and stays connected (to the void). I've used the latest docker image as well as build from master branch.
I'm going to check the RFC specifications but I thing it has something to do with the missing FROM
tag
in the BYE package.Do you have a hint what it could be?
Thanks in advance.